Searching for "V"

Q:

In a single virtual machine, the Java programming language passes arguments by

A) Refference B) Value
C) Both A and B D) None
 
Answer & Explanation Answer: B) Value

Explanation:

In single virtual machine,JVM passes arguments only by value.

Report Error

View Answer Report Error Discuss

Filed Under: Java

Q:

Directions : For the Assertion (A) and Reason (R) below, choose the correct alternative 

Assertion(A) :  The steam engine was invented by James Watt. 

Reason (R)   :  There was a problem of taking out water from flooded mines

A) Both A and R are true and R is the correct explanation of A. B) Both A and R are true but R is NOT the correct explanation of A.
C) A is true but R is false. D) A is false but R is true.
 
Answer & Explanation Answer: A) Both A and R are true and R is the correct explanation of A.

Explanation:

The problem of pumping out water from the flooded mines provided the need of a self working engine, which led James Watt to invent the same. 

 

Report Error

View Answer Report Error Discuss

Filed Under: Assertion and Reason

Q:

Directions : For the Assertion (A) and Reason (R) below, choose the correct alternative 

Assertion(A)  : Graphite is slippery and used as a lubricant. 

Reason (R)    : Graphite has free electrons. 

A) Both A and R are true and R is the correct explanation of A. B) Both A and R are true but R is NOT the correct explanation of A.
C) A is true but R is false. D) A is false but R is true.
 
Answer & Explanation Answer: B) Both A and R are true but R is NOT the correct explanation of A.

Explanation:

Graphite possesses a layer structure with two successive layers held by weak forces and able to slide over one another. So, graphite is slippery and this property finds its use as a lubricant. In graphite, each carbon atom is linked to three other carbon atoms while one electron in the carbon atom is delocalised. So, graphite has free electrons 

 

 

Report Error

View Answer Report Error Discuss

Filed Under: Assertion and Reason

Q:

Which of the following is not used for commenting in java?

A) // B) /* */
C) /** */ D) /** **/
 
Answer & Explanation Answer: D) /** **/

Explanation:
  • //               is a single line comment
  • /*  */          is commenting on one or more lines
  • /** */         is documentation comment
Report Error

View Answer Report Error Discuss

Filed Under: Java

Q:

Directions : For the Assertion (A) and Reason (R) below, choose the correct alternative 

Assertion (A)  :  a Leaves of plants are green. 

Reason (R)    :   Plants contain chromoplasts, the green pigment. 

A) Both A and R are true and R is the correct explanation of A. B) Both A and R are true but R is NOT the correct explanation of A.
C) A is true but R is false. D) A is false but R is true.
 
Answer & Explanation Answer: C) A is true but R is false.

Explanation:

Leaves of plants are green because they contain the green pigment, chlorophyll. However, plants contain chromoplasts but they are not green pigments. 

Report Error

View Answer Report Error Discuss

Filed Under: Assertion and Reason

Q:

Directions : For the Assertion (A) and Reason (R) below, choose the correct alternative 

Assertion(A) :  A little gap is left between iron rails. 

Reason (R)   :  Iron expands in summer. 

A) Both A and R are true and R is the correct explanation of A. B) Both A and R are true but R is NOT the correct explanation of A.
C) A is true but R is false. D) A is false but R is true.
 
Answer & Explanation Answer: A) Both A and R are true and R is the correct explanation of A.

Explanation:

Iron expands in summer. So, gaps are left between rails to allow for expansion. 

Report Error

View Answer Report Error Discuss

Filed Under: Assertion and Reason

Q:

Directions : For the Assertion (A) and Reason (R) below, choose the correct alternative 

Assertion (A)  : Carbon dioxide turns lime water milky. 

Reason (R)     : Carbon dioxide sullies the water. 

A) Both A and R are true and R is the correct explanation of A. B) Both A and R are true but R is NOT the correct explanation of A.
C) A is true but R is false. D) A is false but R is true.
 
Answer & Explanation Answer: C) A is true but R is false.

Explanation:

Carbon dioxide reacts with lime water (calcium hydroxide) to form milky precipitate of calcium carbonate 

Report Error

View Answer Report Error Discuss

Filed Under: Assertion and Reason

Q:

There is one default constructor in every class.

A) The above statement is true B) The above statement is false
C) Both true and false D) None
 
Answer & Explanation Answer: A) The above statement is true

Explanation:

There will always be a default constructor in every class 

Report Error

View Answer Report Error Discuss

Filed Under: Java