Questions

Q:

Main memory works in conjunction with

A) CPU B) Intel
C) RAM D) Special function cards
 
Answer & Explanation Answer: A) CPU

Explanation:

Main memory works in conjunction with CPU.

Report Error

View Answer Report Error Discuss

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

8 4436
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 4435
Q:

Solve this Math puzzle?

math_number_puzzle1538999808.jpg image

A) 96 B) 88
C) 40 D) 19
 
Answer & Explanation Answer: A) 96

Explanation:

The given math puzzle follows a logic that,

1 + 4 = 5 => 1 x 4 + 1 = 5

2 + 5 = 12 => 2 x 5 + 2 = 12

3 + 6 = 21 => 3 x 6 + 3 = 21

 

Similarly,

8 + 11 = > 8 x 11 + 8 = 96.

Report Error

View Answer Report Error Discuss

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

9 4435
Q:

Localized area of pus formation in the lungs is

A) Pulmonary embolism B) Pulmonary abscess
C) Pleurisy D) Pulmonary edema
 
Answer & Explanation Answer: B) Pulmonary abscess

Explanation:

Pulmonary abscess is a type of liquefactive necrosis of the lung tissue. 

 

 localized_area_of_pus_formation_in_the_lungs1537941339.jpg image

 

Hence, Localized area of pus formation in the lungs is Pulmonary abscess.

Report Error

View Answer Report Error Discuss

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

4 4434
Q:

Diamond is harder than Graphite because of

A) tetrahedral structure of diamond B) difference of crystalline structures
C) difference of layers of atoms D) hexagonal structure of graphite
 
Answer & Explanation Answer: B) difference of crystalline structures

Explanation:

Here are the differences between Diamond and Graphite :

 

diamond_is_harder_than_graphite_because_of1557300898.jpg image

 

From the above analysis, Diamond is harder than Graphite because of the difference of crystalline structures.

Report Error

View Answer Report Error Discuss

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

3 4434
Q:

India's first National Defence University is being established in

A) Gurgaon B) Hissar
C) Panipat D) Ambala
 
Answer & Explanation Answer: A) Gurgaon

Explanation:
Report Error

View Answer Report Error Discuss

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

2 4432
Q:

Nobel Prize is established in  ?

A) 1931 B) 1911
C) 1901 D) 1951
 
Answer & Explanation Answer: C) 1901

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: CAT , Bank Exams

8 4431
Q:

What time of year do squirrels build nests?

A) Winter B) Summer
C) Rainy D) Monsoon
 
Answer & Explanation Answer: B) Summer

Explanation:

Squirrels typically build leaf nests in the summer by weaving together small branches they've gnawed off of trees. These nests are lined with grass, moss, leaves and pine needles. Both male and female gray squirrels of all ages participate in building dens.
 

Report Error

View Answer Report Error Discuss

Filed Under: Animals and Birds
Exam Prep: AIEEE , Bank Exams
Job Role: Analyst , Bank Clerk , Bank PO

12 4431