Searching for "V"

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:

What are the 3main tasks of JVM?

Answer

The JVM performs three main tasks:


• Loads code


• Verifies code


• Executes code

Report Error

View answer Workspace Report Error Discuss

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

Q:

Explain the difference between value types and reference types

Answer

Value type :


 



  • Stores the data

  • The value of value types is stored on the managed stack

  • They are lighter objects 

  • One variable can have only one value


Reference Type :



  • Stores the reference to the data

  • A reference type is allocated on the heap

  • They are heavier objects

  • Several variables can reference the same data


 

Report Error

View answer Workspace Report Error Discuss

Subject: .NET

Q:

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

Assertion (A) : Himalayas once laid under the sea. 

Reason (R)    : Fossils of marine creatures are traced on the Himalayas. 

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:

Himalayas are the young fold mountains that at one time are believed to lie inside the Tethys sea. This is evident from the recovery of fossils of marine creatures on its peaks. 

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) :  Clothes are not washed properly in hard water. 

 Reason (A)    :  Hard water contains many minerals. 

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:

Clothes are not washed properly in hard water because it does not form lather with soap. However, it is true that hard water contains many minerals. 

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)  :   Red colour of blood is due to haemoglobin. 

Reason (R)     :  Haemoglobin is a red 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: A) Both A and R are true and R is the correct explanation of A.

Explanation:

Haemoglobin is the blood pigment that imparts red colour to the blood. 

Report Error

View Answer Report Error Discuss

Filed Under: Assertion and Reason