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

16 14202
Q:

The default header for a worksheet is

A) The date and time B) User name
C) Date & Time D) None of the above
 
Answer & Explanation Answer: D) None of the above

Explanation:

MS Excel is the widely used worksheet in computer applications. We can add what we want in the header and footer of MS Excel sheets.

Report Error

View Answer Report Error Discuss

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

18 14189
Q:

Is B2+ Paramagnetic or Diamagnetic?

Answer

B2+ is a Paramagnetic. 


The filled orbitals are σ(1s)22σ(1s)22σ(2s)22σ(2s)22. The half-filled orbitals are π(2pxx) and π(2pyy). Since it posses 2 unpaired electrons, it is Paramagnetic in nature.

Report Error

View answer Workspace Report Error Discuss

Subject: Physics Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Analyst , Bank Clerk , Bank PO

8 14176
Q:

Two girls ate dinner together.

 After that they both ordered iced tea. One girl drank them very fast and had finished five in the time it took the other to drink just one.

The girl who drank one died while the other survived. However, all of the drinks that were served turned out to contain poison.

 

How did the girl who drank the most survive?

Answer

The poison was in the ice. When the girl drank the iced tea, the ice was still fully frozen. Gradually, as the ice cubes melted the poison was released into the drink.


 


Hence, the girl who died, drunk the tea after the ice melted. So, she was died. 

Report Error

View answer Workspace Report Error Discuss

31 14172
Q:

People from which state celebrate their harvest festival around Makar Sankranti?

A) Kerala B) Punjab
C) Karnataka D) Tamil Nadu
 
Answer & Explanation Answer: C) Karnataka

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

60 14163
Q:

Crack the Detectives code and Find the criminal's Name ?

17629868_1256539077786527_1613927902568118890_n1500008133.jpg image

A) Bill B) John
C) Todd D) None
 
Answer & Explanation Answer: A) Bill

Explanation:

Bill.

From the detectives code 0415 7140 7718

Each 4 digits may represent one name

Here 7718 mirror image represent BILL.

Report Error

View Answer Report Error Discuss

Filed Under: Logic Puzzles

50 14159
Q:

The Presidential Government operates on the principle of

A) Division of powers between centre and state B) Centralisation of Powers
C) Balance of powers D) Separartion of powers
 
Answer & Explanation Answer: D) Separartion of powers

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics

27 14150
Q:

what does the term 'Lithosphere' refer to

A) Interior of the earth B) Crust of the earth
C) Plants and animals D) None of the above
 
Answer & Explanation Answer: B) Crust of the earth

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Geography

33 14138