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

Select the synonym of

 

to superimpose

 

A) to overlap B) to adjoin
C) to juxtapose D) to continue
 
Answer & Explanation Answer: A) to overlap

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 6785
Q:

What is the currency of Indonesia?

A) rupiah B) dinar
C) rangit D) riyal
 
Answer & Explanation Answer: A) rupiah

Explanation:

Currency of Indonesia is rupiah

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

30 6784
Q:

Which among the following constituents of xylem is/are tubular structure(s)?

 

I. Tracheids

II. Vessels

III. Xylem fibres

 

A) Only I B) Only II
C) Only I and II D) All I, II and III
 
Answer & Explanation Answer: C) Only I and II

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: Bank Exams

3 6783
Q:

Match the characteristics with their market structure:

(a) MC = Price
(b) Firm will tend to set output so that it earns maximum profits.

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

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy
Exam Prep: Bank Exams

0 6777
Q:

Which of the following is graphics solution for word processors?

 

A) Clip Art B) Drop Cap
C) Word Art D) All of the above
 
Answer & Explanation Answer: A) Clip Art

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Computer
Exam Prep: Bank Exams

3 6777
Q:

Which sample of matter is a mixture?

A) KBr (S) B) NaCl (L)
C) K (S) D) NaCl (Aq)
 
Answer & Explanation Answer: D) NaCl (Aq)

Explanation:

Mixtures are combination of two or more substances physically which can be separated in to the original.

Matter can be breakdown into two categories. 

1) Pure substances 

2) Mixtures

 

Here in the given options, options A, B, C are pure substances as they are indicated as S & L in brackets. Option D) is an aqueous solution, that can be dissolved in water.

Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: AIEEE , Bank Exams , GATE
Job Role: Analyst , Bank Clerk , Bank PO

7 6776
Q:

 A benefit of the three-tier architecture is which of the following?

A) New modules can be built to support specific business needs B) Performance improves for compiled SQL statements
C) Results in a thinner client and database server D) All of the above.
 
Answer & Explanation Answer: A) New modules can be built to support specific business needs

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Database

1 6775