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

Zojila Pass connects which of the following two pairs?

 

A) Srinagar and Leh B) Kalimpong and Lhasa  
C) Chamba and Spiti   D) Arunachal Pradesh and Lhasa  
 
Answer & Explanation Answer: A) Srinagar and Leh

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography
Exam Prep: Bank Exams

0 2645
Q:

Which of the following is NOT a constitutional body?

A) National Advisory Council B) Law Commission
C) Election Commission D) Finance Commission
 
Answer & Explanation Answer: A) National Advisory Council

Explanation:

National Advisory Council is NOT a constitutional body.

 

The National Advisory Council (NAC) of India was an advisory body set up by the first United Progressive Alliance (UPA) government to advise the Prime Minister of India.

Report Error

View Answer Report Error Discuss

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

2 2644
Q:

What travels around the world and stays in one spot?

A) Slippers B) Walking stick
C) Stamps D) None of the above
 
Answer & Explanation Answer: C) Stamps

Explanation:

Stamps are what travel around the worldstaying in one spot. Slippers and walking stick can also travel around the world but they will not stay at one spot. So they are eliminated.

Report Error

View Answer Report Error Discuss

3 2644
Q:

In India, Salt Lake City is located in

A) West Bangal B) Rajastan
C) Gujarat D) Delhi
 
Answer & Explanation Answer: A) West Bangal

Explanation:

BidhanNagar in Kolkata, West Bangal is popularly known as Salt Lake City.

Report Error

View Answer Report Error Discuss

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

18 2643
Q:

Who is now the World’s Second Richest Person ?

A) Amancio Ortega B) Warren Buffett
C) Jeff Bezos D) Bill Gates
 
Answer & Explanation Answer: C) Jeff Bezos

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Personalities

5 2642
Q:

'The Scented Isle' in the Mediterranean Sea is 

A) Sardinia B) Corsica
C) Sicily D) Crete
 
Answer & Explanation Answer: B) Corsica

Explanation:

There are plenty of sweet-smelling herbs found on this island along with low trees and shrubs. This dense vegetation is termed as 'Maquis'. Similar vegetaion in California is known as 'Chaparral'.

Report Error

View Answer Report Error Discuss

Filed Under: World Geography

1 2642
Q:

Cloud computing uses Server virtualization.

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

Explanation:

Cloud computing :: 


Cloud computing is an information technology (IT) paradigm that enables ubiquitous access to shared pools of configurable system resources and higher-level services that can be rapidly provisioned with minimal management effort, often over the Internet.


 


Server virtualization :


Server virtualization is a virtualization technique that involves partitioning a physical server into a number of small, virtual servers with the help of virtualization software. In server virtualization, each virtual server runs multiple operating system instances at the same time.


cloud-computing_server_virtuaization1532503685.jpg image


 


Server virtualization is more for a good reason. It offers the potential to dramatically save space and improve server efficiency. Vendors are in fierce competition to offer the most advanced tools that they hope will earn them the virtualization crown.


 


Hence, the given statement that 'Cloud computing uses Server virtualization.' is TRUE.


 


 

Report Error

View Answer Workspace Report Error Discuss

3 2640