Questions

Q:

Point out the error, if any, in the following program.

#include "stdarg.h"

main()

{

     display ( 4, 12.5, 13.5, 14.5, 44.3);

}

display(int num, ...)

{

       float c; int j;

        va_list ptr;

        va_start (ptr, num);

        for ( j = 1; j <= num; j++)

        {

            c = va_arg ( ptr, float );

            printf ("\n%f", c);

         }

}

Answer

While extracting a float argument using va_arg we should have useed 


c = va_arg (ptr, double)

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

1 5111
Q:

What has 3 feet but cannot walk?

Answer

We know that 1 yard = 3 feet. 


 


A yardstick which is used for measurement has 3 feet long but it cannot walk.


 

Report Error

View answer Workspace Report Error Discuss

5 5111
Q:

Why do Fold mountains have enormous thickness of sedimentary rocks?

A) Due to deposition of sediments in a valley for milions of years B) Due to accumulation of sediments in a geosyncline
C) The plains were folded into mountains D) The sediments were folded into recumbent and nappe
 
Answer & Explanation Answer: B) Due to accumulation of sediments in a geosyncline

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Geography

1 5110
Q:

Which part of a computer performs calculations?

A) Control unit B) Arithmetic and logical unit
C) Both A & B D) Logic bus
 
Answer & Explanation Answer: B) Arithmetic and logical unit

Explanation:

A computer has a CPU which is called as Central Processing UNit or a Processor builton the mother board. It has many components like control unit and Arithmetic and logical unit. 

 

The Arithmetic and logical unit of the CPU performs the arithmetic operations or mathematical calculations.

Report Error

View Answer Report Error Discuss

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

6 5110
Q:

A person with blood group AB

 

A) Can donate blood to persons with blood group A, B and O B) Is called universal blood donor
C) Can receive blood from any group D) Is neither a universal recipient nor a donor
 
Answer & Explanation Answer: C) Can receive blood from any group

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: Bank Exams

3 5110
Q:

Who is the author of the book "Flaming Tresses of Draupadi" ?

A) Smriti Irani B) Veerappa Moily
C) Mallikarjun Kharge D) None
 
Answer & Explanation Answer: B) Veerappa Moily

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

9 5109
Q:

Rearrange the parts of the sentence in correct order.

But the most important thing is,

P-I'll always be
Q-even if we're apart
R-with you

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

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 5109
Q:

This Union Territory possesses a coastal stretch of about 45 km with 28 marine fishing villages. However 45% of the population is engaged in agricultural and allied products.
Which among the following Union Territories is referred to in the above passage

A) Lakshadweep B) Pondicherry
C) Andaman and Nicobar D) Daman
 
Answer & Explanation Answer: A) Lakshadweep

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography

11 5108