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

Which article of the Indian Constitution provides for the institution of Panchayati Raj

A) Article 36 B) Article 39
C) Article 40 D) Article 48
 
Answer & Explanation Answer: C) Article 40

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics

50 19723
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 19719
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 19714
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 19700
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:

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 19689
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 19684