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

Is MS Word an operating system?

A) TRUE B) FALSE
Answer & Explanation Answer: B) FALSE

Explanation:

False. MS-Word is not an Operating system.


 


Microsoft Word or MS-Word is an Application software developed by the company Microsoft. It allows users to Type and Save documents.

Report Error

View Answer Workspace Report Error Discuss

2 3315
Q:

Second and third class levers are differentiated by

A) the location of the load B) the location of the fulcrum
C) the presence of multiple loads D) the type of fulcrum present
 
Answer & Explanation Answer: A) the location of the load

Explanation:
Report Error

View Answer Report Error Discuss

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

3 3315
Q:

What name is given to the bond between water molecules?

A) Polar B) Polar covalent
C) Hydrogen D) None of the above
 
Answer & Explanation Answer: C) Hydrogen

Explanation:

The name given to the bond between water molecules is a hydrogen bond. These bonds occur between the slightly negative oxygen of one water molecule and the slightly positive hydrogen of another water molecule. Hydrogen bonding gives water special physical properties.

 

The differences in electronegativity between hydrogen and oxygen lead to an unequal sharing of electrons. Electronegativity measures how strongly an atom attracts electrons. Oxygen, with its higher electronegativity, pulls on the shared electrons more, giving the oxygen atom a partial net negative charge. The shared electrons spend less time with the hydrogen atoms; therefore, the hydrogen regions of water have partial positive charges.

Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: AIEEE , Bank Exams , GATE
Job Role: Analyst , Bank Clerk , Bank PO

1 3314
Q:

Antonym of 'Humble'?

A) Bold B) Down-to-Earth
C) Lowly D) Modest
 
Answer & Explanation Answer: A) Bold

Explanation:

Humble means not having or showing any feelings of superiority, self-assertiveness, or showiness.

Humble means in a modest, lowly and down-to-earth manner. Not in a aggressive, bold, self confident manner.

 

Hence, in the given options Bold is an antonym of Humble.

Report Error

View Answer Report Error Discuss

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

1 3314
Q:

The primary colors are-

A) Yellow, red, blue B) Green, white, black
C) Blue, green, yellow D) Red, blue, green
 
Answer & Explanation Answer: D) Red, blue, green

Explanation:

The Primary Colours are Blue, Red and Green. By mixing all these three primary colours we get White colour. 

The Secondary Colours are - Yellow, Magenta and Cyan.

Report Error

View Answer Report Error Discuss

20 3313
Q:

When data in a spreadsheet program is changed what occurs?

A) All calculations are recalculated B) Once entered, the data cannot be changed
C) Nothing D) None of the above
 
Answer & Explanation Answer: A) All calculations are recalculated

Explanation:

In a spreadsheet program, when a data is changed all calculations are recalculated.

Report Error

View Answer Report Error Discuss

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

7 3312
Q:

 Who amongst the following received last telegram in India ?

A) Manmohan Singh B) Pranab Mukherjee
C) Rahul Gandhi D) Sonia Gandhi
 
Answer & Explanation Answer: C) Rahul Gandhi

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

2 3312