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

The Mesoamerican leader Pakal, The great was

A) the king of a Maya city-state. B) the ruler of a Zapotec state.
C) the emperor of the Aztec people. D) the head of the Inca religion.
 
Answer & Explanation Answer: A) the king of a Maya city-state.

Explanation:

The Mesoamerican leader Pakal, The great was the king of a Maya city-state in the history.

Report Error

View Answer Report Error Discuss

Filed Under: Famous Personalities
Exam Prep: AIEEE , Bank Exams
Job Role: Analyst , Bank Clerk , Bank PO

2 2718
Q:

Which of the following is not a video file extension?

A) .flv B) .mov
C) .mp3 D) None of the above
 
Answer & Explanation Answer: C) .mp3

Explanation:

.mp3 is audio file extension.

Report Error

View Answer Report Error Discuss

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

6 2717
Q:

The combined gas law relates which of the following?

A) Volume & Temperature B) Temperature & Pressure
C) Volume & Pressure D) Volume, Temperature & Pressure
 
Answer & Explanation Answer: D) Volume, Temperature & Pressure

Explanation:

The combined gas law states that the ratio between the pressure-volume product and the temperature of a system remains constant.

 

Hence it depends on all the three Volume, Temperature & Pressure.

Report Error

View Answer Report Error Discuss

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

2 2717
Q:

The gaseous form of water is called

A) Methane B) Water vapour
C) Humidity D) Propane
 
Answer & Explanation Answer: B) Water vapour

Explanation:

the gaseous form of water is called water vaour.

Report Error

View Answer Report Error Discuss

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

4 2715
Q:

Sugar is a component of which of the following?

A) Lipids B) Nucleic acids
C) Carbohydrates D) Both B & C
 
Answer & Explanation Answer: C) Carbohydrates

Explanation:

Sugar is a component of Carbohydrates.

Report Error

View Answer Report Error Discuss

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

4 2715
Q:

Which gas is used in tube light?

A) Oxygen B) Hydrogen
C) Neon D) Nitric oxide
 
Answer & Explanation Answer: C) Neon

Explanation:
Report Error

View Answer Report Error Discuss

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

4 2715
Q:

Select the synonym of
troll

A) spruce B) suave
C) gnome D) dapper
 
Answer & Explanation Answer: C) gnome

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams , CAT

2 2715