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:

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

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:

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

Which structure is not part of the Endomembrane System?

A) Chloroplast B) Plasma membrane
C) Nuclear envelope D) Golgi apparatus
 
Answer & Explanation Answer: A) Chloroplast

Explanation:

The endomembrane system is composed of the different membranes that are suspended in the cytoplasm within a eukaryotic cell. These membranes divide the cell into functional and structural compartments or organelles. In eukaryotes, the organelles of the endomembrane system include the nuclear membrane, the endoplasmic reticulum, the Golgi apparatus, lysosomes, vesicles, endosomes and the cell membrane, among others.

Report Error

View Answer Report Error Discuss

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

2 3090
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