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 3351
Q:

The type of fracture where bone is broken at several places

A) Complicated fracture B) Green stick fracture
C) Impact fracture D) Comminuted fracture
 
Answer & Explanation Answer: D) Comminuted fracture

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology

8 3351
Q:

Ecology deals with the study of

A) Environment B) Birds
C) Organisms and their Environment D) Living beings
 
Answer & Explanation Answer: C) Organisms and their Environment

Explanation:

ecology_deals_with_the_study_of1553078201.png image

Ecology is the branch of science which deals with the study of Ecosystem (relation between the Organisms and their Environment.)

Report Error

View Answer Report Error Discuss

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

16 3350
Q:

Which of the following is not transferred by alveoli?

A) Gases B) Oxygen
C) Blood D) Carbondioxide
 
Answer & Explanation Answer: C) Blood

Explanation:

The main function of the pulmonary alveoli is to perform the transfer and exchange of gases. Here in the given options, blood is only one which is not gas.

 

Hence, blood is not transferred by alveoli.

Report Error

View Answer Report Error Discuss

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

4 3350
Q:

Rearrange the parts of the sentence in correct order.

Despite this high-­level political

P-­have achieved little
Q-­these summits
R-­attention, and fanfare,

 

A) QRP B) RQP
C) PRQ D) PQR
 
Answer & Explanation Answer: B) RQP

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

1 3350
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 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 3346
Q:

K-9 Journal, which was recently released, is associated with which field?

 

A) Pandemic B) Robotics
C) Medicine D) Policing
 
Answer & Explanation Answer: D) Policing

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

1 3345