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

Market regulation system was introduced by

A) Illtutmish B) Ala-ud-din Khilji
C) Ghias-ud-din D) Muhammad Bin-Tughlaq
 
Answer & Explanation Answer: B) Ala-ud-din Khilji

Explanation:

Market regulation system was introduced by Ala-ud-Din Khilji. He was the second and the most powerful ruler of the Khalji dynasty that ruled the Delhi Sultanate in the Indian subcontinent. 

Report Error

View Answer Report Error Discuss

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

5 5299
Q:

Which state gives Mewar award?

A) Rajasthan B) Gujarat
C) Uttar Pradesh D) West Bengal
 
Answer & Explanation Answer: A) Rajasthan

Explanation:

The Maharana Mewar Award is a Rajasthan State Award.

Which_state_gives_Mewar_award1535782356.jpg image

This award has been instituted to honour work of permanent value to those who consider it their duty, like the Diwan of Shri Eklingji still do, to benefit society through services in the field of education, literature, social services, philanthropy and character building activities.

Report Error

View Answer Report Error Discuss

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

5 5298
Q:

Andhra Pradesh was created as a linguistic state in

A) 1950 B) 1953
C) 1956 D) 1961
 
Answer & Explanation Answer: B) 1953

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics

10 5296
Q:

The Simon commission visited India in the year?

A) 1933 B) 1939
C) 1921 D) 1927
 
Answer & Explanation Answer: D) 1927

Explanation:

The British government appointed a commission under the chairmanship of Sir John Simon to report on India's constitutional progress for introducing constitutional reforms as had been promised in 1927.

Report Error

View Answer Report Error Discuss

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

5 5295
Q:

Commissioners for the Affairs of India were known as 

A) Court of directors B) Board of Directors
C) Board of Control D) Board of Merchants
 
Answer & Explanation Answer: C) Board of Control

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

6 5295
Q:

What is the share of small savings collection from all states through Post Office in India's GDP?

A) 2 percent B) 3 percent
C) 7 percent D) 8 percent
 
Answer & Explanation Answer: B) 3 percent

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

12 5294
Q:

Cryogenic Engines find applications in

A) Frost - Free refrigerators B) Sub-marine propulsion
C) Researches in superconductivity D) Rocket technology
 
Answer & Explanation Answer: D) Rocket technology

Explanation:

Cryogenic Engines find applications in Rocket technology. A cryogenic rocket engine is a rocket engine that uses a cryogenic fuel or oxidizer, that is, its fuel or oxidizer are gases liquefied and stored at very low temperatures. Notably, these engines were one of the main factors of NASA's success in reaching the Moon by the Saturn V rocket.

Report Error

View Answer Report Error Discuss

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

2 5294