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

For which Novel Prominent Konkani writer Mahabaleshwar Sail will be awarded the Saraswati Samman for the year 2016 ?

A) Hawthan B) Mandra
C) Chitt-Chete D) None of the above
 
Answer & Explanation Answer: A) Hawthan

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

6 3049
Q:

When is International Talk Like a Pirate Day is observed?

A) December 11 B) September 16
C) March 8 D) September 19
 
Answer & Explanation Answer: D) September 19

Explanation:
Report Error

View Answer Report Error Discuss

37 3049
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 3047
Q:

Highest - Profit making company in India is 

A) Tata Sons B) Reliance Industries
C) Indian Oil D) ONGC
 
Answer & Explanation Answer: D) ONGC

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Business Awareness

15 3047
Q:

As per the recommendations of the 12th Finance Commissions what should be the share of states in net proceeds of Shareable Central Taxes?

A) 20% B) 25.5%
C) 30.5% D) 33%
 
Answer & Explanation Answer: C) 30.5%

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams
Job Role: Bank PO

1 3047
Q:

Sound travels fastest in

A) Vacuum B) Air
C) Glass D) Water
 
Answer & Explanation Answer: C) Glass

Explanation:

Sound is a mechanical vibration and needs a medium for propagation. The higher the density of the medium, the faster the sound travels. So, sound cannot travel through vacuum.

 

As the sound travels faster in solids than liquids and gases, sound travels faster in the glass than Air and water.

Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Analyst , Bank Clerk , Bank PO , Database Administration , IT Trainer

3 3046
Q:

Who has been described as the "destroyer of the Sakas, the Yavanas and the Pallavas"?

A) Skanda Gupta B) Gautamiputra Satakarni
C) Simuka D) Satakarni I
 
Answer & Explanation Answer: B) Gautamiputra Satakarni

Explanation:

Gautamiputra Satakarni has been described as the "destroyer of the Sakas, the Yavanas and the Pallavas".

Report Error

View Answer Report Error Discuss

Filed Under: Indian History
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

5 3046