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

____ are atoms/molecules/ions containing the same number of electrons.

 

A) Isotones B) Isotopes
C) Isoelectronic D) Valence Isoelectronic  
 
Answer & Explanation Answer: C) Isoelectronic

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: Bank Exams

1 13365
Q:

The "Loktak" lake is located in which state of India?

 

A) Meghalaya B) Manipur
C) Mizoram D) Tripura
 
Answer & Explanation Answer: B) Manipur

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography
Exam Prep: Bank Exams

4 13358
Q:

Rearrange the parts of the sentence in correct order.

 

However the major drawback

P-­of this process is that
Q­-there is no legally binding
R­-outcome at the end of six years

 

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

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 13356
Q:

Rearrange the parts of the sentence in correct order.

 

For ages,

P : the Indian psyche has been

Q : geared towards devoting one’s life

R : to the welfare of all

 

A) PQR B) RPQ
C) QPR D) PRQ
 
Answer & Explanation Answer: A) PQR

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 13355
Q:

Burning Magnesium ribbon produces white ash, which dissolves in water to form____.

 

A) Magnesium Halides B) Magnesium Oxide
C) Magnesium Hydroxide D) Magnesium Sulphate
 
Answer & Explanation Answer: C) Magnesium Hydroxide

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: AIEEE , Bank Exams

2 13349
Q:

The instrument used to regulate temperature to particular degree is called

 

A) Thermostat B) Thermometer
C) pyrometer D) Thermocouple
 
Answer & Explanation Answer: C) pyrometer

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Inventions
Exam Prep: Bank Exams

3 13344
Q:

Choose the antonym of

 

stun

 

A) petrify B) calm
C) flabbergast D) stupefy
 
Answer & Explanation Answer: B) calm

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 13341