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

public static void main string[] args Meaning is?

Answer

Here in this declaration public static void main string[] args, each keyword has its importance.


 


1. public - Here public is an access specifier which allows the main method to be accessible everywhere.


 


2. static - static helps the main method to get loaded without getting called by any instance/object.


 


3. void - void clarifies that the main method will not return any value.


 


4. main - It's the name of the method.


 


5. String[] args - Here we are defining a String array to pass arguments at the command line. args is the variable name of the String array.

Report Error

View answer Workspace Report Error Discuss

8 3155
Q:

How many Indian sites have been mentioned in the report ‘Not For Sale’ by the World Wide Fund for Nature ?

A) 5 B) 7
C) 6 D) 8
 
Answer & Explanation Answer: B) 7

Explanation:

The sites in India named include Nanda Devi and Valley of Flowers National Park, Kaziranga National Park, Manas Wildlife Sanctuary, Keoladeo National Park, Western Ghats, Great Himalayan National Park Conservation Area and Khangchendzonga National Park.

Report Error

View Answer Report Error Discuss

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

4 3154
Q:

In the following question, a sentence has been given in Direct/Indirect speech. Out of the four alternatives suggested, select the one, which best express the same sentence in Indirect/Direct speech.

The coach said, "Don’t move, boys."

A) The coach told to the boys don't move. B) The coach said to the boys not to be moving.
C) The coach asked the boys not to move. D) The coach told to them, don't move boys.
 
Answer & Explanation Answer: C) The coach asked the boys not to move.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 3154
Q:

Primitive people practice animal rearing  in the tropical grasslands of _______

A) Brazil B) Northern Australia
C) East Africa D) Orinoco Basin in South America
 
Answer & Explanation Answer: C) East Africa

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Geography

0 3153
Q:

Physical data models describe the details of how data is stored in the computers

A) TRUE B) FALSE
Answer & Explanation Answer: A) TRUE

Explanation:

They describe the details of how data is stored in the computers

Report Error

View Answer Workspace Report Error Discuss

Subject: Database
Job Role: Database Administration

0 3152
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 3151
Q:

The percentage of Urban population to total population in India is 

A) 20.28 B) 22.52
C) 25.72 D) 27.80
 
Answer & Explanation Answer: D) 27.80

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

0 3151