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

Which organization created a shared economy?

A) North American Free Trade Agreements B) Association of Southeast Asian Nations
C) World Trade Organization D) European Union
 
Answer & Explanation Answer: D) European Union

Explanation:

The organization that created the shared economy is European Union.

Report Error

View Answer Report Error Discuss

Filed Under: World Organisations
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

3 3481
Q:

A cup of hot coffee is placed on a metal table in a room. By which of the following methods does it lose heat?

A) conduction and convection only B) conduction and radiation only
C) convection and radiation only D) conduction, convection and radiation
 
Answer & Explanation Answer: D) conduction, convection and radiation

Explanation:

Part of the heat is conducted away by the metal table. Convection currents in air near the surface of the coffee are set up which accounts for some heat loss. Heat is also lost by radiation from the hot coffee to the surroundings. Most of the heat is lost by the last method.

Report Error

View Answer Report Error Discuss

Filed Under: Physics

5 3481
Q:

A fixture is defined as a device which

A) is used to check the accuracy of workpiece B) holds and locates a workpiece and guides and controls one or more cutting tools
C) holds and locates a workpiece during an inspection or for a manufacturing operation D) All of the above
 
Answer & Explanation Answer: B) holds and locates a workpiece and guides and controls one or more cutting tools

Explanation:

A_fixture_is_defined_as_a_device_which1551357222.jpg image

A fixture is defined as a device which holds and locates a workpiece and guides and controls one or more cutting tools.

Report Error

View Answer Report Error Discuss

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

1 3480
Q:

Which half reaction correctly represents reduction?

A) Fe2+ + e- ---> Fe3+ B) Au3+ + 3e– ---> Au
C) Ag ---> Ag+ + e- D) All of the above
 
Answer & Explanation Answer: B) Au3+ + 3e– ---> Au

Explanation:

A half reaction is either the oxidation or reduction reaction component of a redox reaction. A half reaction is obtained by considering the change in oxidation states of individual substances involved in the redox reaction.

Report Error

View Answer Report Error Discuss

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

0 3480
Q:

The Union Territories get representation in

A) Lok Sabha B) Rajya Sabha
C) Both A & B D) Supreme Court
 
Answer & Explanation Answer: C) Both A & B

Explanation:

The Union Territories get representation in Both the houses of Parliament i.e, The Lok Sabha and The Rajya Sabha.

Report Error

View Answer Report Error Discuss

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

13 3480
Q:

Which of the following is the regulator of the credit rating agencies in india?

A) RBI B) SBI
C) SIDBI D) SEBI
 
Answer & Explanation Answer: D) SEBI

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams
Job Role: Bank PO

4 3479
Q:

Match the following:

A) A­4, B­1, C­3, D­2 B) A­3, B­2, C­4, D­1
C) A­2, B­3, C­1, D­4 D) A­1, B­4, C­2, D­3
 
Answer & Explanation Answer: A) A­4, B­1, C­3, D­2

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

11 3478