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

Ashok Mehta committee recommended for the establishment of

A) Gram Panchayat B) Nagar Panchayat
C) Panchayat Samiti D) All of the above
 
Answer & Explanation Answer: A) Gram Panchayat

Explanation:

Under the chairmanship of Ashoka Mehta, the Janata Government appointed a committee on Panchayat Raj system in December 1977. They have made 132 recommendations to revive and strengthen the declining Panchayati Raj system in the country. As a result of this report, the Indian states of Karnataka, Andhra Pradesh, and West Bengal passed new legislation.

Ashok_Mehta_committee_recommended_for_the_establishment_of1560945557.jpg image

Report Error

View Answer Report Error Discuss

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

4 8994
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 8982
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 8979
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 8976
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 8974
Q:

Adverbs can modify all of the following except

A) Nouns B) Verbs
C) Adjectives D) Other adverbs
 
Answer & Explanation Answer: A) Nouns

Explanation:

An adverb is a word that modifies a verb, adjective, determiner, clause, preposition, or sentence.

Adverbs can modify all of the following except nouns.

Report Error

View Answer Report Error Discuss

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

6 8971