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

Which key is used for the last action?

A) Ctrl + D B) Alt + Z
C) Ctrl + Z D) Alt + D
 
Answer & Explanation Answer: C) Ctrl + Z

Explanation:

For undo the action or last action [Ctrl + Z] is used.

Report Error

View Answer Report Error Discuss

7 3442
Q:

The characteristic of ____ is used in the breaking pads of cars.

A) negative effect of friction B) zero effect of friction
C) weight impulse force tension action D) positive effect of friction
 
Answer & Explanation Answer: D) positive effect of friction

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams

4 3442
Q:

Spraying of DDT on crops causes pollution of __________

A) Air & Soil B) Crops & Air
C) Soil & Water D) Air & Water
 
Answer & Explanation Answer: C) Soil & Water

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

1 3441
Q:

Which of the following satellites is the first satellite made by complete native technology?

A) Bhaskara B) Aryabhatta
C) Rohini D) Kalpana-1
 
Answer & Explanation Answer: B) Aryabhatta

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

4 3440
Q:

A remedy for all diseases

A) Antiseptic B) Lyric
C) Narcotics D) Panacea
 
Answer & Explanation Answer: D) Panacea

Explanation:

Panacea, also known as panchrest, is a medicine supposed remedy that is claimed to cure all diseases and prolong life indefinitely. It is named after the Greek goddess of universal remedy Panakeia.

Report Error

View Answer Report Error Discuss

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

2 3440
Q:

According to Nomura's Report, India’s GDP growth rate is expected to be around _________ in the financial year 2017-18.

A) 7.6% B) 7.3%
C) 7.8% D) 7.1%
 
Answer & Explanation Answer: D) 7.1%

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy
Exam Prep: Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

7 3439
Q:

Under which one of the following Articles of the Constitution of India, is the 'Annual Financial Statement' of the economy to be laid by the Government, on the table of the Parliament before 31st March, every year?

A) Article 16 B) Article 31
C) Article 112 D) Article 124
 
Answer & Explanation Answer: C) Article 112

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics

5 3439