Questions

Q:

Indus Valley Civilization is called the protohistoric civilization because its people knew 

A) art B) writing
C) copper D) pottery
 
Answer & Explanation Answer: B) writing

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

1 4404
Q:

When is the ' World AIDS Day ' observed all over the world

A) 1st october B) 12th December
C) 1st December D) 13th November
 
Answer & Explanation Answer: C) 1st December

Explanation:
Report Error

View Answer Report Error Discuss

5 4402
Q:

Which newspaper has acquired 67 per cent stake in Kolkata-based daily The Asian Age?

A) Hindustan Times B) Times of India
C) Deccan Chronicle D) The Hindu
 
Answer & Explanation Answer: C) Deccan Chronicle

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Business Awareness

11 4400
Q:

First Indian woman, to win The silver medal in Rio Olympics 2016 ?

A) Sakshi Malik B) P V Sindhu
C) Dipa Karmakar D) Saina Nehwal
 
Answer & Explanation Answer: B) P V Sindhu

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports

6 4399
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 4399
Q:

Clay is an example of

A) Aquiclude B) Glossy
C) Utilitarian D) None of the above
 
Answer & Explanation Answer: A) Aquiclude

Explanation:

Clay is an example of Aquiclude.

Report Error

View Answer Report Error Discuss

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

0 4399
Q:

In Which Indian state is the world's highest cricket ground located ?

A) Himachal Pradesh B) Uttarakhand
C) West Bengal D) Jammu Kashmir
 
Answer & Explanation Answer: A) Himachal Pradesh

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors

11 4398
Q:

Math Logic Challenge

18582095_1309614185812349_1823149961450714717_n1499156071.jpg image

A) 23 B) 26
C) 13 D) 29
 
Answer & Explanation Answer: B) 26

Explanation:

Let the integer be x. Then,

 x2-20x = 156

 

(x + 6)(x - 26) = 0

 

x = 26

 

The integer is 26.

Report Error

View Answer Report Error Discuss

Filed Under: Math Puzzles
Exam Prep: GATE , CAT , Bank Exams , AIEEE
Job Role: Bank PO , Bank Clerk

12 4398