Questions

Q:

What would be the output of the following program?

main()

{

    extern int fun ( float );

    int a;

    a = fun ( 3. 14 );

    printf ("%d", a);

}

int fun ( aa )

float aa ;

{

     return ( (int) aa );

}

Answer

Error occurs because we have mixed the ANSI prototype with K & R style of function definition.


When we use ANSI prototype for a function and pass a float to the function it is promoted to a double. When the function accepts this double into a float a type mismatch occurs hence the error.


The remedy for this error could be to define the function as :


int fun (float aa)


{


  ....


}

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

9 9091
Q:

Which of the following is not a property of water?

A) Low density B) Low specific heat
C) Low heat of vaporisation D) All of the above
 
Answer & Explanation Answer: D) All of the above

Explanation:

Water can moderate temperature because of the two properties: high-specific heat and the high heat of vaporization. 

 

Hence, all the above given options are not the properties of water.

Report Error

View Answer Report Error Discuss

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

4 9089
Q:

Unit of solid angle is

A) degree B) radian
C) steradian D) radian second
 
Answer & Explanation Answer: C) steradian

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics

20 9083
Q:

The speaker of the Lok Sabha can ask a member of the house to stop speaking and let another member speak. This phenomenon is known as :

A) Yielding the floor B) Crossing the floor
C) Calling Attention Motion D) Point of Order
 
Answer & Explanation Answer: A) Yielding the floor

Explanation:

Yielding the floor :  The speaker of the Lok sabha can ask a member of the house to stop speaking and let another member speak.

Crossing the floor:  Passing between the member addressing the House and the Chair which is considered breach of Parliamentary etiquette.

Point of Order:  A Member of Parliament may raise a point of order if he feels that the proceedings of' the House do not follow the normal rules. The presiding officer decides whether the point of order raised by the member should be allowed.

Calling Attention Motion:  With the prior permission of the Speaker, any member of the Parliament may call the attention of a Minister to a matter of urgent public importance. The Minister may make a brief statement about the matter or he may ask for time to make a statement later.

Report Error

View Answer Report Error Discuss

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

26 9080
Q:

The stupa site which is not connected with any incident of lord Buddha's life is

A) Sarnath B) Bodh Gaya
C) Sanchi D) Kushinagar
 
Answer & Explanation Answer: C) Sanchi

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

7 9080
Q:

Systematic name for (CuI)s ?

A) Copper Iodide B) Cobalt Fluoride
C) Ferrous Oxide D) All of the above
 
Answer & Explanation Answer: A) Copper Iodide

Explanation:

Copper Iodide is the systematic name of the given compound (CuI)s.

Report Error

View Answer Report Error Discuss

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

5 9078
Q:

In the match between India and Pakistan at Jaipur on 02-10-1983, which new rule was introduced

A) Limit of overs wes reduced to 50 overs B) The rule of field restriction was taken
C) over throw runs were batsmans score D) Noballs & wides were debited to bowlers analysis
 
Answer & Explanation Answer: D) Noballs & wides were debited to bowlers analysis

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports

15 9073
Q:

Which type of Stem modification is seen in banana ?

A) Rhizome B) Stem tuber
C) Corn D) Bulb
 
Answer & Explanation Answer: A) Rhizome

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: AIEEE

38 9060