Questions

Q:

What would be the output of the following program?

main()

{

    static int a[20];

    int i = 0;

    a[i] = i++;

    printf ("\n%d%d%d", a[0],  a[1], i);

}

Answer

0  0  1


That's what some of the compilers would give. But some other compiler may give a different answer. The reason is, when a single expression causes the same object to be modified and then inspected the behaviour is undefined.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2257
Q:

A passage is given with 5 questions following it. Read the passage carefully and choose the best answer to each question out of the four alternatives and click the button corresponding to it.

 

Man's attitude to various animals changed many times in the course of centuries. From indifference or practicality, he went on to adoration and deification, and then to hatred. Ancient Egyptians, for example, highly appreciated the cat's ability to destroy rodents. The cat was much superior in this respect to the grass­snakes and weasels they had kept in their houses before. These proved unable to cope with hordes of rats which invaded Egypt from Asia. So the cat, a very useful animal, was ranked as a sacred animal and one of the most important animals, too. The goddess of the Moon, fertility and child­birth, Bast herself was portrayed by the Egyptians as a woman with a cat's head.

Sumptuous temples were built to this goddess, where cats were kept in luxury and fed the choicest of foods. They had their own priests and votaries, more numerous as a matter of fact than any other sacred animal could boast. According to the Greek historian Herodotus, the festival in the city of Bubastis, which had a temple dedicated to cats, was attended by as many as 700 thousand, who brought their offerings to the goddess in the shape of figurines of her made of gold, silver and bronze and adorned with precious stones.

 

The word 'deification' in the passage means _____ .

A) highly valuable B) take pride
C) act of treating as God D) devotees
 
Answer & Explanation Answer: C) act of treating as God

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2257
Q:

In the following question, out of the four alternatives, choose the word which is opposite in meaning to the given word and click the button corresponding to it.

RUGGED

A) HARD B) STURDY
C) SMOOTH D) ROUGH
 
Answer & Explanation Answer: C) SMOOTH

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2256
Q:

The goals of psychology are to

A) describe the behavior B) control the behavior
C) predict the behavior D) All of the above
 
Answer & Explanation Answer: D) All of the above

Explanation:

The main goals of psychology are four. They are::

 

1. To describe,

2. To explain,

3. To predict (and)

4. To control the behavior and mental processes of others.

Report Error

View Answer Report Error Discuss

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

1 2256
Q:

Which of the given below is not a hardware?

A) Assembler B) Monitor
C) Printer D) All of the above
 
Answer & Explanation Answer: A) Assembler

Explanation:

Assembler is not the hardware among the given options. Hardware is what is made of IC's and circuits.

Report Error

View Answer Report Error Discuss

2 2256
Q:

Other things equal an improvement in productivity will

A) shift the aggregate demand curve to the left B) shift the aggregate supply curve to the right
C) increase the equilibrium price level D) shift the aggregate supply curve to the left
 
Answer & Explanation Answer: B) shift the aggregate supply curve to the right

Explanation:
Report Error

View Answer Report Error Discuss

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

4 2256
Q:

Mohenjo Daro is situated in

A) Gujarat B) Punjab
C) Afghanistan D) Sindh province of Pakistan
 
Answer & Explanation Answer: D) Sindh province of Pakistan

Explanation:

The ancient settlement of Mohenjo-daro is situated in Larkana District in the Sindh province of Pakistan.

Report Error

View Answer Report Error Discuss

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

2 2256
Q:

Hitler launched Operation Barbarossa in 1941 against the

Answer

Soviet Union

Report Error

View answer Workspace Report Error Discuss

Subject: World History

1 2255