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

Organisms that can make their own food are called

 

 

A) Cyanobacteria B) Autotrophs
C) Heterotrophs D) Omnivores
 
Answer & Explanation Answer: B) Autotrophs

Explanation:

The organisms that make their own food through basic elements like water, minerals using sunlight as energy (photosynthesis) are called Autotrophs.

 

 

 

Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: Bank Exams

1 13383
Q:

Rearrange the parts of the sentence in correct order.

 

In developing

P : and poor schooling opportunities,

Q : countries, dues to high poverty

R : child labour is still prevalent

 

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

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams , GRE , TOEFL

0 13382
Q:

Who advocated the adoption of ' PURA' model to eradicate rural poverrty

A) Dr. A.P.J. Abdul Kalam B) Sri Abhijit Sen
C) Moulana Abdul Kalam Azad D) Prof. A.M. Patha
 
Answer & Explanation Answer: A) Dr. A.P.J. Abdul Kalam

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Personalities

30 13378
Q:

The power of _____________ is expressed in terms of a magnitude on a scale called Richter scale.

 

A) a tornado   B) a volcano  
C) an earthquake   D) a thunderstorm
 
Answer & Explanation Answer: C) an earthquake  

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams

1 13353
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

37 13335
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 13334
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