Questions

Q:

If the following program (myprog) is run from the command line as 

myprog 1 2 3 

what would be the output?

main(int argc, char *argv[])

{

    int i, j = 0;

    for (i = 0; i < argc ; i++)

           j = j + atoi ( argv[i]);

    printf ("%d", j);

}

A) 123 B) 6
C) Error D) "123"
 
Answer & Explanation Answer: B) 6

Explanation:

When atoi() tries to convert argv[0] to a number it cannot do so (argv[0] being a file name) and hence returns a zero.

Report Error

View Answer Report Error Discuss

Filed Under: Programming

2 13022
Q:

Rearrange the parts of the sentence in correct order.

Technology for
P-tracking droughts has
Q-grown in leaps and bounds
R-forecasting and

A) RQP B) PQR
C) RPQ D) QRP
 
Answer & Explanation Answer: C) RPQ

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 13022
Q:

Which is the gas used for making vegetables and vanaspathi from vegetable oils?

A) Hydrogen B) Nitrogen
C) Argon D) Helium
 
Answer & Explanation Answer: A) Hydrogen

Explanation:

Hydrogen gas is used for making vegetables and vanaspathi from vegetable oils.

As it is colourless, odourless, tasteless, flammable gaseous substance, it is added to oils to make them more solid or spreadable.

The use of hydrogenation helps to prolong the shelf life of the food and maintain flavour stability.

Report Error

View Answer Report Error Discuss

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

25 13021
Q:

India is not a member of 

A) G - 20 B) G - 8
C) SAARC D) U.N
 
Answer & Explanation Answer: B) G - 8

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Organisations

31 13019
Q:

Rearrange the parts of the sentence in correct order.

 

Endothelial cells

 

P : the damaged cell

Q : restoring circulation to

R : are useful in

 

A) QRP B) QPR
C) RQP D) PRQ
 
Answer & Explanation Answer: C) RQP

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams , GRE , TOEFL

0 13013
Q:

Who among the following wrote Sanskrit Grammer

A) Kalidas B) Charaka
C) Panini D) Aryabhatt
 
Answer & Explanation Answer: C) Panini

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

28 13011
Q:

Improve the bracketed part of the sentence.

Both the families were invited but neither (had accepted) our invitation.

A) accepted B) did accept
C) has accepted D) no improvement
 
Answer & Explanation Answer: A) accepted

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 13010
Q:

Seismic waves are recorded by an instrument called the ________________.

 

A) seismograph B) odograph
C) isograph D) lithograph
 
Answer & Explanation Answer: A) seismograph

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams

0 13002