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 8478
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 8476
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:

India’s first undersea tunnel is being constructed in which city?

 

A) Mumbai B) Cochin
C) Kolkata D) Hyderabad
 
Answer & Explanation Answer: A) Mumbai

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

1 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 8472
Q:

Match the correct Memory units.

 

 

A) a-r, b-p, c-s, d-q B) a-p,b-s, c-q, d-r
C) a-r, b-s, c-q, d-p D) a-r, b-q, c-s, d-p
 
Answer & Explanation Answer: A) a-r, b-p, c-s, d-q

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Computer
Exam Prep: Bank Exams

6 8464
Q:

Bootstrapping is also known as

A) hot boot B) cold-hot boot
C) cold boot D) quick boot
 
Answer & Explanation Answer: C) cold boot

Explanation:

Bootstrapping is a term used in business to refer to the process of using only existing resources, such as personal savings, personal computing equipment, and garage space, to start and grow a company.

Report Error

View Answer Report Error Discuss

Filed Under: Computer
Exam Prep: Bank Exams

14 8448
Q:

Which of the following was the first thing that encouraged the Europeans for Indian business?

 

A) Indigo B) Spice
C) Muslin D) Cotton clothes
 
Answer & Explanation Answer: B) Spice

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

0 8446