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

7 7142
Q:

Improve the bracketed part of the sentence.

Please pass me that (scissors).

A) scissor B) pair of scissor
C) pair of scissors D) no improvement
 
Answer & Explanation Answer: C) pair of scissors

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 7133
Q:

ATP stands for -

A) Adenosine triphosphate B) Alanine triphosphate
C) Adrenalin triphosphate D) Asparagine triphosphate
 
Answer & Explanation Answer: A) Adenosine triphosphate

Explanation:

Adenosine triphosphate (ATP) is a nucleotide which is also called as nucleoside triphosphate is a small molecule used in cells as a coenzyme. It is often referred to as the "molecular unit of currency" of intracellular energy transfer. ATP transports chemical energy within cells for metabolism. Most of the cellular functions need energy in order to be carried out such as synthesis of proteins, synthesis of membranes, movement of the cell, cellular division, transport of various solutes etc. The ATP is the molecule that carries energy to the place where the energy is needed. When ATP breaks into ADP (adenosine diphosphate) and Pi (phosphate), the breakdown of the last covalent link of phosphate liberates energy that is used in reactions where it is needed.

Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: AIEEE , Bank Exams

31 7133
Q:

The most abundant of the rare gases i ?

 

A) Helium B) Argon
C) Neon D) Nitrogen
 
Answer & Explanation Answer: B) Argon

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: Bank Exams

3 7131
Q:

Branch of biology in which we study about cultivation of flowering plant

A) Phenology B) Floriculture
C) Agronomy D) Botany
 
Answer & Explanation Answer: B) Floriculture

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology

31 7128
Q:

Oath taken by medical graduates is given by

A) Aristotle B) Theophrastus
C) Hippocrates D) Darwin
 
Answer & Explanation Answer: C) Hippocrates

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology

35 7128
Q:

Which of the following crop is known as Green Gold?

A) Coffee B) Neem
C) Tea D) Rice
 
Answer & Explanation Answer: C) Tea

Explanation:

Tea crop is known as Green Gold.

Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

11 7116
Q:

Improve the bracketed part of the sentence.

 

Internet providers would not block content because it would (not to be make economic sense) and consumers would not stand for it.

 

A) not be making economical sense B) not be make economical sense
C) not make economic sense D) No improvement
 
Answer & Explanation Answer: C) not make economic sense

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 7112