Searching for "M"

Q:

Prof. Amartya Sen has earned worldwide distinction in which of the following fields/areas

A) Economics B) Geology
C) Biochemistry D) Astrophysics
 
Answer & Explanation Answer: A) Economics

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Personalities

Q:

Which of the following statement is true?

A) Cohesion is the OO principle most closely associated with hiding implementation details B) Cohesion is the OO principle most closely associated with making sure that classes know about other classes only through their APIs
C) Cohesion is the OO principle most closely associated with making sure that a class is designed with a single, well-focused purpose D) None
 
Answer & Explanation Answer: C) Cohesion is the OO principle most closely associated with making sure that a class is designed with a single, well-focused purpose

Explanation:

A refers to encapsulation, B refers to coupling

Report Error

View Answer Report Error Discuss

Filed Under: Programming

Q:

public abstract interface Frobnicate { public void twiddle(String s); } 

Which is a correct class?

A) public abstract class Frob implements Frobnicate { public abstract void twiddle(String s) { } } B) public abstract class Frob implements Frobnicate { }
C) public class Frob extends Frobnicate { public void twiddle(Integer i) { } } D) public class Frob implements Frobnicate { public void twiddle(Integer i) { } }
 
Answer & Explanation Answer: B) public abstract class Frob implements Frobnicate { }

Explanation:

B is correct, an abstract class need not implement any or all of an interface’s methods

Report Error

View Answer Report Error Discuss

Filed Under: Programming

Q:

Which method names follow the JavaBeans standard?

A) addSize B) putDimensions
C) getCust D) deleteRep
 
Answer & Explanation Answer: C) getCust

Explanation:

C use the valid prefixes 'get' and 'is

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)   :   Simla is colder than Delhi. 

Reason (R)      :  Simla is at a higher altitude as compared to Delhi. 

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:

Simla is colder than Delhi because it is situated at a higher altitude and temperature decreases by 1°C for every 165 metres of ascent 

 

 

 

 

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)   :   Most of the Himalayan rivers are perennial. 

Reason (R)      :   They are fed by melting snow. 

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:

Most Himalayan rivers originating in Himalayan peaks are perennial because they are fed by the melting snow throughout the year. 

 

 

Report Error

View Answer Report Error Discuss

Filed Under: Assertion and Reason

Q:

Which key word is to be used to tell the JVM to skip the variable while performing the serialization process of the object containing it?

A) Transcient B) Volatile
C) Static D) Final
 
Answer & Explanation Answer: A) Transcient

Explanation:

If you mark an instance variable as transient, you're telling the JVM to skip (ignore) this variable when you attempt to serialize the object containing it.

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)  :   We feel comfortable in hot and humid climate. 

Reason (R)     :   Sweat evaporates faster in humid climate. 

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:

We feel uncomfortable in hut and humid climate because in hot weather, body sweats more but due to high humidity, this sweat does not evaporate easily. 

 

 

Report Error

View Answer Report Error Discuss

Filed Under: Assertion and Reason