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 13366
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 13356
Q:

Rearrange the parts of the sentence in correct order

 

The loss of these

P-­young, and often
Q­-make us ponder
R-­bright, people must

 

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

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 13353
Q:

Charge on proton is equal to the charge on ______.

 

A) Electron B) Positron
C) Neutron D) Alpha particle
 
Answer & Explanation Answer: B) Positron

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: Bank Exams

0 13347
Q:

The boundaries of the plates of the earth's ___________ are the weak zones known as seismic or fault zones.

 

A) crust   B) core
C) kernel D) pith
 
Answer & Explanation Answer: A) crust  

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: Bank Exams

0 13343
Q:

India’s first geothermal field development project is to be established in which state/UT?

 

A) Himachal Pradesh B) Ladakh
C) Punjab D) Rajasthan
 
Answer & Explanation Answer: B) Ladakh

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

2 13341
Q:

Select the related word/letters/number from the given alternatives.

7 : 19 :: 10 : ?

A) 25 B) 30
C) 21 D) 23
 
Answer & Explanation Answer: A) 25

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 13338
Q:

October 24 is observed as

A) World Vegetarian Day B) United Nations Day
C) World Immunization Day D) World Environment Day
 
Answer & Explanation Answer: B) United Nations Day

Explanation:
Report Error

View Answer Report Error Discuss

42 13332