Questions

Q:

How would you check whether the contents of two structure variables are same or not?

Answer

struct emp


{


     char n[20];


      int age;


};


main()


{


    struct emp e1 = {"Dravid", 23};


   struct emp e2;


   scanf ("%s %d",e2.n, & e2.age);


   if( structcmp (e1,e2) ==0)


        printf ("The structures are equal");


   else


         printf ("The structures are unequal");


}


structcmp ( struct emp x, struct emp y)


{


     if (strcmp (x.n,y.n) ==0)


           if (x.age == y.age)


            return (0);


            return (1);


}


In short, if you nee to compare two structures, you'll have to write your own function to do so which carries out the comparison field by field.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 3352
Q:

Which of the following is the mixture

A) distilled water B) gasoline
C) liquified petroleum gas D) both (b) & (c)
 
Answer & Explanation Answer: D) both (b) & (c)

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry

3 3351
Q:

Entrepreneurship as a theory of business was propounded by

A) Thomas A. Coleman B) Joseph A. Schumpeter
C) Adam Smith D) Douglas McGregor
 
Answer & Explanation Answer: B) Joseph A. Schumpeter

Explanation:

Entrepreneurship as a theory of business was propounded by Joseph. A. Schumpeter.

 

Schumpeter’s Innovation Theory of Profit :


Definition:  The Innovation Theory of Profit was proposed by Joseph. A. Schumpeter, who believed that an entrepreneur can earn economic profits by introducing successful innovations.

Report Error

View Answer Report Error Discuss

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

6 3350
Q:

Select the antonym of

to brood

A) to repine B) to ignore
C) to fret D) to mope
 
Answer & Explanation Answer: B) to ignore

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 3350
Q:

Which team became the first team in history to win 100 T20 matches  ?

A) Sunrisers Hyderabad B) Bangalore Royal Challengers
C) Kolkata Knight Riders D) Mumbai Indians
 
Answer & Explanation Answer: D) Mumbai Indians

Explanation:

Two times IPL champions Mumbai Indians (MI) reached a new milestone as they became the first team in history to win 100 T20 matches. The Mumbai outfit defeated Kolkata Knight Riders (KKR) at the Eden Gardens by 9 runs in their final match of the league stage of IPL 2017.

Report Error

View Answer Report Error Discuss

Filed Under: Sports
Exam Prep: Bank Exams , CAT , GATE
Job Role: Bank Clerk , Bank PO

12 3349
Q:

Pick out the only vector quantity

A) pressure B) impulse
C) gravitational potential D) co-efficient of friction
 
Answer & Explanation Answer: B) impulse

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics

5 3349
Q:

The world's tallest twisted tower is ?

A) Tokyo Sky Tree B) BREN Tower
C) Burj Khalifa D) Infinity Tower
 
Answer & Explanation Answer: D) Infinity Tower

Explanation:

The world's tallest twisted tower, the Infinity Tower was launched in Dubai Marina on 10 June 2013.

Report Error

View Answer Report Error Discuss

Filed Under: Famous Places
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Bank PO

5 3347
Q:

What has a foot but no legs?

Answer

A measuring device.


 


Measuring devices have feet on them to measure distance.

Report Error

View answer Workspace Report Error Discuss

5 3346