Questions

Q:

Rewrite the following set of statements using conditional operators.

int a =1, b ;

if ( a > 10 )

b = 20; 

Answer

int a = 1, b , dummy;


a > 10 ? b = 20 : dummy =1;


 


Note that the following would not have worked:


a > 10 ? b = 20 : ;;


 

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

3 4996
Q:

Magma that reaches earth's surface and then solidifies is called

A) granite B) lava
C) quartz D) silicates
 
Answer & Explanation Answer: B) lava

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Geography

3 4994
Q:

Prince of Wales cup is associated with the game of

A) Golf B) Hockey
C) Volleyball D) Basketball
 
Answer & Explanation Answer: A) Golf

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO , Database Administration

8 4994
Q:

Who of the following was the personal physician of Kanishka and also the author of a famous treatise on the Indian system of medicine

A) Charaka B) Susruta
C) Nagarjuna D) Jevaka
 
Answer & Explanation Answer: A) Charaka

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

2 4994
Q:

Source of river Mahanadi ?

A) Mahabaleshwar B) Trimbak Plateau
C) Dandakaranya D) None
 
Answer & Explanation Answer: C) Dandakaranya

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams , CAT
Job Role: Bank Clerk

9 4993
Q:

Logical puzzle

You have 10 coins….arrange them in 4 straight lines such that each line contains 4 coins.

Report Error

View answer Workspace Report Error Discuss

27 4992
Q:

Sales commissions are classified as

A) Period costs B) Product costs
C) Indirect labour D) Overhead costs
 
Answer & Explanation Answer: A) Period costs

Explanation:

A sales commission is money your small business pays an employee when she sells your products or services to customers. Sales commissions are classified as selling expenses which come under Period costs. A period cost is any cost that cannot be capitalized into prepaid expenses, inventory, or fixed assets.

Report Error

View Answer Report Error Discuss

Filed Under: Business Awareness
Job Role: Analyst

9 4991
Q:

Can character data be stored in computer memory? 

A) Yes---a primitive data type is used to store characters B) No---computer memory can only store patterns
C) Yes---characters are stored in special memory D) No---computers can only store numbers
 
Answer & Explanation Answer: A) Yes---a primitive data type is used to store characters

Explanation:
Report Error

View Answer Report Error Discuss

7 4990