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

In nuclear reactor,Chain reaction is controlled by introducing

A) cadmium rod B) iron rod
C) platinum rod D) graphite rod
 
Answer & Explanation Answer: A) cadmium rod

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry

34 12898
Q:

When you save to this, your data will remain intact even when the computer is turned off ____

A) RAM B) Mother board
C) Secondary storage device D) Primary storage device
 
Answer & Explanation Answer: C) Secondary storage device

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Computer
Exam Prep: Bank Exams

24 12893
Q:

Which of the following is a bad conductor of heat?

 

A) Wood  B) Diamond
C) Water  D) Mica
 
Answer & Explanation Answer: A) Wood 

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams

0 12885
Q:

Name the vitamin whose deficiency causes excessive bleeding?

 

A) Vitamin A B) Vitamin B
C) Vitamin K D) Vitamin C
 
Answer & Explanation Answer: C) Vitamin K

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: Bank Exams

0 12884
Q:

In each of the following choose the word most similar in meaning to the word given in capitals.

“ABJURE”

A) Renounce B) Run off secretly
C) Abide  D) Discuss
 
Answer & Explanation Answer: A) Renounce

Explanation:

ABJURE means solemnly renounce (a belief, cause, or claim).

Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 12883
Q:

The gravitational force of attraction between two bodies is __________________ the product of their masses.

 

A) directly proportional to the square of B) inversely proportional to
C) inversely proportional to the square of   D) directly proportional to  
 
Answer & Explanation Answer: D) directly proportional to  

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams

1 12883
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 12881