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

Who is the author of "Unhappy India"?

A) Vikram Seth B) Lala Lajpath Roy
C) Chethan Bhagath D) None
 
Answer & Explanation Answer: B) Lala Lajpath Roy

Explanation:

Lala Lajpath Roy is the author of Unhappy India

Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors

91 19744
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 19736
Q:

Which of the statements given below are correct?

 

A) In 2017, Wes Morgan captained the Premier League team Leicester City.

B) In 2017, Suresh Raina captained the IPL team Gujarat Lions Squad.

C) In 2017, Sergio Agüero played for the Premier League team Liverpool.

 

A) Only A   B) Only B  
C) Both A and B D) Both A and C
 
Answer & Explanation Answer: C) Both A and B

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports
Exam Prep: Bank Exams

2 19728
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 19724
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 19720
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 19714
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 19696