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

The Computer size was very large in

A) Fourth Generation B) Third Generation
C) Second Generation D) First Generation
 
Answer & Explanation Answer: D) First Generation

Explanation:

The First Generation Computers size was very large. 

 

Since the First generation computers used 1000s of vacuum tubes that required lot of space made them gigantic in size. Single transistor could replace 1000 vacuum tubes and a single IC chip replaced 1000s of transistors made computers smaller and more speedy.

 

It is obvious that computers developed with more power, reliability, speed and smaller sizes due to the enhancement of technology.

Report Error

View Answer Report Error Discuss

34 19712
Q:

“Golden Land” is a popular sobriquet of which of the following country?

 

A) China B) Bhutan  
C) Myanmar D) Sri Lanka
 
Answer & Explanation Answer: C) Myanmar

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Geography
Exam Prep: Bank Exams

1 19709
Q:

The language adopted for preaching in Mahayana Buddhism was

A) Pali B) Brahmi
C) Sanskrit D) Prakrit
 
Answer & Explanation Answer: C) Sanskrit

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

89 19693
Q:

Which Indian economist wrote the 2017 book 'I Do What I Do'? 

 

A) Urjit Patel  B) Amartya Sen 
C) Raghuram Rajan  D) Manmohan Singh
 
Answer & Explanation Answer: B) Amartya Sen 

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors
Exam Prep: Bank Exams

4 19691
Q:

Where was electricity supply first introduced in India

A) Kolkata B) Mumbai
C) Darjeeling D) Chennai
 
Answer & Explanation Answer: C) Darjeeling

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

68 19688
Q:

The M.K.S. system was first introduced by

A) archimedes B) Eienstein
C) Newton D) Giorgi
 
Answer & Explanation Answer: D) Giorgi

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry

93 19683
Q:

Potassium Permanganate is used for purifying drinking water, because

A) it is a sterilising agent B) it dissolves the impurities of water
C) it is a reducing agent D) it is an oxidising agent
 
Answer & Explanation Answer: D) it is an oxidising agent

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Science

150 19677