Questions

Q:

SI unit of Luminious intensity is

A) Lumen B) Lux
C) Candela D) Watt
 
Answer & Explanation Answer: C) Candela

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics

4 3893
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 3892
Q:

MS Kim Campbell is the first Prime Minister of

A) Congo B) Canada
C) Portugal D) Phillippines
 
Answer & Explanation Answer: B) Canada

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Personalities

0 3891
Q:

What group sets hunting regulations in most states?

A) Forest management agency B) Head hunting firms agency
C) Hunting outfitters agency D) A wildlife management agency
 
Answer & Explanation Answer: D) A wildlife management agency

Explanation:

A wildlife management agency sets hunting regulations in most states.

 

hunting_regulations1531455978.jpg image

 

These agencies will have regular meetings where the public can voice their concerns and make suggestions. Hunters wishing to propose changes to the regulations should participate in these meetings or join a hunting organization that interacts with the agency.

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: AIEEE , Bank Exams
Job Role: Analyst , Bank Clerk , Bank PO

3 3890
Q:

Which statement best describes Arteries?

A) They have thin walls and transport blood away from the heart B) They have thick walls and transport blood toward the heart
C) They have thin walls and transport blood toward the heart D) They have thick walls and transport blood away from the heart
 
Answer & Explanation Answer: D) They have thick walls and transport blood away from the heart

Explanation:

Because arteries have to have thick walls for use of protection. Its when you get to veins where the walls get thinner. And the use of the heart is to pump blood to all of the cells and organs in the body so it would be to transport blood away from the heart.

i.e. 

Arteries = Away from the Heart 
Veins = Back to the Heart.

Report Error

View Answer Report Error Discuss

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

2 3888
Q:

Which is a common first indicator of an approaching thunderstorm?

A) too hot B) heavy wind
C) a buildup of dark clouds D) lightning
 
Answer & Explanation Answer: C) a buildup of dark clouds

Explanation:

The first indicator of an approaching thunderstorm is a buildup of dark clouds.

A thunderstorm is a storm with lightning and thunder; it is usually produced by heavy rain, gusty wind, and the cumulonimbus cloud. The thunderstorm is made up of moisture, unstable air and lift.

Report Error

View Answer Report Error Discuss

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

2 3887
Q:

Who among the following Generals or Commanders , carried out a coup d'etat against Jahangir in 1626?

A) Asaf Khan B) Malik Ambar
C) Mahabat Khan D) None of these
 
Answer & Explanation Answer: C) Mahabat Khan

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

1 3886
Q:

When is International Day of Families observed  ?

A) May 13 B) May 15
C) May 16 D) May 14
 
Answer & Explanation Answer: B) May 15

Explanation:

15 May. Theme of International Day of Family 2017 is “Families, education and well-being”.

Report Error

View Answer Report Error Discuss

Filed Under: Important Days and Years
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

3 3885