Questions

Q:

Taj Hotels has entered into a marketing alliance with The Shilla Hotels & Resorts of Korea. Shilla Hotels is affiliated to which industrial group?

A) Hyundai B) LG
C) Samsung D) Daewoo
 
Answer & Explanation Answer: C) Samsung

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Business Awareness

11 3884
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:

In a bisexual flower if androcium and gynoecium mature at different time the phenomeon is known as _________

A) Dichogamy B) Herpogamy
C) Haterogamy monogamy D) None of these
 
Answer & Explanation Answer: A) Dichogamy

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology

10 3883
Q:

Rolling friction is caused by ____ from the following?

A) Non-elastic effects B) Gravity
C) Power dissipation D) Buoyancy
 
Answer & Explanation Answer: A) Non-elastic effects

Explanation:

Rolling friction or rolling drag is the force resisting the motion when a body rolls on a surface. It is mainly caused by non-elastic effects, that is, not all the energy needed for deformation of the wheel, roadbed, etc... is recovered when the pressure is removed.

Another cause of rolling resistance lies in the slippage between the wheel and the surface, which dissipates energy.

Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: AIEEE , Bank Exams , CAT , GATE , GRE
Job Role: Bank Clerk , Bank PO

10 3882
Q:

How many such pairs of letters are there in the word ORDINAL each of which has as many letters between them in the word as in the English alphabet?

A) None B) One
C) Two D) Three
 
Answer & Explanation Answer: D) Three

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Verbal Reasoning - Mental Ability
Exam Prep: Bank Exams
Job Role: Bank PO

5 3881
Q:

Which of the statements given below are correct?

A) Viktor Axelsen won the Men's Singles Badminton 2017 BWF World Championships.

B) Max Verstappen won the Formula One 2017 United States Grand Prix.

C) In 2018 IPL auctions, Sunrisers Hyderabad retained David Warner.

 

A) B and C B) A and C
C) A and B D) A, B and C
 
Answer & Explanation Answer: B) A and C

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports
Exam Prep: Bank Exams

0 3877
Q:

c with a line over it symbol means

A) with B) without
C) and D) or
 
Answer & Explanation Answer: A) with

Explanation:

The letter “c” with a line over it is a medical abbreviation often used by doctors, nurses, and other medical professionals. The symbol looks like this: c̄. The c is almost always lower-case.

This symbol actually has a very simple meaning. A c with a line over it just means “with”. This abbreviation is often used on patient charts and prescriptions, as well as information or notes written by medical professionals.

Report Error

View Answer Report Error Discuss

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

0 3876
Q:

When is International Day of Families observed  ?

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

Explanation:

15 May. Theme of International Day of Family 2017 is “Families, education and well-being”.

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

3 3875