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

Rearrange the parts of the sentence in correct order.

The art of

P : efforts and practice

Q : fruit of persistent

R : effective presentation is the

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

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

1 13343
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 13333
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
Q:

_______ uses laser technology to store large amount of information

A) Floppy disk B) CD-ROM
C) Hard disk D) ED-ROM
 
Answer & Explanation Answer: B) CD-ROM

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Computer
Exam Prep: Bank Exams

36 13323
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 13321
Q:

Ashtadhyayi was written by

A) Ved vysa B) Panini
C) Shukadeva D) Balmiki
 
Answer & Explanation Answer: B) Panini

Explanation:

Ashtadhyayi was written by Panini. He was a Sanskrit grammarian who gave a comprehensive and scientific theory of phonetics, phonology, and morphology. Panini was born in Shalatula, a town near to Attock on the Indus river in present day Pakistan.

Ashtadhyayi_was_written_by1565176023.jpg image

Report Error

View Answer Report Error Discuss

Filed Under: Indian History
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

13 13321
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 13304