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

Choose the word which is nearest in meaning to the given word:-

Anathema

A) Religious Chant B) Pun
C) Musical Subject D) Curse
 
Answer & Explanation Answer: D) Curse

Explanation:

Anathema means hateful, Pun means double meaning, Curse means imprecation. Anathema is nearest in meaning to curse.

Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 12874
Q:

The base of an electric iron is brightly polished mainly

A) to make it smooth and frictionless B) to make it rust-proof
C) to reduce heat loss by radiation D) to make it more durable
 
Answer & Explanation Answer: C) to reduce heat loss by radiation

Explanation:

Polished surfaces are poor radiators of heat. So loss of heat on that account is reduced and the electric iron remains hotter than otherwise.

Report Error

View Answer Report Error Discuss

Filed Under: Physics

44 12870
Q:

The value of acceleration due to gravity (g) ____.

 

A) is greater at the poles than at the equator B) is lesser at the poles than at the equator
C) is greater at the North pole than at the South pole D) is greater at the South pole than at the North pole
 
Answer & Explanation Answer: A) is greater at the poles than at the equator

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams

0 12868
Q:

The core of an electromagnet is made of soft iron because soft iron has 

A) small susceptibility and small retentivity B) large susceptibility and small retentivity
C) large density and large retentivity D) small density and large retentivity
 
Answer & Explanation Answer: B) large susceptibility and small retentivity

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics

75 12862
Q:

Select the antonym of

stupor

A) swoon B) consciousness
C) trance D) apathy
 
Answer & Explanation Answer: B) consciousness

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 12861
Q:

Which one of the following statements would be INCORRECT to use?

 

A) An atom of a compound B) A mole of an element
C) A mole of a compound D) An atom of an element
 
Answer & Explanation Answer: A) An atom of a compound

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: Bank Exams

0 12856
Q:

Improve the bracketed part of the sentence.

 

A new chapter (may been put forth) that India gained Independence only in the last one year and not in 1947.

 

A) may have been putted forth B) may be put forth
C) may be left forth D) No improvement
 
Answer & Explanation Answer: B) may be put forth

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 12855