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

Of the following who was the first - ever industrialist to get the Bharat Ratna?

A) RK Dalmia B) JRD Tata
C) RK Birla D) SP Godrej
 
Answer & Explanation Answer: B) JRD Tata

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

1 3746
Q:

Solve this puzzle?

logical_thinking_puzzle11538732563.jpg image

A) 18 B) 16
C) 20 D) 14
 
Answer & Explanation Answer: B) 16

Explanation:

Let the given be resembled in letters like R, G & B.

Here given,

1) R + R + R = 30

=> 3R = 30 => R = 30/3 = 10

 

2) R + G + G = 18 => R + 2G = 18 => 10 + 2G = 18 => 2G = 8 => G = 4

 

3) G - B = 2 => B = G - 2 => B = 4 - 2 => B = 2

 

Hence, R + G + B = 10 + 4 + 2 => 16.

Report Error

View Answer Report Error Discuss

Filed Under: Math Puzzles
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

5 3743
Q:

Which of the following is the basic characteristic of Oligopoly ?

A) a few sellers, many buyers B) many sellers, a few buyers
C) a few sellers, a few buyers D) a few sellers, one buyer
 
Answer & Explanation Answer: A) a few sellers, many buyers

Explanation:
Report Error

View Answer Report Error Discuss

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

13 3743
Q:

What has triggered the need for multitasking in PCs?

Answer

1. Increased speed and memory capacity of microprocessors together with the support for virtual memory and


2. Growth of client server computing

Report Error

View answer Workspace Report Error Discuss

1 3742
Q:

Cactus Spines are Modified 

A) Stems B) Branches
C) Leaves D) Roots
 
Answer & Explanation Answer: C) Leaves

Explanation:
    • Cactus spines are also known as modified bud scales, which are also called modified leaves.

 

    • Cactus spines occur in clusters in the axil of leaves.

 

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams , AIEEE
Job Role: Bank PO

11 3742
Q:

Compressions and Rarefactions are characteristic of

A) Longitudinal waves B) Transverse waves
C) Both A & B D) Neither of A & B
 
Answer & Explanation Answer: A) Longitudinal waves

Explanation:

Compressions and Rarefactions are characteristic of Longitudinal waves.

The direction of vibration of the particles is in the same plane as in which the wave is propagating. The particles vibrate back and forth, about their mean positions.

Report Error

View Answer Report Error Discuss

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

2 3742
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 3741