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

Which statement about tobacco use is true?

A) Smoking can lead to emphysema as well as strokes B) Smokeless tobacco can lead to cancer but is not addictive
C) Smoking relaxes people because it lowers the heart rate D) All of the above
 
Answer & Explanation Answer: A) Smoking can lead to emphysema as well as strokes

Explanation:

Smoking can lead to emphysema as well as strokes is the true statement regarding tobacco use. Emphysema is related to the failure of lungs air sacs and cilia that eliminate the dust from the body.

Report Error

View Answer Report Error Discuss

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

1 3294
Q:

Lightning is produced when 

A) Similar charges of electricity rush towards each other and then get repelled B) clouds strike against impurities in air and the friction burns up these impurities
C) strong opposite charges in different clouds break down the resistance offered by the intervening air D) water vapour produces electricity in the clouds
 
Answer & Explanation Answer: C) strong opposite charges in different clouds break down the resistance offered by the intervening air

Explanation:

When the resistance of the air between breaks down the current flows from the positive cloud to the negative cloud in a flash which we call lightning . The difference of potential involves is very high.

Report Error

View Answer Report Error Discuss

Filed Under: Physics

5 3294
Q:

India's largest digital bank _____________ is the only bank providing zero balance accounts and zero charges on digital transactions.

A) Paytm Payments Bank B) India Post Payments Bank
C) Airtel Payments Bank D) All the above
 
Answer & Explanation Answer: A) Paytm Payments Bank

Explanation:

Paytm Payments Bank is the India's largest digital bank providing zero balance accounts and zero charges on digital transactions.

Report Error

View Answer Report Error Discuss

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

8 3293
Q:

From April 1, 2017 Interest rates on small savings deposits including PPF cut by

A) 0.5% B) 0.4%
C) 0.2% D) 0.1%
 
Answer & Explanation Answer: D) 0.1%

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

3 3293
Q:

Per Captain Income of a country derived from

A) National Income B) Population
C) National Income and Population both D) none of these
 
Answer & Explanation Answer: C) National Income and Population both

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

1 3293
Q:

Study of Rocks is called

A) Geology B) Cytology
C) Petrology D) Petology
 
Answer & Explanation Answer: C) Petrology

Explanation:

The scientific study of rocks is called petrology, which is an essential component of geology.

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

1 3292
Q:

In which sport did an Indian team comprising Kishen Singh, Bijay Singh, Hanut Singh and Sawai Man Singh win the World Cup in France in 1957?

Answer

Polo

Report Error

View answer Workspace Report Error Discuss

2 3291