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

Where is the secretariat office of Birdlife International?

A) Geneva B) Cambridge UK
C) Suva, Fiji D) Mumbai,India
 
Answer & Explanation Answer: B) Cambridge UK

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Geography

1 3071
Q:

The force that keeps a body in a circular motion called 

A) the centripetal force B) the centrifugual force
C) the frictional force D) all the above
 
Answer & Explanation Answer: A) the centripetal force

Explanation:

without this centripetal force, circular motion is not possible. It acts radially towards the centre and if this force is removed there will be no circular motion but the revolving body will fly off at a tangent.

Report Error

View Answer Report Error Discuss

Filed Under: Physics

4 3070
Q:

Hot water is poured simultaneously in four metallic tumblers painted outside with different points. After some time the water will be found to have cooled most in the tumbler painted.

A) rough white B) rough black
C) shining white D) shining black
 
Answer & Explanation Answer: B) rough black

Explanation:

Black  surfaces are good emitters of heat ( They are also good absorbers of heat). If the black surface is rough too, the emitting will be better. So (b) is the correct answer. Shining surfaces reflect back radiation. So if the black surface is also shining the effectiveness of emitting heat is lessened.

Report Error

View Answer Report Error Discuss

Filed Under: Physics

4 3069
Q:

How long does a basketball game last?

A) 35 min B) 55 min
C) 1 hr 15 min D) 48 min
 
Answer & Explanation Answer: D) 48 min

Explanation:

A basketball game last for a total of 48 minutes which has 4 quarters of 12 minutes each excluding all timeouts, 15 min half time, fouls,...

Report Error

View Answer Report Error Discuss

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

9 3069
Q:

Which one of the following is not a characteristic of a compound?

A) Composition is variable.  B) All particles of compound are of only one type.
C) Particles of compound have two or more elements. D) Its constituents cannot be separated by simple physical methods.
 
Answer & Explanation Answer: B) All particles of compound are of only one type.

Explanation:

A mixture is made from different substances that are not chemically joined.Compound:

•Two or more elements combine together chemically to form a new substance called compound.

•The different elements are chemically joined together.•Compounds are homogeneous, i.e. their properties are the same throughout

•The compound has properties different from the elements it contains.

•It can only be separated into its elements using chemical reactions. (not using physical methods)

•During the formation of a compound from its elements, a certain amount of energy in the form of heat, light, electricity is either absorbed or evolved

Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: Bank Exams

3 3069
Q:

Which of he following Chief Minister has been selected for the award of ‘Transformative Chief Minister’ by The US India Business Council ?

A) N. Chandrababu Naidu B) Devendra Fadnavis
C) K. Chandra Shekar Rao D) Mamata Banerjee
 
Answer & Explanation Answer: A) N. Chandrababu Naidu

Explanation:

Chief Minister of Andhra Pradesh, N Chandrababu Naidu has been selected for another prestigious award. The US India Business Council has selected the CM for award of ‘Transformative Chief Minister’ and Naidu would be receiving coveted award at second annual West Coast summit which to be held in California on May 8, 2017.

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

2 3068
Q:

In which layer is the temperature the lowest?

A) Troposphere B) Ionosphere
C) Mesosphere D) Stratosphere
 
Answer & Explanation Answer: C) Mesosphere

Explanation:

The mesosphere lies above the stratosphere and extends to an altitude of about 85 km. This is layer is often referred to as the cold layer, as the lowest readings in the atmosphere are found here.

 

Temperature decreases with height, reaching a minimum average value of -90 ºC at the top of the layer.

Report Error

View Answer Report Error Discuss

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

5 3068