Questions

Q:

In the following pieces of code, B and D will compile without any error. True or false ?

A: StringBuffer sb1 = "abcd";

B: Boolean b = new Boolean("abcd");

C: byte b = 255;

D: int x = 0x1234;

E: float fl = 1.2;

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

Explanation:

The code segments B and D will compile without any error. A is not a valid way to construct a StringBuffer, you need to create a StringBuffer object using "new". B is a valid construction of a Boolean (any string other than "true" or "false" to the Boolean constructor will result in a Boolean with a value of "false"). C will fail to compile because the valid range for a byte is -128 to +127 (i.e., 8 bits, signed). D is correct, 0x1234 is the hexadecimal representation in java. E fails to compile because the compiler interprets 1.2 as a double being assigned to a float (down-casting), which is not valid. You either need an explicit cast, as in "(float)1.2" or "1.2f", to indicate a float.

Report Error

View Answer Workspace Report Error Discuss

6 6904
Q:

Which of the following is not a good polling technique?

 

A) using a large sample B) asking clear questions
C) using a random sample D) using a push poll
 
Answer & Explanation Answer: D) using a push poll

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics
Exam Prep: Bank Exams

2 6904
Q:

The digital computer was developed primarily in

A) USA B) UK
C) Russia D) Japan
 
Answer & Explanation Answer: A) USA

Explanation:

A digital computer accepts, processes and outputs data in digitized forms. The digital computer was developed primarily in Unites States of America.

Report Error

View Answer Report Error Discuss

19 6904
Q:

Of which ITIL process are Reliability, Serviceability and Maintainability components?

A) Service Level Management B) Problem Management
C) Availability Management D) IT Service Continuity Management
 
Answer & Explanation Answer: C) Availability Management

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: ITIL Certification

2 6904
Q:

Bhangra is the folk dance of which Indian state

Answer

Punjab

Report Error

View answer Workspace Report Error Discuss

Subject: Indian Culture

97 6903
Q:

Match the characteristics with their market structure:

(a) demand will tend to be inelastic
(b) Firm has control over quantity of output but it must take into account reactions of competitors

 

A) (a) Pure Monopoly, (b) Oligopoly B) (a) Pure Monopoly, (b) Monopolistic Competition
C) (a) Pure Competition, (b) Oligopoly D) (a) Monopolistic Competition, (b) Pure Competition
 
Answer & Explanation Answer: A) (a) Pure Monopoly, (b) Oligopoly

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy
Exam Prep: Bank Exams

1 6900
Q:

Who is the first British footballer to play 100 champions League matches and the highest paid player in the world ?

Answer

David Beckham

Report Error

View answer Workspace Report Error Discuss

2 6896
Q:

Quantitatively, the inertia of an object is measured by ______________.

 

A) its weight B) the product of its mass and velocity
C) its mass D) the product of its mass and acceleration
 
Answer & Explanation Answer: C) its mass

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams , CAT

0 6895