Questions

Q:

Mycolog is the branch of botany in which we study about

A) Algae B) Fungi
C) Bacteria D) Virus
 
Answer & Explanation Answer: B) Fungi

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology

7 4102
Q:

What is the capital of colombia?

A) Beijing B) Dacota
C) Bogota D) Moroni
 
Answer & Explanation Answer: C) Bogota

Explanation:

Capital of Colombia is Bogota

Report Error

View Answer Report Error Discuss

Filed Under: Country Capitals

17 4102
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 4102
Q:

' Ashoka Chakra ' is awarded for 

A) Outstanding contribution to literature B) Gallantry by children
C) Acts of gallantry in the presence of the enemy D) Acts most conspicuous bravery of self saccrifice on land, air or sea but not in the presence of the enemy
 
Answer & Explanation Answer: D) Acts most conspicuous bravery of self saccrifice on land, air or sea but not in the presence of the enemy

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Honours and Awards

3 4102
Q:

Digitized information can be used by computers.

A) TRUE B) FALSE
Answer & Explanation Answer: A) TRUE

Explanation:

TRUE. The computers and electronic devices use digitized information which is easily understood by them.


 


Digitization is the process of converting analog signals or information of any form into a digital format that can be understood by computer systems or electronic devices. The term is used when converting information, like text, images or voices, and sounds, into binary code.

Report Error

View Answer Workspace Report Error Discuss

6 4101
Q:

Which British Governor General is also known as the maker of Modern India?

A) Lord Dalhousie B) Lord Amherst
C) Lord Canning D) Lord Wiliam Bentinck
 
Answer & Explanation Answer: A) Lord Dalhousie

Explanation:

Lord Dalhousie was appointed as Governer General of India from 1848–1856. The first railway line connecting Bombay and Thane was laid under his authority in 1853 and is known as the maker of Modern India. He made way For Telegraph Services in India. 

Lord-Dalhousie1562740124.jpg image

He is also called as Father of Indian Railways.

Report Error

View Answer Report Error Discuss

Filed Under: Indian History
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

23 4099
Q:

Famous play ' Macbeth ' is written by

A) Leo Tolstoy B) William Shakespeare
C) john Milton D) Charles Dickens
 
Answer & Explanation Answer: B) William Shakespeare

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors

6 4099
Q:

The famous song ‘Saare Jaha se Achha’ is composed by ___________

A) Ravindra Nath Tagore B) Bankim Chandra Chattopadhya
C) Mohammad Iqbal D) one of the above
 
Answer & Explanation Answer: C) Mohammad Iqbal

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Culture

53 4099