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

'Brothers and sisters, I have none. But that man's father is my father's son'.
How I and that man are related respectively?

A) Father & Son B) Brothers
C) Son & Father D) Nephews
 
Answer & Explanation Answer: A) Father & Son

Explanation:

Given that man's father is my father's son => Me because i have no brothers

=> Mans father is me.

Hence, that man is my Son.

Report Error

View Answer Report Error Discuss

12 8873
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 8871
Q:

A woman’s voice is shriller than a man’s voice due to

A) weak vocal chords B) lower frequency
C) higher frequency D) higher amplitude
 
Answer & Explanation Answer: C) higher frequency

Explanation:

As the frequency of sound is higher, women have shriller voices than men.

The shrillness or pitch of a sound is determined by its frequency. The higher the pitch shriller the voice. As the sounds produced by vocal cords of women are higher than men so women have shriller voices than men. Because their vocal cord is of smaller size. As their vocal cord is more stretched than men's.

Report Error

View Answer Report Error Discuss

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

7 8870
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 8869
Q:

English is the official language of which one of the following Indian States?

A) Nagaland B) Tripura
C) Assam D) Manipur
 
Answer & Explanation Answer: A) Nagaland

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics

13 8862
Q:

Who is the father of Green Revolution in India?

A) Jayanth C Narlikar B) Amartyasen
C) RK Pachowry D) M.S. Swaminathan
 
Answer & Explanation Answer: D) M.S. Swaminathan

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

19 8861
Q:

Ayurveda Day celebrated globally on

 

A) November 13 B) November 12
C) November 14 D) November 15  
 
Answer & Explanation Answer: A) November 13

Explanation:

Ayurveda Day is annually celebrated across the globe on the day of Dhanwantri Jayanti, as a global initiative to promote and preserve the health science of Ayurveda.

 

Report Error

View Answer Report Error Discuss

Filed Under: Important Days and Years
Exam Prep: Bank Exams

2 8861