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

Function of Leghaemoglobin in nitrogen fixation _____

A) Absorption of oxygen B) Nutrion of bacteria
C) Absorption of light D) All
 
Answer & Explanation Answer: A) Absorption of oxygen

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology

32 6984
Q:

Which one of the following is not radioactive

A) Astanine B) Francium
C) Tritium D) Zirconium
 
Answer & Explanation Answer: D) Zirconium

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry

13 6984
Q:

The monomer of polythene is

A) ethylene B) ethyl alcohol
C) vinyl chloride D) ethanol
 
Answer & Explanation Answer: A) ethylene

Explanation:

The monomer of polythene is ethylene.

the_monomer_of_polythene_is1546857163.png image

Report Error

View Answer Report Error Discuss

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

17 6982
Q:

Hindustan Aeronautics Limited (HAL) has handed over a Dornier 228 light-weight aircraft to DRDO. What is the name of this aircraft?

A) Vayurathna B) Maharathna
C) Nabhrathna D) Aakashrathna
 
Answer & Explanation Answer: C) Nabhrathna

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

9 6981
Q:

Golden Revolution in India refers to growth of

 

A) Rice B) Wheat
C) Honey D) Fish
 
Answer & Explanation Answer: C) Honey

Explanation:

Golden Revolution in India refers to increase in the production of Honey and other Horticulture. The period between 1991 to 2003 is referred to as Golden Revolution Period.

 

 

Report Error

View Answer Report Error Discuss

Filed Under: Indian History
Exam Prep: Bank Exams

0 6979
Q:

Which country is set to join as the sixth member of the ‘Five Eyes’ intelligence network?

 

A) China B) Brazil
C) India D) Japan
 
Answer & Explanation Answer: D) Japan

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

2 6973
Q:

Which of the following was banned by Supreme Court of India in 2014 ?

A) Kick Boxing B) Malla Yuddam
C) Kalari Payattu D) Jallikattu
 
Answer & Explanation Answer: D) Jallikattu

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Culture

86 6972