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 8452
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 8446
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 8443
Q:

A drawing on transparent paper is

A) Blue print B) Negative
C) Transparency D) Red print
 
Answer & Explanation Answer: C) Transparency

Explanation:

The one word substitute for 'a drawing on transparent paper' is Transparency.

Report Error

View Answer Report Error Discuss

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

6 8439
Q:

Which of the following is graphics solution for word processors?

 

A) Clip Art B) Drop Cap
C) Word Art D) All of the above
 
Answer & Explanation Answer: A) Clip Art

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Computer
Exam Prep: Bank Exams

3 8433
Q:

Which State Cabinet has agreed on the creation of Vijayanagara district as its 31st District?

 

 

A) Andhra Pradesh B) Karnataka
C) Telangana D) Tamil Nadu  
 
Answer & Explanation Answer: B) Karnataka

Explanation:

The Cabinet of Karnataka has agreed the creation of Vijayanagara district as the 31st District of Karnataka.

The Vijayanagara district will include Hampi, the capital of Vijayanagara empire.

 

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

1 8426
Q:

Improve the bracketed part of the sentence.

 

Ajay told the manager that he would not mind (standing and eat) the lunch.

 

A) standing and eating B) stand and eating
C) to stand and eat D) no improvement
 
Answer & Explanation Answer: A) standing and eating

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 8421
Q:

TEL minimise the knocking effect when mixed with petrol, it acts as_______

A) Positive catalyst B) Negative catalyst
C) Auto catalyst D) Induced catalyst
 
Answer & Explanation Answer: B) Negative catalyst

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry

18 8418