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

The gland that is present close to Trachea

A) Pancreas B) Liver
C) Adrrenal D) Thyroid
 
Answer & Explanation Answer: D) Thyroid

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology

93 13208
Q:

Surface water resources are highest in

A) Ganga plains B) North-Eastern India
C) Peninsular India D) Indus Plains
 
Answer & Explanation Answer: A) Ganga plains

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography

48 13192
Q:

An electron loses potential energy when it

 

A) shifts to a more electronegative atom. B) increases its kinetic energy.
C) shifts to a less electronegative atom. D) increases its activity as an oxidizing agent.
 
Answer & Explanation Answer: A) shifts to a more electronegative atom.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: Bank Exams

1 13190
Q:

The 'Dual Economy' is a mixture of

A) traditional agriculture sector and modern industrial sector B) industrial sector and manufacturing sector
C) state ownership sector and trading of goods obtained through imports D) none of these
 
Answer & Explanation Answer: A) traditional agriculture sector and modern industrial sector

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

12 13190
Q:

The most reactive of the following metals is

 

A) Al B) Ca
C) Ni D) Pb
 
Answer & Explanation Answer: B) Ca

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: Bank Exams

1 13185
Q:

Select the synonym of

to jeopardise

 

A) to chaperone B) to picket
C) to imperil D) to escort
 
Answer & Explanation Answer: C) to imperil

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 13183
Q:

The capacity of a stream is directly related to its

 

 

A) Velocity B) Gradient
C) Discharge D) Meandering
 
Answer & Explanation Answer: C) Discharge

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: Bank Exams

0 13168