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:

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

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:

In which State of India,the sex ration is more than 1000

A) Andhra Pradesh B) Karnataka
C) Kerala D) Tamil Nadu
 
Answer & Explanation Answer: C) Kerala

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

1 3068
Q:

Synapsis occurs during

A) Mitosis B) Meiosis
C) Both A & B D) None
 
Answer & Explanation Answer: B) Meiosis

Explanation:

Synapsis is the pairing of two homologous chromosomes that occurs during meiosis. It allows matching-up of homologous pairs prior to their segregation, and possible chromosomal crossover between them.

Synapsis takes place during prophase I of meiosis.

It is also called as Syndesis.

Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: AIEEE , Bank Exams
Job Role: Analyst

3 3068