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

A battlefield always has:

A) Elephants B) Soldiers
C) Arrows D) Chariots
 
Answer & Explanation Answer: C) Arrows

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

2 3079
Q:

Prahaar is a-

A) surface-to-surface missile B) aircraft carrier
C) submarine D) battle tank
 
Answer & Explanation Answer: A) surface-to-surface missile

Explanation:

Prahaar is a contemporary weapon system capable of carrying multiple types of warheads & neutralizing a wide variety of targets. It is a indigenously developed surface-to-surface tactical missile by DRDO.

Report Error

View Answer Report Error Discuss

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

8 3078
Q:

General Knowledge, Language, And Concepts Are Seen As Parts Of

A) procedural memories B) semantic memory
C) declarative memories D) episodic memory
 
Answer & Explanation Answer: B) semantic memory

Explanation:
Report Error

View Answer Report Error Discuss

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

1 3078
Q:

The dwarf camels, known as Alpacas , Vicunas and llamas are found in 

A) Tibet B) Afghanistan
C) Burma D) Cyprus
 
Answer & Explanation Answer: A) Tibet

Explanation:

The llama, its wild cousin , the Vicuna and hump-less Alpaca are also found in the high pasture lands of the Andes region of Bolivia and peru, where they are useful as beasts of burden and for the production of fleece and meat.

Report Error

View Answer Report Error Discuss

Filed Under: World Geography

1 3078
Q:

Which of the following is not a monotheistic religion?

A) Hinduism B) Christianity
C) Islam D) Sikhism
 
Answer & Explanation Answer: A) Hinduism

Explanation:

Monotheism is the belief in a single all-powerful god, as opposed to religions that believe in multiple gods.

Sikhism, Judaism, Christianity, and Islam are widely practiced forms of monotheism.

Report Error

View Answer Report Error Discuss

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

5 3077
Q:

Who is shakespeare of India?

A) Kalidasa B) Ramadasu
C) Yesudas D) Devadas
 
Answer & Explanation Answer: A) Kalidasa

Explanation:

Mahakavi Kalidasa is known as shakespeare of India.

who_is_known_as_shakespeare_of_India1542194648.jpg image

Report Error

View Answer Report Error Discuss

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

2 3077
Q:

The Hooke's law is valid for

A) only proportional region of the stress strain curve B) entire stress strain curve
C) entire elastic region of the stress strain curve D) elastic as well as plastic region of the stress strain curve
 
Answer & Explanation Answer: A) only proportional region of the stress strain curve

Explanation:

Hooke's law states that within the elastic limit, stress developed is directly proportional to the strain produced in a body.Hooke’s law is valid only in the linear part of stress-strain curve. Hence, statement 1 is correct.

Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams

2 3077