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

Select the antonym of

 

demon

 

A) spectre B) angel
C) shadow D) zombie
 
Answer & Explanation Answer: B) angel

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 7074
Q:

In which of the following examples will an athlete have maximum accelerated motion?

 

A) Running on an octagonal track B) Running on a hexagonal track
C) Running on a rectangular track D) Running on a circular track
 
Answer & Explanation Answer: D) Running on a circular track

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams

0 7069
Q:

Which statement best describes an O3 molecule?

A) The double bond in ozone switches back and forth between the two outer oxygen atoms B) An ozone molecule contains one single bond and one double bond
C) Each atom in ozone is connected to another atom by 1.5 bonds. D) None
 
Answer & Explanation Answer: B) An ozone molecule contains one single bond and one double bond

Explanation:

Ozone molecule has one single bond and one double bond.

Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: AIEEE , GATE
Job Role: Analyst , Bank PO

8 7065
Q:

Classical dance 'Mohiniattam' belongs to which state ?

A) Tamilnadu B) Andhra Pradesh
C) Manipur D) Kerala
 
Answer & Explanation Answer: D) Kerala

Explanation:
Report Error

View Answer Report Error Discuss

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

76 7063
Q:

What gets wetter and wetter the more it dries?

A) Soap B) Towel
C) Clothes D) Sponge
 
Answer & Explanation Answer: B) Towel

Explanation:

Towel gets wetter and wetter the more it dries because we use that towel which is dried after used.

Report Error

View Answer Report Error Discuss

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

15 7058
Q:

19 persons do 19 programs in 19 hours . If they take 15 mins interval and then how much time they need to do 52 programs.

A) 23 hours B) 47 hrs 15 min
C) 52 hrs 15 min D) 22 hrs 15 min
 
Answer & Explanation Answer: C) 52 hrs 15 min

Explanation:

Since they can do 19 programs in 19 hours, Then 52 programs in 52 hours respectively.
And a 15 min interval
Total time they take to do 52 programs is 52 hours 15 minutes.

Report Error

View Answer Report Error Discuss

11 7057
Q:

The lines joining the place of equal intensity of seismic waves are known as

A) Seisimice line B) Isoseisimic line
C) Isogonal line D) Isogonic line
 
Answer & Explanation Answer: B) Isoseisimic line

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Geography

7 7054