Questions

Q:

Point out the error, if any, in the following program.

#include "stdio.h"

main()

{

      unsigned char;

       FILE *fp;

       fp = fopen ("trail", "r");

       while (( ch = getc (fp)) ! = EOF)

               printf ("%c", ch);

       fclose (fp);

}  

Answer

EOF has been defined as #define EOF -1 n the file "stdio.h" and an unsigned char ranges from 0 to 255 hence when EOF is read from the file it cannot be accommodated in ch. Solution is to declare ch as an int.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

1 3334
Q:

Who did the historian K M Pannikar call "India's new Manu, the spirit of modern law incarnate"?

Answer

Thomas Babington Macaulay

Report Error

View answer Workspace Report Error Discuss

Subject: World History

7 3334
Q:

Which of the following airport has been declared as the "Best Airport in India and Central Asia" in Skytrax World Airport Awards ?

A) Rajiv Gandhi International Airport, Hyderabad B) Indira Gandhi International Airport, New Delhi
C) Kuala Lumpur International Airport, Malaysia D) Goa International Airport, Goa
 
Answer & Explanation Answer: B) Indira Gandhi International Airport, New Delhi

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams , CAT
Job Role: Bank Clerk

1 3334
Q:

One major cause of floods is

A) light rain over a large area B) a decrease in stream discharge
C) rapid spring snowmelt D) increased capacity of stream channels
 
Answer & Explanation Answer: C) rapid spring snowmelt

Explanation:

There are lots of reasons behind the flood in any area but the main reason is a heavy downpour or rapid snowmelt can flood canyons with a mixture of soil, rock, and water is a major cause of floods.

 

When the spring times come, sometimes there's a lot of warmth that suddenly comes, especially nowadays when there are things such as global warming. So the snow melts and large amounts of water can flood the fields that are often found at the foot of a mountain or similar things.

 

But they may also be caused by deforestation, drainage channel modification from a landslide, earthquake or volcanic eruption. Examples include outburst floods and lahars.

 

 

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Analyst , Bank Clerk , Bank PO , IT Trainer

1 3334
Q:

RBI has extended the timeline for full implementation of the Basel III capital regulations to which of the following date instead of 31 March, 2018?

A) 31 Jan, 2019 B) 31 Dec, 2018
C) 31 Mar, 2019 D) 1 Oct, 2018
 
Answer & Explanation Answer: C) 31 Mar, 2019

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

0 3333
Q:

The Grand Banks are famous fishing grounds in the _____region

A) North - West Pacific B) South - East Pacific
C) North - West Atlantic D) North - East Atlantic
 
Answer & Explanation Answer: C) North - West Atlantic

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Geography

3 3332
Q:

Which Indian Pharmaceutical company has announced to acquire Roche's active, pharmaceutical ingredients business in Mexico? Rache is a well-known global pharmaceutical

A) Wockhardt B) Cipla
C) Dr Reddy's Lab D) Ranbaxy
 
Answer & Explanation Answer: C) Dr Reddy's Lab

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Business Awareness

8 3332
Q:

Who has won the men's shot put world title with a stunning series of throws climaxing with a best of 22.03 meters ?

A) Randy Matson B) Tomas Walsh
C) Ryan Crouser D) Randy Barnes
 
Answer & Explanation Answer: B) Tomas Walsh

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

9 3332