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

Who was an early proponent of functionalism?

A) Darwin B) Charles
C) William James D) Wyndt
 
Answer & Explanation Answer: C) William James

Explanation:

who_was_an_early_proponent_of_functionalism1544613019.jpg image

William James was an early proponent of functionalism.

Report Error

View Answer Report Error Discuss

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

3 3172
Q:

National Science Centre is located at

A) New Delhi B) Pune
C) Bangalore D) Hyderabad
 
Answer & Explanation Answer: A) New Delhi

Explanation:

National Science Centre is located at New Delhi.

national_science_centre_is_located_at1553943841.jpg image

Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO , IT Trainer

0 3172
Q:

Telegrahic code was introduced by

A) Lipman B) Macmillan
C) Thomas Moore D) Cockrell
 
Answer & Explanation Answer: C) Thomas Moore

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Inventions

0 3171
Q:

I am a box that holds keys without locks, yet they can unlock your soul. What am I?

A) Keyboard B) Keypad
C) Piano D) Key holder
 
Answer & Explanation Answer: C) Piano

Explanation:
Report Error

View Answer Report Error Discuss

5 3171
Q:

Pain controlling chemicals in the body are called

A) Endorphins B) Neural regulators
C) Androgens D) Histamines
 
Answer & Explanation Answer: A) Endorphins

Explanation:

Endorphins are called pain controlling chemicals in the body.

Report Error

View Answer Report Error Discuss

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

3 3171
Q:

What is the retirement age of the Prime Minister of India?

A) 60 years B) 70 years
C) 65 years D) No limit
 
Answer & Explanation Answer: D) No limit

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics
Exam Prep: Bank Exams , CAT

0 3171
Q:

Search engines that search other search engines are called

A) Megasearch engine B) Metasearch engine
C) Betasearch engine D) Gigasearch engine
 
Answer & Explanation Answer: A) Megasearch engine

Explanation:

A search engine is a information retrieval program that constantly collects information on the Web, following links in Web sites and reading Web pages. The search results are presented in a list format and are called as hits.

A metasearch engine is a search tool that uses another search engine's data to produce its own results from the Internet. These engines take input from a user and simultaneously send out queries to third party search engines for results. It searches other search engines rather than individual Web sites.

 

Examples of Metasearch engine includes - Dogpile, Zoo, Yabado, Metager, etc...

 

Search_engines_that_search_other_search_engines_are_called1561526716.png image

 

Report Error

View Answer Report Error Discuss

4 3171