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 8467
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 8466
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 8466
Q:

The project manager develops a process improvement plan to encourage continuous process improvement during the life of the project. Which of the following is a valid tool or technique to assist the project manager to assure the success of the process improvement plan?

A) Change control system B) Process analysis
C) Benchmarking D) Configuration management system
 
Answer & Explanation Answer: B) Process analysis

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: PMP Certification

1 8462
Q:

Which strait separates India from Sri Lanka?

A) Strait of Gibraltar B) Palk strait
C) Strait of Hormuz D) None of the above
 
Answer & Explanation Answer: B) Palk strait

Explanation:

Strait is nothing but a narrow passage of water which connects two seas or other large areas of water. Here Palk strait is the strait that separates India from Sri Lanka.

Which_strait_separates_India_from_Sri_Lanka1537428025.jpg image

Report Error

View Answer Report Error Discuss

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

9 8445
Q:

Which of the statements given below are correct?

1. The author of 'A Foreign Policy For India' is L.K Advani.
2. 'Wings of Fire' is a book written by A.P.J Abdul kalaam.
3. 'Open' is an Autobiography of Andre Agassi.

A) 1 and 2 B) 2 and 3
C) 1 and 3 D) 1, 2 and 3
 
Answer & Explanation Answer: B) 2 and 3

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors
Exam Prep: Bank Exams

1 8441
Q:

What will be the acceleration produced when a force of 21 N is applied on an object of mass 3 kg?

 

A) 0.7 m/s2 B) 7 m/s2
C) 0.007 m/s2 D) 70 m/s2
 
Answer & Explanation Answer: B) 7 m/s2

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: AIEEE , Bank Exams

1 8432
Q:

What 5 - digit number has the following features :

If we put the numeral 1 at the beginning, we get a number three times smaller than if we put the numeral 1 at the end of the number?

Answer

Let the 5 digit number be represented by abcde.


Then the 6 digit number, 1abcde x 3 = abcde1 (another 6 digit number)


Now let Y = abcde


Then (100000 + Y) x 3 = (Y x 10) + 1


300000 + 3Y = 10Y + 1


7Y = 299999


Y = 299999 ÷ 7 = 42857

Report Error

View answer Workspace Report Error Discuss

Subject: Math Puzzles

22 8431