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

A man stands in a lift which accelerates upwards. The resultant reaction force on the floor of the lift is 

A) greater than the weight of the man B) less than the weight of the man
C) Same as the weight of the man D) Zero
 
Answer & Explanation Answer: A) greater than the weight of the man

Explanation:

The weight of the man mg is acting on the floor. As the lift is moving up with an acceleration, say a, the man too in it is having this acceleration. The force producing this acceleration is ma. By Newton's third law, this force will have an equal reaction pressing the floor equal to ma. Therefore the total resultant reaction on the floor is mg+ma = m(g+a) which is mg, the weight of the man. So (a) is correct.

Report Error

View Answer Report Error Discuss

Filed Under: Physics

1 3720
Q:

Who of the following has won the Femina Miss India 2014 crown?

A) Vanya Mishra B) Koyal Rana
C) Megan Young D) Navneet Kaur
 
Answer & Explanation Answer: B) Koyal Rana

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

1 3720
Q:

As per the recommendations of the 12th Finance Commission, what will be the Share of the State Govts in total shareable proceeds of Central taxes?

A) 15% B) 20.5%
C) 22% D) 30.5%
 
Answer & Explanation Answer: D) 30.5%

Explanation:
Report Error

View Answer Report Error Discuss

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

1 3719
Q:

What is the Lithosphere made of?

A) Soil B) Rocks
C) Dirt D) Water
 
Answer & Explanation Answer: B) Rocks

Explanation:

Lithoshpere are composed of rocks in the crust and upper mantle that behave as brittle solids. The lithosphere is Earth's outermost layer.

Report Error

View Answer Report Error Discuss

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

7 3718
Q:

USA suggested a policy, according to which all countries would have equal rights to trade anywhere in China,was known as_______

A) open Door Policy B) Me Too Policy
C) Both (a) and (b) D) Universal Policy
 
Answer & Explanation Answer: C) Both (a) and (b)

Explanation:

After the defeat of china by Japan in a war over Korea in 1894,France, Russia, Britain and Germany gave loan to china to help it to the payment of 150 million dollors demanded by japan. These western countries the divided china into spheres of influence, which meant that each country had certain regions of china reserved exclusively for its purposes.

          The united states feared that china would be completely parcelled out in exclusive 'spheres of influence' and that its trade with china would be shut off. The USA, therefore, suggested the policy known as the "Open Door". This policy is also described as "Mee too Policy".

          The division of China into "spheres of influence' has often been described as the "cutting of the Chinese melon".

 

Report Error

View Answer Report Error Discuss

Filed Under: World History

1 3718
Q:

Which of the following monuments was not constructed by Shajahan?

A) Red fort, Delhi B) Tajmahal, Delhi
C) Kuthubminar, Delhi D) Jama Masjid, Delhi
 
Answer & Explanation Answer: C) Kuthubminar, Delhi

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

5 3717
Q:

Which of the following became the first company to launch mobile payment service in India ?

A) Google B) Samsung
C) IBM D) Apple
 
Answer & Explanation Answer: B) Samsung

Explanation:

Samsung has become the first company in India to launch its mobile payment service named Samsung pay.

Report Error

View Answer Report Error Discuss

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

3 3717