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

In 1926, Which of the following universties was founded by Madan Mohan Malaviya alond with Anne Besant ?

A) Punjab university B) Delhi University
C) Benaras Hindu University D) University of Madras
 
Answer & Explanation Answer: C) Benaras Hindu University

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

1 3712
Q:

What makes an election democratic?

A) Elections should be held at regular intervals. B) The candidate preferred by the people should get elected.
C) Every citizen should have one vote ad every vote should have an equal value. D) All the above
 
Answer & Explanation Answer: D) All the above

Explanation:

In short, Democracy is a government "of the people, by the people, and for the people."

 

Definition :

Democracy "is government by the people in which the supreme power is vested in the people and exercised directly by them or by their elected agents under a free electoral system." 


The conditions of a democratic election are:

 

* Every citizen should have one vote ad every vote should have an equal value.

* Voters choose from the political parties and candidates should be free to contest elections giving the voters a real choice.

* Elections should be held at regular intervals.

* The candidate preferred by the people should get elected.

* Elections should be conducted in free and fair manner where people can choose as they really wish.

Report Error

View Answer Report Error Discuss

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

2 3709
Q:

Which of the following village has won the 'WATER AWARD' an award instituted by Water Digest ?

A) Govardhan Eco Village B) Saranagati Eco Village
C) New Gokula D) New Gokul Farm
 
Answer & Explanation Answer: A) Govardhan Eco Village

Explanation:

The Govardhan Eco Village of International Society for Krishna Consciousness (ISKCON) at Wada taluka, has received an award instituted by Water Digest, a news portal on water management.

Report Error

View Answer Report Error Discuss

Filed Under: Honours and Awards

4 3709
Q:

The longest ship canal in the world is the

A) Suez canal, Egypt B) Kiel canal, Germany
C) Panama canal, Central America D) St. Laurence Seaway (USA and Canada)
 
Answer & Explanation Answer: D) St. Laurence Seaway (USA and Canada)

Explanation:
Report Error

View Answer Report Error Discuss

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

2 3708
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 3707
Q:

Nitrogenous Food is

A) Proteins B) Carbohydrates
C) Salts D) Lipids
 
Answer & Explanation Answer: A) Proteins

Explanation:

Here the Nitrogenous Food is Proteins.

Nitrogenous Food ::

The animal body is more than a machine. It requires fuel to enable it not only to work but also to live, even without working. A part of the food eaten must go to maintain the body

Nitrogenous food compounds are sometimes classed together under the name of proteins. These may be divided into proteids, gelatinoids, and extractives.

Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: AIEEE , Bank Exams
Job Role: Analyst , Bank Clerk , Bank PO , IT Trainer

5 3707
Q:

The exercise of converting the financial outlays into physical outcomes, with fixed quarterly measurable and monitorable target is called

A) Outcome budget B) Estimated budget
C) Expenditure estimate D) None of these
 
Answer & Explanation Answer: A) Outcome budget

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

6 3707