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

What symbol is used to enter number as text?

A) = B) "
C) ' D) _
 
Answer & Explanation Answer: C) '

Explanation:

Apostrophe(‘) symbol is used before a number to make it a text or label.

Report Error

View Answer Report Error Discuss

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

26 7136
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:

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:

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

Which state of India has the largest number of cotton mills?

 

A) Karnataka B) Uttar Pradesh
C) Maharashtra D) Gujarat
 
Answer & Explanation Answer: C) Maharashtra

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography
Exam Prep: Bank Exams

1 7123
Q:

Which insect sits on uncovered food?

A) bees B) flies
C) Both A & B D) None of the above
 
Answer & Explanation Answer: C) Both A & B

Explanation:

Both flies and bees can sit on the uncovered food and contaminate the food.

Report Error

View Answer Report Error Discuss

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

16 7122
Q:

A device used for the measurement of radioactivity is

A) mass spectrometer B) cyclotron
C) nuclear reactor D) G.M.counter
 
Answer & Explanation Answer: D) G.M.counter

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry

13 7110