Questions

Q:

The artificial kidney is a

A) transplant B) machine
C) another's kidney D) other kidney from same body
 
Answer & Explanation Answer: B) machine

Explanation:

The artificial kidney is the dialysis machine. Blood from the body is fed into the machine which removes nitrogenous wastes like urea and returns the blood back to the body.People with renal failure have to use this machine.

Report Error

View Answer Report Error Discuss

Filed Under: Biology

11 3880
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 3879
Q:

In order to e-mail a Word document from within Word _______ 

A) Go to file/Send To/Mail Recipient B) Save the file as an e-mail attachment
C) Start outlook and attach the file while open in word D) This is an impossible operation
 
Answer & Explanation Answer: A) Go to file/Send To/Mail Recipient

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Computer
Exam Prep: Bank Exams

11 3878
Q:

Niligiri Tahr is the state animal of which of the following states ?

A) Tamil Nadu B) Karnataka
C) Maharashtra D) Kerala
 
Answer & Explanation Answer: A) Tamil Nadu

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Animals and Birds
Exam Prep: Bank Exams , CAT
Job Role: Bank Clerk

20 3877
Q:

6 B in an O?

A) 6 books in an order B) 6 balls in an over
C) 6 bats in an odd D) None of the above
 
Answer & Explanation Answer: B) 6 balls in an over

Explanation:

6 b in an o means 6 balls in an over in cricket.

Report Error

View Answer Report Error Discuss

4 3877
Q:

World Youth Skills Day is observed on _____ ?

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

Explanation:

The United Nations General Assembly in November 2014 declared 15th July as World Youth Skills Day.

This day is celebrated all over the world to raise the awareness about the issue of unemployment among youth. 

Theme for the year 2017 is Skills for All.

Report Error

View Answer Report Error Discuss

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

10 3877
Q:

Rearrange the parts of the sentence in correct order.

 

Earlier its forays

P-were concentrated on ancient
Q-and medieval India
R-in history

 

A) RPQ B) RQP
C) PQR D) QPR
 
Answer & Explanation Answer: A) RPQ

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 3877
Q:

Give the iupac name for the following compound?

che1530787063.jpg image

A) Sec-Butylcyclohexine B) Isopropylcyclohexane
C) 2-Cyclohexybutane D) None of the above
 
Answer & Explanation Answer: B) Isopropylcyclohexane

Explanation:
Report Error

View Answer Report Error Discuss

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

3 3876