Questions

Q:

Which of the following is true?

A) It is appropriate to use assertions to validate arguments to methods marked public B) It is appropriate to catch and handle assertion errors
C) It is NOT appropriate to use assertions to validate command-line arguments D) None
 
Answer & Explanation Answer: C) It is NOT appropriate to use assertions to validate command-line arguments

Explanation:

A is incorrect. It is acceptable to use assertions to test the arguments of private methods.

 

B is incorrect. While assertion errors can be caught, Sun discourages you from doing so.

Report Error

View Answer Report Error Discuss

Filed Under: Programming

0 3737
Q:

What was the name of India's first ever micro-drama festival that was held recently in New Delhi ?

A) Thanes Hare B) Taapsi
C) Thespis D) Ankulrama
 
Answer & Explanation Answer: C) Thespis

Explanation:

India's first ever micro-drama festival, named Thespis, was held recently in New Delhi. 

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

2 3737
Q:

If I use the following printf() to print a long int why I am not warned about the type mismatch?

printf ("%d",num );

Answer

When a function accepts a variable number of arguments , its prototype cannot provide any information about the number of arguments and type of those variable arguments. Hence the compiler cannot warn about the mismatches. The programmer must make sure that arguments match or must manually insert explicit typecast.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 3736
Q:

Which is not associated with areas of karst topography?

A) flowing rivers B) sinkholes
C) sinking streams D) caverns
 
Answer & Explanation Answer: A) flowing rivers

Explanation:

A karst topography is that which composes of limestone and its associated features and structures. Karst topography and caves develop in limestone rocks due to their solubility in dilute acidic groundwater. The solubility of limestone in water and weak acid solutions leads to karst landscapes.

 

Flowing rivers, can be found in areas away from karst topography.

Report Error

View Answer Report Error Discuss

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

17 3735
Q:

Which American artist's most famous portrait is that of his mother?

A) Rembrant B) Whistler
C) Vincent Van Gough D) Salava dor Dali
 
Answer & Explanation Answer: B) Whistler

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

8 3734
Q:

Which is highest dam in world ?

Answer

Jinping-I Dam  in China at 305 m (1,001 ft) high

Report Error

View answer Workspace Report Error Discuss

15 3734
Q:

Describe a time where customer wasn’t happy and what did you do to change it?

Answer

There’s no doubt that working in retail you will encounter an unhappy, disgruntled, or difficult customer.  Learning to hold in your personal feelings, addressing empathy for customers, and representing the company well in order to keep customers coming back are all important skills recruiters will look for when assessing how you deal with uncomfortable situations.


 

Report Error

View answer Workspace Report Error Discuss

Subject: Retail

2 3734
Q:

Ryder Cup is related with which sports?

A) Football B) Golf
C) Badminton D) Cricket
 
Answer & Explanation Answer: B) Golf

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports

4 3733