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 8892
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 8888
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 8884
Q:

Which state is known as land of setting sun in India?

A) Rajasthan B) Arunachal Pradesh
C) Kerala D) Gujarat
 
Answer & Explanation Answer: A) Rajasthan

Explanation:

Arunachal Pradesh is known as the land of rising sun whereas Rajasthan is known as the land of setting sun in Indian states.

Report Error

View Answer Report Error Discuss

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

3 8879
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 8878
Q:

Who is the first Indian woman to receive in Borlaug award and in which year

A) Dr. Maduri V.Patel, 1991 B) Dr. Maduri V.Patel, 1992
C) Dr. Amita Patel, 1991 D) Dr. Amita Patel, 1992
 
Answer & Explanation Answer: D) Dr. Amita Patel, 1992

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Honours and Awards

12 8877
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 8873
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 8870