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

 What SQL command will allow you to change the table STUDENT to add the constraint named GradeCheck that states that the values of the Grade column must be greater than 0?

A) ALTER TABLE STUDENT ALTER CONSTRAINT GradeCheck (Grade > 0); B) ALTER TABLE STUDENT ADD CONSTRAINT GradeCheck (Grade > 0);
C) ALTER TABLE STUDENT ADD CONSTRAINT GradeCheck CHECK (Grade > 0); D) None of the above is correct.
 
Answer & Explanation Answer: C) ALTER TABLE STUDENT ADD CONSTRAINT GradeCheck CHECK (Grade > 0);

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Database

0 5133
Q:

Why was the Simon Commission boycotted by Indians?

Answer

Because it was made up of Britishers.

Report Error

View answer Workspace Report Error Discuss

Subject: World History

18 5132
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 5131
Q:

What is the capital of Telangana?

A) Warangal B) Hyderabad
C) Nizamabad D) Adilabad
 
Answer & Explanation Answer: B) Hyderabad

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics

13 5129
Q:

Which of the statements given below are correct?

A) Elina Svitolina won the Tennis 2017 Italian Open Women's Singles.

B) Lewis Hamilton won the Formula One 2017 Italian Grand Prix.

C) In 2017, James Harden played for the NBA team Milwaukee Bucks.

 

A) Both A and C B) Both B and C
C) Both A and B D) None of these
 
Answer & Explanation Answer: C) Both A and B

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports
Exam Prep: Bank Exams

0 5122
Q:

An atom bomb based upon the principal of ________

A) Nuclear fission B) Nuclear fussion
C) Controlled chain reaction D) None of these
 
Answer & Explanation Answer: A) Nuclear fission

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics

7 5121