Questions

Q:

What has a mouth but never smiles?

Answer

A bottle has a mouth from which we used to drink water or any juice. But it cannot smile.

Report Error

View answer Workspace Report Error Discuss

Subject: Word Puzzles Exam Prep: TOEFL , GRE , GATE , CAT , Bank Exams , AIEEE
Job Role: Bank PO , Bank Clerk , Analyst

13 4137
Q:

How would you use qsort() function to sort an array of structures?

Answer

#include "string.h"


#include "stdlib.h"


struct stud


{


       int rollno;


       int marks;


       char name[30];


};


int sort_m (struct stud *, struct stud *);


int sort_name (struct stud *, struct stud *);


int sort_marks (struct stud *, struct stud *);


 


main()


{


static struct stud ss[] = {


                                            { 15, 96, "Akshay" },


                                            { 2, 97, "Madhuri" },


                                            { 8, 85, "Aishvarya" },


                                            { 10, 80, "Sushmita" }


                                   };


int x,w;


clrscr();


w = sizeof (struct stud);


 


printf ('\nIn order of roll numbers:");


qsort (ss, 4, w, sort_rn);


for(x=0; x<4;x++)


     printf ("\n%d%s%d", ss[x].rollno, ss[x].name,ss[x].marks);


 


printf("\n\nIn order of names:");


qsort(ss, 4, sort_name);


 


for (x=0; x<4;x++)


      printf("\n%d%s%d",ss[x].rollno, ss[x].name,ss[x].marks);


printf("\n\nIn order of marks:");


qsort(ss,4,w,sort_marks);


 


for (x=0;x<4;x++)


      printf ("\n%d%s%d",ss[x].rollno,ss[x].name,ss[x].marks);


}


int sort_rn (struct stud *t1, struct stud *t2)


{


     return (t1->rollno-t2->rollno);


}


 


int sort_name (struct stud *t1, struct stud *t2)


{


     return (strcmp(t1->name,t2->name));


}


int sort_marks (struct stud *t1, struct stud *t2)


{


     return (t2->marks-t1->marks);


}


 


 


 

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 4137
Q:

The Kinetic energy of gas molecules

A) is unaffected by temperature variations B) decreases with increase of temperature
C) increases with decrease of temperature D) increases with increase of temperature
 
Answer & Explanation Answer: D) increases with increase of temperature

Explanation:

Kinetic Energy K.E = 12mV2  or 

K.E V2, Where 'm' is the mass and 'v' is the velocity of molecules.

 

Velocity is proportional to temperature. Hence, KE is proportional to temperature and would increase with temperature.

Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: AIEEE

18 4137
Q:

Seagate is manufacturer of

A) harddisk B) earth moving equipment
C) picture tube D) banking software
 
Answer & Explanation Answer: A) harddisk

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Business Awareness

14 4136
Q:

One light year is approximately equal to

A) 10^12 mts B) 10^16 mts
C) 10^11 mts D) 10^13 mts
 
Answer & Explanation Answer: B) 10^16 mts

Explanation:

Light year is the unit of to express astronomical distances, that light can travel in one year. Light moves at a velocity of about 300,000 kilometers (km) each second. So in one year, it can travel about 10 trillion km. More precisely, one light-year is equal to 9,500,000,000,000 kilometers.

 

Approximately, 1 light year = 10^16 mts.

Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Analyst , Bank Clerk , Bank PO , Database Administration

4 4136
Q:

A boy sitting in a train moving with a uniform velocity drops a coin outside. A man standing outside the train will find the trajectory of the coin to be

A) a parabola B) a circle
C) a horizontal straight line D) a vertical straight line
 
Answer & Explanation Answer: A) a parabola

Explanation:

Parabola, because when the coin is dropped at a particular point, it has the same velocity as the running train. So by Newton's first law, it continues its motion horizontally with that velocity. But then, it is also pulled down by earth's gravity continuously. In this situation its horizontal motion gives way to the parabolic motion until it reaches the ground.

Report Error

View Answer Report Error Discuss

Filed Under: Physics

2 4136
Q:

How do you detect a sequence of "1101" arriving serially from a signal line?

Answer

A SIPO and AND gate circuit can detect this sequence.The output of SIPO is connected to a four input AND gate ,the third SIPO output should be connected through a NOT gate.When the 1101 sequence is loaded in to the SIPO the AND output goes HIGH otherwise keeps LOW.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 4134
Q:

Be the embodiment or perfect example of

A) Signify B) Personify
C) Characterise D) Idol
 
Answer & Explanation Answer: B) Personify

Explanation:

One word substitution for Be the embodiment or perfect example of is Personify. Personify means represent or embody (a quality, concept, etc.) in a physical form.

 

Characterise: describe the distinctive nature or features of.

Idol: an image or representation of a god used as an object of worship.

Signify: be an indication of.

Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: AIEEE , Bank Exams , CAT , GRE , TOEFL
Job Role: Analyst , Bank Clerk , Bank PO

1 4134