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

Which of the Following Lake is located in Udaipur ?

A) Karanji lake B) Kolleru lake
C) Pichola lake D) Vembanad
 
Answer & Explanation Answer: A) Karanji lake

Explanation:

Karanji lake is artificial fresh water lake built in 1362.

Report Error

View Answer Report Error Discuss

Filed Under: Famous Places

11 5083
Q:

Dry distillation of calcium formate gives

A) HCOOH B) CH3COOH
C) HCHO D) CH3CHO
 
Answer & Explanation Answer: C) HCHO

Explanation:

Dry distillation of calcium acetate and calcium formate leads to the formation of aldehydes and ketones.

Report Error

View Answer Report Error Discuss

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

9 5083
Q:

Cache memory acts between

A) CPU and Hard disc B) RAM and ROM
C) CPU and RAM D) None of the above
 
Answer & Explanation Answer: C) CPU and RAM

Explanation:

Cache memory is an extremely fast memory type that stores data so that future requests for that data can be served faster. It acts as a buffer between RAM and the CPU. It holds frequently requested data and instructions so that they are immediately available to the CPU when needed.

Report Error

View Answer Report Error Discuss

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

3 5083
Q:

Rearrange the parts of the sentence in correct order.

 

To write in plain vigorous language

P-­one has to think fearlessly, and if
Q­-one thinks fearlessly
R-­one cannot be politically orthodox

 

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

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 5081
Q:

Crack the Logical #MathPuzzle?

24131501_1487128788060887_7609767785986555556_n1512621550.jpg image

Answer

From given data,


Rs. 1 = 40 strawberries => Rs. 2 = 80 strawberries


Rs. 5  = 1 apple => Rs. 95 = 19 apple.


Rs. 3 = 1 mango => Rs. 3 = 1, mango


Now, Total So 100 Rs = 100 Fruits.

Report Error

View answer Workspace Report Error Discuss

Subject: Math Puzzles Exam Prep: AIEEE , Bank Exams , CAT , GATE , GRE , TOEFL
Job Role: Analyst , Bank Clerk , Bank PO

12 5080
Q:

The...........dish is one of the most  popular dishes of Kashmir?

A) Aloo Ka Raita B) Dum Aloo
C) Kesar Chawal D) Murgh Achaari
 
Answer & Explanation Answer: B) Dum Aloo

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Culture

76 5079
Q:

The activity of rradioisotope change with

A) temperature B) pressure
C) chemical environment D) None of these
 
Answer & Explanation Answer: D) None of these

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry

6 5079