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

Which of the folowing substances related to Dandi March Protestant ?

A) Sugar B) Pepper
C) Salt D) Water
 
Answer & Explanation Answer: C) Salt

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

3 3098
Q:

The largest herbarium of India is located at

A) Kolkata B) Lucknow
C) Mumbai D) Coimbatore
 
Answer & Explanation Answer: A) Kolkata

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography

1 3098
Q:

Which of the following chemical compounds has the highest boiling point?

A) Dimethyl ether (CH3OCH3) B) Methanol (CH3OH)
C) Methane (CH4) D) None
 
Answer & Explanation Answer: B) Methanol (CH3OH)

Explanation:

Chemical Compounds with stronger intermolecular forces have higher boiling points.

 

The order of strengths of intermolecular forces is:

 London dispersion < dipole-dipole < H-bonding

 

Methane (CH4) — London dispersion forces

Dimethyl ether (CH3OCH3) — dipole-dipole attractions

Methanol (CH3OH) — hydrogen bonding

Therefore, Methanol - CH3OH with H-Bonding have highest Boiling Point among the given chemical compounds.

Report Error

View Answer Report Error Discuss

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

4 3097
Q:

Frictional force acts in 

A) the same direction as the motion B) the opposite direction of the motion
C) all the directions D) upward direction
 
Answer & Explanation Answer: B) the opposite direction of the motion

Explanation:

It is to overcome this opposite frictional force , that  we have to apply the needed force to make the body move

Report Error

View Answer Report Error Discuss

Filed Under: Physics

3 3097
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 3096
Q:

With reference to computing, an 'Applet' is _____

A) A Java application B) Computer Virus
C) A firewall D) A cookie
 
Answer & Explanation Answer: A) A Java application

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Computer
Exam Prep: Bank Exams
Job Role: IT Trainer , Bank PO , Bank Clerk , Analyst

10 3096
Q:

The main theme of a fugue is called the

A) Subject B) Melody
C) Episode D) Exposition
 
Answer & Explanation Answer: A) Subject

Explanation:

In music, a fugue is a contrapuntal compositional technique in two or more voices, built on a subject that is introduced at the beginning in imitation and which recurs frequently in the course of the composition. 

Hence, the main theme of a fugue is called the subject.

Report Error

View Answer Report Error Discuss

Filed Under: Sports
Exam Prep: AIEEE , Bank Exams
Job Role: Analyst , Bank Clerk , Bank PO

3 3095