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

There are approximately how many muscles in Human body ?

A) 206 B) 310
C) 554 D) 700
 
Answer & Explanation Answer: D) 700

Explanation:

Approximatey there are 700 muscles in Human body.

Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: AIEEE , Bank Exams
Job Role: Bank Clerk

46 9013
Q:

An objective of the National Food Security Mission is to increase the production of certain crops through area expansion and productivity enhancement in a sustainable manner in the identified districts of the country. What are those crops?

A) Rice and Wheat only B) Rice, Wheat and pulses only
C) Rice, Wheat, Pulses and oil seeds only D) Rice, Wheat, Pulses, oil seeds and vegetables
 
Answer & Explanation Answer: B) Rice, Wheat and pulses only

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

8 9013
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 9004
Q:

Which of these illustrates the Secondary Structure of a Protein?

chemistry1519110232.jpg image

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

Explanation:

The Secondary Structure of a Protein is option B)

 

The Secondary Structure of a Protein results from Hydrogen Bonds.

Report Error

View Answer Report Error Discuss

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

2 9000
Q:

Which of the following is the most stable carbocation?

Screenshot_(8)1522302473.png image

A) 4 B) 3
C) 2 D) 1
 
Answer & Explanation Answer: C) 2

Explanation:

Here the most stable carbocation is the option (2).

 

Carbocations are always hungry for electrons. The stability of carbocations increases from primary to secondary to tertiary. Here, option (c) shows the most stable carbocation because it can easily withdraw electrons from two other carbon atoms and the more electronegative oxygen atom.

 

Carbocation stability depends on hyperconjugation. The tertiary carbocation is stabilized by electron releasing inductive effect.

Report Error

View Answer Report Error Discuss

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

12 8997
Q:

Can you solve this maths puzzle?


A) 10 B) 12
C) 14 D) 18
 
Answer & Explanation Answer: B) 12

Explanation:

The logic in this puzzle is summing the result of [subtraction of upper two digits] & [addition of lower two digits] 

Hence, the result is  

(5 - 3) + (2 + 8) = 2 + 10 = 12.

Report Error

View Answer Report Error Discuss

Filed Under: Math Puzzles
Exam Prep: Bank Exams

21 8997
Q:

Safdar Hashmi is a name associated with

A) Drawing and Painting B) Journalism
C) Instrumental Music D) None of these
 
Answer & Explanation Answer: D) None of these

Explanation:

Correct Answer : Safdar Hashmi is a name associated with Drama

Report Error

View Answer Report Error Discuss

Filed Under: Famous Personalities

21 8997