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

Which of these is not a function of the kidneys?

A) The kidneys regulate the plasma volume B) The kidneys help to regulate blood pressure
C) The kidneys help control the rate of red blood cell production D) The kidneys deactivate vitamin D and stimulate the activity of osteoclasts
 
Answer & Explanation Answer: D) The kidneys deactivate vitamin D and stimulate the activity of osteoclasts

Explanation:

The kidneys deactivate vitamin D and stimulate the activity of osteoclasts is wrong among the functions of kidneys.

 

The kidneys are two bean-shaped organs in the renal system. They help the body pass waste as urine. They also help filter blood before sending it back to the heart.

 

The kidneys perform many crucial functions, including:

  • maintaining overall fluid balance.
  • regulating and filtering minerals from the blood.
  • filtering waste materials from food, medications, and toxic substances.
  • creating hormones that help produce red blood cells, promote bone health, and regulate blood pressure.
Report Error

View Answer Report Error Discuss

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

10 8955
Q:

The term ' Regur ' is used for

A) Alluvial soil B) Peat soil
C) Laterite soil D) Black soil
 
Answer & Explanation Answer: D) Black soil

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography

12 8954
Q:

Tochi, Gilgit and Hunza are tributaries of

A) Ganga B) Indus
C) Brahmaputra D) Yamuna
 
Answer & Explanation Answer: B) Indus

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography

19 8953
Q:

The cross section of a chisel is usually

A) Octagonal B) Rectangular
C) Hexagonal D) Circular
 
Answer & Explanation Answer: A) Octagonal

Explanation:

The cross section of a chisel is usually octagonal.

103313_xl1545906956.jpg image

Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: AIEEE , Bank Exams
Job Role: Analyst , Bank Clerk

3 8943
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 8932
Q:

Among the following States, which one was formed last

A) Andhra Pradesh B) Gujarat
C) Karnataka D) Punjab
 
Answer & Explanation Answer: A) Andhra Pradesh

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics

12 8930
Q:

Whose period was known as the Golden Age of Rome?

Answer

 Augustus Caesar

Report Error

View answer Workspace Report Error Discuss

Subject: World History

21 8927