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

Who designed the Bombay Secretariat in the 1870s?

A) H.St. Clair Wilkins B) Sir Cowasjee Jehangir Readymoney
C) Purushottamdas Thakurdas D) Nusserwanji Tata
 
Answer & Explanation Answer: A) H.St. Clair Wilkins

Explanation:

The Bombay Secretariat was completed in 1874 and designed by Captain Henry St. Clair Wilkins in the Venetian Gothic style. With its arcaded verandahs and huge gable over the west facade, it was a monument to the civic pride of Bombay's British rulers.

Report Error

View Answer Report Error Discuss

Filed Under: Indian History
Exam Prep: Bank Exams

1 3088
Q:

When a running car stops suddenly, the passengers tends to lean forward because of

A) Gravitational force B) Inertia of motion
C) Law of conservation of mass D) Both B & C
 
Answer & Explanation Answer: B) Inertia of motion

Explanation:

When a running car stops suddenly, the passengers tends to lean forward because of Inertia of motion.

Report Error

View Answer Report Error Discuss

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

4 3087
Q:

What process immediately preceeded protein synthesis at the ribosome?

A) transcription B) replication
C) translation D) duplication
 
Answer & Explanation Answer: A) transcription

Explanation:

Protein synthesis at the ribosome is immediately preceeded by the transcription process.

Report Error

View Answer Report Error Discuss

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

3 3087
Q:

The limbic system structure that regulates hunger is called the

A) Hypothalamus B) Cerebellum
C) Pituitary gland D) Cerebrum
 
Answer & Explanation Answer: A) Hypothalamus

Explanation:

the_limbic_system_structure_that_regulates_hunger_is_called_the1545974338.png image

 

The hypothalamus which is near the pituitary gland is a small region located at the base of the brain. The hypothalamus plays a crucial role in many important functions including releasing hormones, regulating body temperature, regulates hunger etc...

Report Error

View Answer Report Error Discuss

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

3 3086
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 3085
Q:

According to a survey, which country has become the second largest smartphone market in the world?

A) Japan B) China
C) India D) USA
 
Answer & Explanation Answer: C) India

Explanation:

According to a Report by analyst firm Canalys, India has become the second largest smartphone market in the world.

Report Error

View Answer Report Error Discuss

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

6 3084
Q:

If the speed of an object moving along a straight line keeps changing, its motion is said to be _________.

A) Uniform B) Periodic
C) Circular D) Non-uniform
 
Answer & Explanation Answer: D) Non-uniform

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams

7 3083