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

Which branch of government declares war?

A) Legislative B) Executive
C) Judicial D) All the above
 
Answer & Explanation Answer: B) Executive

Explanation:
Report Error

View Answer Report Error Discuss

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

1 3317
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 3317
Q:

Plants that make their own food are called

A) Autotrophs B) Hydrophylls
C) Decomposers D) Heterotrophs
 
Answer & Explanation Answer: A) Autotrophs

Explanation:

Plants make their own food through the process of photosynthesis. Plants are self-sufficient. Green plants have the ability to prepare their own food and this is the reason why they are called autotrophs.

                                        Autotrophs1530267836.jpg image


They make their own food through the process of photosynthesis using light energy to make sugars from carbon dioxide (C02) and water (H20). The chlorophyll which is present in the leaves is the main reason for the production of food in the plants and it is the reason for the greenery of the leaves too.

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

4 3317
Q:

 Which of the following occurs when a transaction rereads data it has previously read and finds modification or deletions caused by a committed transaction?

A) Nonrepeatable read B) Phantom read
C) Dirty read D) Consistent read
 
Answer & Explanation Answer: A) Nonrepeatable read

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Database

0 3317
Q:

Smasher is associated with which of the following sports?

A) Hockey B) Foot ball
C) Volley ball D) Boxing
 
Answer & Explanation Answer: C) Volley ball

Explanation:
Report Error

View Answer Report Error Discuss

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

2 3316
Q:

Which alphabet is a bird?

A) Y B) C
C) B D) D
 
Answer & Explanation Answer: C) B

Explanation:

The letter 'B' sounding resembles same as the bird 'Bee'. 

Which_alphabet_is_a_bird1537939857.jpg image

 

Hence, alphabet 'B' is a bird.

Report Error

View Answer Report Error Discuss

Filed Under: Word Puzzles
Exam Prep: TOEFL , GRE , CAT , Bank Exams , AIEEE
Job Role: Bank PO , Bank Clerk , Analyst

0 3316
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 3316