Questions

Q:

Indicate what would the SWAP macro be expanded to on preprocessing. Would the code compile?

#define SWAP (a, b, c ) (c t; t = a, a = b, b = t; )

main()

{

    int x = 10, y = 20;

    SWAP (x, y, int );

    printf ( " %d%d ", x, y);

}

Answer

( int t ; t = a, a = b, b = t ;);


This code won't compile since declaration of t cannot occur within parentheses.


 

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2784
Q:

The first Asian Games were held in

A) Manila B) Tokyo
C) Jakarta D) New Delhi
 
Answer & Explanation Answer: D) New Delhi

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports

3 2783
Q:

The insects do not have blood pigments because 

A) there is no blood B) tissues have pigments
C) blood does not have a respiratory function D) pigments are elsewhere
 
Answer & Explanation Answer: C) blood does not have a respiratory function

Explanation:

The blood of some invertebrate animals like the earthworm is red due to haemoglobin pigment, but the pigment is dissolved in the plasma. In vertebrates the same pigment is found in the red corpuscles and not in the plasma.

Report Error

View Answer Report Error Discuss

Filed Under: Biology

3 2783
Q:

Smart-Up grants, is associated with which Indian bank?

 

A) ICICI Bank B) Yes Bank
C) Axis Bank D) HDFC Bank
 
Answer & Explanation Answer: D) HDFC Bank

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

0 2783
Q:

Which of the following is necessary for a natural monopoly?

 

A) economies of scale B) a high proportion of the total cost as the cost of capital goods
C)  very small market D) All options are correct.
 
Answer & Explanation Answer: D) All options are correct.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics
Exam Prep: Bank Exams

0 2782
Q:

An ordinance issued by the President has the same force and effect as an Act of Parliament

A) True B) False
C) True, only during a National Emergency D) True, only during a Financial Emergency
 
Answer & Explanation Answer: A) True

Explanation:

He cannot issue an ordinance , when both the Houses of Parliament are in session. Every ordinance issued by the President should be laid before both Houses of Parliament, within six weeks of re-assembly of Parliament . The president may also withdraw an ordinance at any time he likes.

Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics

4 2782
Q:

Roentgen discovered

A) Electrocardiograph B) X–rays
C) Anti polio vaccine D) Encephalograph
 
Answer & Explanation Answer: B) X–rays

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Inventions

3 2780
Q:

The only couple to win the Nobel Prize were the

A) Ruther Fords B) Curies
C) Davies D) Millikans
 
Answer & Explanation Answer: B) Curies

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Honours and Awards

0 2780