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

Which of the following is not a monosaccharide? 

A) Fructose B) Glucose
C) Galactose D) Sucrose
 
Answer & Explanation Answer: D) Sucrose

Explanation:

Sucrose is not a monosaccharide.

 

Monosaccharides are simple carbohydrates molecules that cannot be broken down into smaller molecules of other carbohydrates.

 

Glucose, galactose and fructose are examples of Monosaccharides.

Report Error

View Answer Report Error Discuss

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

1 3904
Q:

Fat in the body helps to protect vital organs.

A) TRUE B) FALSE
Answer & Explanation Answer: A) TRUE

Explanation:

In the body, the fat stored can be served as a cushions or insulation which protects the vital organs in the body from the external damage in the environment.

Report Error

View Answer Workspace Report Error Discuss

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

0 3903
Q:

The most valuable cash crop of Brazil is 

A) Tea B) Coffee
C) Cardamom D) Spices
 
Answer & Explanation Answer: B) Coffee

Explanation:

Warm, moist climate (with a temperature of 180 C- 270C and well-distributed rainfall between 125 to 200 cms) and deep, loamy, well-drained soil made of weathered lava are most suitable for the cultivation of coffee. However,  Brazil is a quantity producer and not a quality producer.

Report Error

View Answer Report Error Discuss

Filed Under: World Geography
Exam Prep: Bank Exams
Job Role: Bank PO

1 3902
Q:

Archetypes are useful in literature because

A) they are easily recognized and convey a lot of information B) they help readers categorize a piece of literature
C) readers and viewers expect authors to use them D) readers like everything longer and more complicated
 
Answer & Explanation Answer: A) they are easily recognized and convey a lot of information

Explanation:

Archetypes were models of people, behaviors, or personalities. They were inborn tendencies that play a role in influencing human behavior.

 


For example: A hero, an innocent, the villain, the mentor, etc...

Archetypes_are_useful_in_literature_because1560401866.jpg image

 


1. The mentor is a common archetype in literature. The mentor is usually old, and this person often has some kind of magical abilities or a much greater breadth of knowledge than others possess.

 

2. Characters representing the innocent archetype are often women or children. These character archetypes are pure in every way.

 

3. The villain wants to stop the hero archetype from achieving his or her goal. The villain is often evil, though there is often a reason—however warped that reason may be—why villains are so bad. Villains often want nothing more than to control and have power over everyone and everything around them.

Report Error

View Answer Report Error Discuss

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

0 3901
Q:

Who is Dr. Kasturirangan

A) Chairman, ISRO B) Finance Secretary,Govt. of TamilNadu
C) Vice Chancellor,Anna University D) Director,DRDO
 
Answer & Explanation Answer: A) Chairman, ISRO

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Personalities

3 3900
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 3899
Q:

Who is known as the Iron man of India

A) Jawaharlal Nehru B) Balgangadar Tilak
C) Sardar Vallabhabai Patel D) Mahatma Gandhi
 
Answer & Explanation Answer: C) Sardar Vallabhabai Patel

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Personalities

4 3898