Questions

Q:

 A distributed database can use which of the following strategies?

A) Totally centralized one location and accessed by many sites B) Partially or totally replicated across sites
C) Partitioned into segments at different sites D) All of the above
 
Answer & Explanation Answer: D) All of the above

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Database

0 3886
Q:

Which of the following is NOT a waste material removed from blood in the kidney?

 

A) Ammonia B) Carbon dioxide
C) Urea D) Uric acid
 
Answer & Explanation Answer: B) Carbon dioxide

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: AIEEE , Bank Exams

1 3883
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 3883
Q:

Who has been selected for the prestigious 2016 Jnanpith Award ?

A) Ravuri Bharadwaja B) Shankha Ghosh
C) Kedarnath Singh D) Chandrashekara Kambara
 
Answer & Explanation Answer: B) Shankha Ghosh

Explanation:

Shankha Ghosh, the outstanding Bengali writer, commentator and academician, has been chosen for the prestigious 52nd version of the Jnanpith Award (2016) by the Government of India (GoI) for his lovely phrase and tries different things with different beautiful structures check his significance as an imaginative ability.The Jnanpith Award is presented every year to a literary figure for their outstanding contribution in literature. The honor conveys a reference, prize cash of Rs. 12 lakh and a bronze imitation of Goddess Saraswati.He turned into the sixth Bengali creator to win India's most astounding artistic honor after Mahasweta Devi, Tarashankar Bandopadhyay, Ashapurna Devi, Subhash Mukhopadhyay and Bishnu Dey.

Report Error

View Answer Report Error Discuss

Filed Under: Famous Personalities
Exam Prep: Bank Exams
Job Role: Bank Clerk

12 3882
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 3882
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 3881
Q:

The shorter i am, the bigger i am.

What am I?

Answer

A Temper.

Report Error

View answer Workspace Report Error Discuss

8 3881
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 3881