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 8475
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 8474
Q:

Chief Election Commissioner of India can be removed from the office by 

 

A) Both houses of Parliament  B) Union council of Ministers 
C) President of India  D) Chief Justice of India
 
Answer & Explanation Answer: A) Both houses of Parliament 

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics
Exam Prep: Bank Exams

1 8473
Q:

The longest period of prenatal development is the

A) Germinal period B) Fetal period
C) Embryonic period D) None
 
Answer & Explanation Answer: B) Fetal period

Explanation:

The third and longest period of prenatal development, extending from the ninth week until birth is Fetal period.

 

The process of prenatal development occurs in three main stages. The first two weeks after conception are known as the germinal stage, the third through the eighth week are known as the embryonic period, and the time from the ninth week until birth is known as the fetal period.

 

Report Error

View Answer Report Error Discuss

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

8 8473
Q:

India is the largest producer of

A) Cotton B) Milk
C) Mangoes D) All the above
 
Answer & Explanation Answer: D) All the above

Explanation:

As per the latest updates, India is :

 

  • Largest producer of milk.
  • Largest producer of millets in the world.
  • Largest producer of jute.
  • Largest producer of ginger.
  • Largest producer of bananas.
  • Largest producer of castor oil seeds.
  • Largest producer of mangoes.
  • Largest producer of safflower oil seeds.
  • Largest producer of papayas.
  • Largest producer of cottonseed (As per International Cotton Advisory Committee (ICAC) report for the month of March 2017)

 

  • Second largest producer of tea, the first position being held by China.
  • Second largest producer of sugarcane, the first position being held by Brazil.
  • Second largest producer of wheat, the first position being held by China.
  • Second largest producer of onions, the first position being held by China.
  • Second largest producer of potatoes, the first position being held by China.
  • Second largest producer of garlic, the first position being held by China.
  • Second largest producer of rice, the first position being held by China.
  • Second largest producer of cement., next to China.
  • Second largest producer of silk, the first position being held by China.
Report Error

View Answer Report Error Discuss

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

6 8449
Q:

Find the acceleration (in m/s2) of a body which accelerates from 15 m/s to 40 m/s in 2 seconds.

 

A) 12.5 B) 27.5  
C) 25 D) 55
 
Answer & Explanation Answer: A) 12.5

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams

0 8447
Q:

Improve the bracketed part of the sentence.

The other shirt (will cost) you more.

A) would cost B) will be costing
C) could be costing D) no improvement
 
Answer & Explanation Answer: D) no improvement

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 8446
Q:

What are the stipulations of C2 level security?

Answer

C2 level security provides for:


 


1.Discretionary Access Control


2.Identification and Authentication


3.Auditing


4.Resource reuse

Report Error

View answer Workspace Report Error Discuss

19 8443