Questions

Q:

Point out the error, if any, in the following program.

main()

{

    int ( *p )() = fun;

    ( *P ) ();

}

fun ()

{

    Printf ( "\nLoud and clear" );

Answer

Here we are initalising the function pointer p to the address of the function fun(). But during this initialisation the function has not been defined. Hence an error.


To eliminate this error add the prototype of the fun() before declaration of p, as shown below:


extern int fun();    or simply  int fun();

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2305
Q:

A group of inter­connected islands is known as __________ .

A) Strait B) Peninsula
C) Archipelago D) Lagoon
 
Answer & Explanation Answer: C) Archipelago

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

0 2304
Q:

A sentence/a part of the sentence is underlined. Four alternatives are given to the underlined part which will improve the sentence. Choose the correct alternative and click the button corresponding to it. In case no improvement is needed, click the button corresponding to “No improvement”.

His appointment as coach is yet another feather in his wing.

A) feather in his hat B) badge in his hat
C) feather in his cap D) No improvement
 
Answer & Explanation Answer: C) feather in his cap

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2304
Q:

Which base is present in soap?

A) Sodium hydroxide B) Silicon dioxide
C) Calcium hydroxide D) Ammonium hydroxide
 
Answer & Explanation Answer: A) Sodium hydroxide

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: Bank Exams

2 2304
Q:

A bullet of mass 10gm is fired with a velocity of 40 m/s from a gun of mass 8 kg. Find the recoil velocity (in m/s) of the gun.

A) 2 B) 0.1
C) 4 D) 0.05
 
Answer & Explanation Answer: D) 0.05

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams

1 2303
Q:

The sentences given with blanks are to be filled with an appropriate word(s). Four alternatives are suggested for each question. For each question, choose the correct alternative and click the button corresponding to it.

The train is expected to arrive in a few minutes _____ platform six.

A) in B) above
C) near D) on
 
Answer & Explanation Answer: D) on

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2303
Q:

In the following passage some of the words have been left out. Read the passage carefully and choose the correct answer for the given blank out of the four alternatives.


War and Peace, an epic historical novel by Leo Tolstoy, was_____ published as Voyna i mir in 1865-69. This ____study of early 19th century Russian society, noted for its _____of realistic detail and variety of psychological______is generally regarded as one of the world's greatest novels. War and Peace is_____concerned with the histories of five aristocratic families, the members of which are _____against the_____background of Russian social life during the war against Napoleon. The_____ of war, however, is____to the story of family existence which involves Tolstoy's optimistic belief in the life-asserting ______of human existence.

 

Noted for its ____ of realistic detail and

A) energy B) veracity
C) suitability D) mastery
 
Answer & Explanation Answer: D) mastery

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2303
Q:

In the following question, a sentence has been given in Active/Passive voice. Out of the four alternatives suggested, select the one which best expresses the same sentence in Passive/Active voice.

The director will give you instructions.

A) Instructions shall be given to you by the director. B) You will get instructions from the director.
C) You shall get instructions from the director. D) Instructions will be given to you by the director.
 
Answer & Explanation Answer: D) Instructions will be given to you by the director.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2302