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

Mahalanobis Model has been associated with which Five Year Plan

A) First Five Year Plan B) Second Five Year Plan
C) Third Five Year Plan D) Fourth Five Year Plan
 
Answer & Explanation Answer: B) Second Five Year Plan

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

21 13393
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 13391
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 13362
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:

In Angiosperms, plant embryos in seed have structures called ______.

 

A) Spore B) Buds
C) Sprout D) Cotyledon
 
Answer & Explanation Answer: D) Cotyledon

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: Bank Exams

1 13334