Searching for "L"

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:

Which of the following is not the other name of attriibute?

A) Data member B) Instance variable
C) instance D) Data filed
 
Answer & Explanation Answer: C) instance

Explanation:

Instance is an object not an attribute

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)  : 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

Q:

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

Assertion(A) :  Bangladesh imports jute from India. 

Reason (R)   :  Bangladesh has most of the jute mills. 

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) Both A and R are false.
 
Answer & Explanation Answer: D) Both A and R are false.

Explanation:

When Bangladesh was created after partition of India, the areas of jute production went to Bangladesh while the jute mills were left in India. So, India imports raw jute from Bangladesh. 

Report Error

View Answer Report Error Discuss

Filed Under: Assertion and Reason

Q:

Client code having direct access to internal data is called

A) Encapsulation B) DataHiding
C) Polymorphism D) DataAbstraction
 
Answer & Explanation Answer: B) DataHiding

Explanation:

Client code must use setters and getters to access internal data in DataHiding

Report Error

View Answer Report Error Discuss

Filed Under: Java

Q:

An algorithm written once which can be used in many places is called

A) Block B) Function
C) Datatype D) None
 
Answer & Explanation Answer: B) Function

Explanation:

Function is an algorithm which can be used any where in the program when required

Report Error

View Answer Report Error Discuss

Filed Under: Java

Q:

By whom will the unallocated memory that is no longer needed will be cleared in java?

A) Java Virtual Machine B) Garebage collector
C) Both A and B D) None
 
Answer & Explanation Answer: B) Garebage collector

Explanation:

The Java programming language provides a system-level thread to track memory allocation.

Garbage collection has the following characteristics:

• Checks for and frees memory no longer needed

• Is done automatically

• Can vary dramatically across JVM implementations

Report Error

View Answer Report Error Discuss

Filed Under: Java