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

Bhangra is the folk dance of which Indian state

Answer

Punjab

Report Error

View answer Workspace Report Error Discuss

Subject: Indian Culture

97 6902
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:

Major coalfields of India are located in the river valley of

A) Damodar B) Godavari
C) Mahanadi D) Wardha
 
Answer & Explanation Answer: A) Damodar

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

4 6893
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 6893
Q:

Who of the following threw a bomb in the Central Legislative Assembly along with Bhagat Singh ?

A) B.K. Dutt B) Sukhdev
C) Jatin Das D) Rajguru
 
Answer & Explanation Answer: A) B.K. Dutt

Explanation:

Bhagat Singh and B.K. Dutt threw bombs in the Legislative Assembly as a protest against "Passage of public Safety bill".

Report Error

View Answer Report Error Discuss

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

23 6888
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 6886