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

Which option is an example of expository writing?

A) A novel about a young girl caught up in the Civil War B) A nonfiction book about the history of the Civil War
C) A poem written about the soldiers who fought in the Civil War D) A movie review of a dramatic film about the Civil War
 
Answer & Explanation Answer: B) A nonfiction book about the history of the Civil War

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: AIEEE , Bank Exams , CAT , GRE , TOEFL
Job Role: Analyst , Bank Clerk , Bank PO

0 3093
Q:

Which of the following statements about monsoons are correct?

A) Monsoons can cause devastating landslides and floods. B) Heavy monsoons increase agricultural output.
C) A weak monsoon season can lead to drought and starvation. D) All of the above
 
Answer & Explanation Answer: D) All of the above

Explanation:
Report Error

View Answer Report Error Discuss

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

2 3093
Q:

Which is Largest Stadium in the world?

Answer



Strahov Stadium in Praha,Czech Republic accommodation 240000 persons


 


 

Report Error

View answer Workspace Report Error Discuss

5 3091
Q:

In which city were the first Modern Olympics held and when ?

A) Athens 1896 B) Barcelona 1798
C) Munich 1968 D) Olympia 1698
 
Answer & Explanation Answer: A) Athens 1896

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports

4 3091
Q:

The spring constant of a spring depends on its

A) length only B) material only
C) length and its diameter D) thickness, its diameter and its material
 
Answer & Explanation Answer: D) thickness, its diameter and its material

Explanation:

In dealing with a coil spring the spring constant will depend on the stiffness of the spring material, the thicknessof the wire from which the spring is wound and, diameterof the turns of the coil, the number of turns per unit length and the overall length of the spring.

Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams

3 3091
Q:

The transfer of data from one application to another in a computer system is known as

A) Dynamic Data Exchange B) Dodgy Data Exchange
C) Dogmatic Data Exchange D) Dynamic Disk Exchange
 
Answer & Explanation Answer: A) Dynamic Data Exchange

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Computer
Exam Prep: Bank Exams

2 3090
Q:

Golden Temple of Amritsar is located in which country?

A) Bangladesh B) Pakistan
C) China D) India
 
Answer & Explanation Answer: D) India

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Places

3 3090