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

The name of the first bank established in India was

 

A) Bank of Hindustan B) Reserve Bank of Indian
C) Imperial Bank D) State Bank of India
 
Answer & Explanation Answer: C) Imperial Bank

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Inventions
Exam Prep: Bank Exams

58 8449
Q:

The Indus valley people traded with the

A) Chinese B) Mesopotamians
C) Parthians D) Romans
 
Answer & Explanation Answer: B) Mesopotamians

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

12 8449
Q:

At which one of the following places do two important rivers of India originate;while one of them flows towards north and merges with another important river flowing towards Bay of Bengal, the other one flows towards Arabian Sea?

A) Amarkantak B) Badrinath
C) Mahabaleshwar D) Nasik
 
Answer & Explanation Answer: A) Amarkantak

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography

16 8449
Q:

Choose the word that best defines the given phrases:-

To throw up the sponge

A) To surrender or give up a contest B) To offer a challenge
C) To become utterly disappointed D) To maintain grit and enthusiasm until the end
 
Answer & Explanation Answer: A) To surrender or give up a contest

Explanation:

To throw up the sponge means to give up a contest or to acknowledge defeat or surrender

Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

1 8443
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 8437
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 8436
Q:

Rearrange the parts of the sentence in correct order.

 

Whether the emergence

P-­will change the ugly dynamic
Q­-of these popular protests
R­-in Brazil is to be seen

 

A) QPR B) RQP
C) PQR D) PRQ
 
Answer & Explanation Answer: A) QPR

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 8431