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

A series of instructions that tells a computer what to do and how to do it is called a _______

A) Program B) Command
C) User response D) Processor
 
Answer & Explanation Answer: A) Program

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Computer
Exam Prep: Bank Exams

6 5505
Q:

Can a citizen approach a court for the enforcement of a Directive Principle?

A) Yes B) No
C) Yes, on the fulfilment of certain conditions D) The Government can move the courts but the citizen cannot
 
Answer & Explanation Answer: B) No

Explanation:

The reason: Directive principles are non-justiciable, while the Fundamental Rights are enforceable by the Courts, the Directives are not so enforceable by any court (Article 37). The courts cannot declare any law as void on the ground that it contravenes any of the directive Principles. Further, the courts are not competent to complete the Government to carry out any Directive.

Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics

21 5504
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 5502
Q:

A bond formed by the transfer of electrons betwwen atoms of the elements is called

A) ionic bond B) covalent bond
C) co ordinate bond D) none
 
Answer & Explanation Answer: A) ionic bond

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry

8 5499
Q:

The Sunderbans are found in

A) The Luni Basin B) Godavari Delta
C) Ganga Delta D) Mahanadi Delta
 
Answer & Explanation Answer: C) Ganga Delta

Explanation:

These mangrove or tidal forests are found in the submerged coastal plains of the Ganga. The name comes from the abundant sundari trees found here. 

Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography

4 5496
Q:

The Asian Infrastructure Investment Bank (AIIB) has approved how much loan amount for power project in Andhra Pradesh  ?

A) $185 million B) $220 million
C) $210 million D) $160 million
 
Answer & Explanation Answer: D) $160 million

Explanation:

The China-sponsored Asian Infrastructure Investment Bank (AIIB) has approved $160 million loan for Andhra Pradesh – 24×7 Power for All project with an objective to strengthen power transmission and distribution system in the state. It is the first credit from the AIIB for an Indian project. The power project is co-financed by the World Bank (WB). The project is part of the Government of India’s Power for All Program that was launched in 2014 to provide an efficient, reliable and affordable electricity supply to all consumers across selected states within five years from the start of implementation of the program in each state.

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams , CAT
Job Role: Bank PO

6 5496
Q:

X and Y entered into partnership with Rs. 700 and Rs. 600 respectively. After another 3 months, X withdrew two- sevenths of his stock but after 3 months, he puts back three-fifths of what he had withdrawn. The total profit at the end of the year is Rs. 726. How much of this should X receive?

A) Rs. 336 B) Rs. 366
C) Rs. 633 D) Rs. 663
 
Answer & Explanation Answer: B) Rs. 366

Explanation:

Profit ratio X & Y = (700 × 3) + (700 × 5/7× 3) + (700× 5/7 + 200 × 3/5 )× 6 : 600 ×12
X:Y= 7320 : 7200= 183:180
∴ X’s share from profit = 183 × 726/(183+180) = Rs. 366.

Report Error

View Answer Report Error Discuss

1 5495