Questions

Q:

What would be the output of the following program?

main()

{

   struct emp

   {

        char *n;

        int age;

   };

   struct emp e1 = { "Dravid", 23};

   struct emp e2 = e1;

   strupr (e2.n);

   printf ("\n%s",e1.n);

}

Answer

DRAVID


When a structure is assigned, passed, or returned, the copying is done monolithically. This means that the copies of any pointer fields will point to the same place as the original. In other words, anything pointed to is not copied. Hence, on changing the name through e2.n it automatically changed e1.n

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2719
Q:

Nucleotides are made of a pentose only.

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

Explanation:

DNA is made of nucleotides. And these Nucleotides are made of a pentose sugar deoxyribose, a phosphate, and a nitrogen-containing bases.


 


Hence, the given statement 'Nucleotides are made of a pentose only' is FALSE.

Report Error

View Answer Workspace Report Error Discuss

Subject: Biology
Exam Prep: AIEEE , Bank Exams
Job Role: Analyst , Bank Clerk

2 2718
Q:

With which country India exchanged its border maps?

A) China B) Sri Lanka
C) Pakistan D) Bangladesh
 
Answer & Explanation Answer: D) Bangladesh

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography
Exam Prep: Bank Exams

0 2717
Q:

Who is the Italian avant-grade-motion-picture director and screen-writer whose films are known for their haunting images of human isolation?

Answer

Michelangelo Antonioni

Report Error

View answer Workspace Report Error Discuss

2 2717
Q:

Which one of the following pairs of animals is warm blooded?

A) Crocodile and Ostrich B) Hagfish and Dogfish
C) Tortoise and Ostrich D) Peacock and Camel
 
Answer & Explanation Answer: D) Peacock and Camel

Explanation:

Warm-blooded creatures, like mammals and birds, try to keep the inside of their bodies at a constant temperature. They do this by generating their own heat when they are in a cooler environment, and by cooling themselves when they are in a hotter environment. To generate heat, warm-blooded animals convert the food that they eat into energy. Peacock and camel are warm blooded animals.

 

Report Error

View Answer Report Error Discuss

Filed Under: Animals and Birds
Exam Prep: Bank Exams

13 2716
Q:

Improve the bracketed part of the sentence.
He jumped off the train while it (had been running).

A) has been running B) ran
C) was running D) No improvement
 
Answer & Explanation Answer: C) was running

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2716
Q:

Cabinet members report to the

A) President B) Prime Minister
C) Vice President D) All of the above
 
Answer & Explanation Answer: A) President

Explanation:
Report Error

View Answer Report Error Discuss

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

3 2716
Q:

The magnitude of Earthquake is measured on the 

A) Barometer B) Anemometer
C) Kelvin meter D) Richter Scale
 
Answer & Explanation Answer: D) Richter Scale

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Geography

2 2715