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:

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:

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:

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

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

A copper wire of radius r and length lhas a resistance of R. A second copper wire with radius 2r and length lis taken and the two wires  are  joined  in  a  parallel  combination. The  resultant  resistance   of  the  parallel combination of the two wires will be

A) 5 R B) 5 R/4
C) 4 R/5 D) R/5
 
Answer & Explanation Answer: D) R/5

Explanation:

1st copper wire: R = pl/A = pl/ πr2

2ndcopper wire: R’ = p’l’/A’ = pl/(4 πr2) = R/4

If joined in parallel, (1/Req) = (1/R) + (1/R’)

= 1/R + 4/R1/Req= 5/R

Req= R/5

Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams

2 3076