Questions

Q:

World Population Day is observed on ____ ?

A) 9 July B) 11 July
C) 15 July D) 4 July
 
Answer & Explanation Answer: C) 15 July

Explanation:

World Population day is an annual event, observed on July 11 every year, which seeks to raise awareness of global population issues. 

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

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

Prime Minister Narendra Modi flagged off the third Mahamana Express running between_______ .

A) Delhi and Lucknow B) Vadodara and Varanasi
C) Patna and Delhi D) Vadodara and Delhi
 
Answer & Explanation Answer: B) Vadodara and Varanasi

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams
Job Role: Bank Clerk

13 4100
Q:

Managing advertising, sales promotion and public relations :

what is public relations in marketing?

Answer

Public relations includes promotional activities that work to create a strong public image of the company. Public relations activities include helping the public to understand the company and its products. Public relations if done right can reach a large audience without the expensive cost of traditional advertising and marketing.

Report Error

View answer Workspace Report Error Discuss

0 4099
Q:

Which standard govern parallel communications?

A) CAT 5 B) IEEE 1284
C) RS-232 D) None of the above
 
Answer & Explanation Answer: B) IEEE 1284

Explanation:

IEEE 1284 is a standard that govern parallel communications.

 

  • IEEE 1284 is a standard that defines bi-directional parallel communications between computers and other devices.

 

  • It was originally developed in the 1970s by Centronics, and was widely known as the Centronics port, both before and after its IEEE standardization.

 

                      which_standard_govern_parallel_communications1539064136.jpg image

Report Error

View Answer Report Error Discuss

6 4098
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 4095
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 4095
Q:

Under Sher Shah the largest administrative unit was administrated by a chief namely 

A) Shikadar B) Mansabdar
C) Kasi D) Faujdar
 
Answer & Explanation Answer: A) Shikadar

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

5 4094