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 8432
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 8423
Q:

Select the synonym of

 

hypnotist

 

A) rookie B) novice
C) conjurer D) amateur
 
Answer & Explanation Answer: C) conjurer

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 8423
Q:

At which one of the following places do two important rivers of India originate;while one of them flows towards north and merges with another important river flowing towards Bay of Bengal, the other one flows towards Arabian Sea?

A) Amarkantak B) Badrinath
C) Mahabaleshwar D) Nasik
 
Answer & Explanation Answer: A) Amarkantak

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography

16 8421
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 8421
Q:

The famous book Kankal is authored by ?

A) Ketan Bhagat B) Mahesh Rao
C) Nirmal Verma D) Jaishankar Prasad
 
Answer & Explanation Answer: D) Jaishankar Prasad

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors
Exam Prep: Bank Exams , CAT
Job Role: Bank PO

23 8419
Q:

Who is credited for the construction of the Red Fort?

 

A) Sikandar Lodi B) Akbar
C) Jahangir D) Shah Jahan
 
Answer & Explanation Answer: D) Shah Jahan

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History
Exam Prep: Bank Exams

0 8416
Q:

The Ankle is a third-class lever.

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

Explanation:

False. The ankle is not the third-class lever in the body.


 


Levers are typically labeled as first class, second class, or third class. All three types are found in the body, but most levers in the human body are third class.

First-class levers in the human body are rare and have the axis (fulcrum) located between the weight (resistance) and the force. One example is the joint between the head and the first vertebra.


In a second-class lever, the weight (resistance) is located between the axis (fulcrum) and the force. An example of a second-class lever in the human body is found in the lower leg when someone stands on tiptoes


In a third-class lever, the most common in the human body, force is applied between the resistance (weight) and the axis (fulcrum). There are numerous third-class levers in the human body; one example can be illustrated in the elbow joint.

Report Error

View Answer Workspace Report Error Discuss

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

4 8415