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 3898
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 3897
Q:

The 'land of eternal spring' are certain parts of ______

A) Tundra region B) Highland region
C) Mediterranean region D) Hot-Wet Equatorial region
 
Answer & Explanation Answer: D) Hot-Wet Equatorial region

Explanation:

In high plateaus of the Hot  Wet Equatorial Region the temperature is very much lower and so the "Ecuador type' of climate develops typically on the high plateau of Ecuador at an elevation of about 2430 to 3050 meter. Because of the pleasant average temperature of, 13oC. This is described as the "Land of eternal spring".

Report Error

View Answer Report Error Discuss

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

1 3896
Q:

Small most nearly means

A) Muscular B) Slippery
C) Tiny D) Bacon
 
Answer & Explanation Answer: C) Tiny

Explanation:

Small means a little in size or quantity.

Here in the given options, Tiny means same as small.

 

Hence, Small most nearly means as Tiny.

Report Error

View Answer Report Error Discuss

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

5 3895
Q:

What is the structure of an Italian sonnet?

A) Octave B) Pentagon
C) Hexane D) Quadrapul
 
Answer & Explanation Answer: A) Octave

Explanation:

Italian sonnets have 14 lines and are written in iambic pentameter. They are divided into two sections: the octave and the sestet. The octave of an Italian sonnet consists of the first eight lines of the poem. It follows an ABBAABBA rhyme pattern.

Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: AIEEE , Bank Exams , CAT , GRE , TOEFL
Job Role: Analyst , Bank Clerk , Bank PO , Database Administration , IT Trainer

1 3895
Q:

What happens when two atoms form a chemical bond?

A) Two atoms fuse together to form a chemical bond B) The atoms share or transfer electrons
C) A chemical bond forms when two atoms transfer or share protons to achieve a stable nucleus D) Like charges in the atoms cause them to stick together
 
Answer & Explanation Answer: B) The atoms share or transfer electrons

Explanation:

All chemistry is based on sharing electrons. A chemical bond forms when two atoms transfer or share outer electrons to complete their outer shells.

Report Error

View Answer Report Error Discuss

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

6 3894
Q:

Which one of the following is not related to wind erosion ?

A) Wind gap B) Zeugen
C) Dreikanter D) Demoiselle
 
Answer & Explanation Answer: A) Wind gap

Explanation:

Demoiselles

These are rock pillars which stand as resistant rocks above soft rocks as a result of differential erosion of hard and soft rocks.

Zeugen

A table-shaped area of rock found in arid and semi-arid areas formed when more resistant rock is reduced at a slower rate than softer rocks around it.

A Dreikanter

It is a type of ventifact that typically forms in desert or periglacial environments due to the abrasive action of blowing sand.

A wind gap is a gap through which a waterway once flowed that is now dry as a result of stream capture.

Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: Bank Exams

2 3894
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 3892