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 3084
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 3083
Q:

The "aha!" experience is known as

A) vicarious learning B) latent learning
C) insight learning D) None of the above
 
Answer & Explanation Answer: C) insight learning

Explanation:

The "aha!" experience is known as insight learning.

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

The size of gear is usually specified by

A) pitch circle diameter B) diametral pitch
C) pressure angle D) circular pitch
 
Answer & Explanation Answer: A) pitch circle diameter

Explanation:

The size of gear is usually specified by pitch circle diameter.

Report Error

View Answer Report Error Discuss

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

0 3081
Q:

In commonwealth Games, 2010, india won 101 medals. Out of them, how many medals have been received by team events, women and men respectively?

A) 0, 37, 64 B) 2, 35, 64
C) 1, 37, 63 D) 1, 36, 64
 
Answer & Explanation Answer: B) 2, 35, 64

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports

6 3081
Q:

The most populous city in the world is  ?

A) Tokyo B) Paris
C) Peking D) London
 
Answer & Explanation Answer: A) Tokyo

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Places
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

5 3080
Q:

A and B entered into a partnership with Rs.800 and Rs.1600 respectively. From 9th months onward they each decided to invest Rs.100 more on starting of each month. If total annual profit is Rs.7700 then find the profit share of A.

A) Rs.2550 B) Rs.3200
C) Rs.2650 D) Rs.2450
 
Answer & Explanation Answer: C) Rs.2650

Explanation:

A : B = (800 × 8+ 900+ 1000+ 1100+ 1200): (1600 × 8+ 1700+ 1800+ 1900+ 2000)
A : B = 53 : 101
Profit of A ⇒ 7700 ×53/154 = 2650 Rs.

Report Error

View Answer Report Error Discuss

0 3078
Q:

which alphabet is a fly?

A) Y B) C
C) B D) G
 
Answer & Explanation Answer: C) B

Explanation:

The alphabet 'B' resembles same as a fly 'Bee' in pronouncing.

Report Error

View Answer Report Error Discuss

Filed Under: Word Puzzles
Exam Prep: AIEEE , Bank Exams , CAT , GATE , GRE , TOEFL
Job Role: Analyst , Bank Clerk , Bank PO

3 3078