Searching for "h"

Q:

What is the capital of Hungary?

A) Budapest B) Reykjavik
C) Santo Domingo D) None
 
Answer & Explanation Answer: A) Budapest

Explanation:

Budapest is the capital of Hungary

Report Error

View Answer Report Error Discuss

Filed Under: Country Capitals

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:

Which is true?

A) "X extends Y" is correct if and only if X is a class and Y is an interface B) "X extends Y" is correct if and only if X is a class and Y is an interface
C) "X extends Y" is correct if X and Y are either both classes or both interfaces D) "X extends Y" is correct for all combinations of X and Y being classes and/or interfaces
 
Answer & Explanation Answer: C) "X extends Y" is correct if X and Y are either both classes or both interfaces

Explanation:

A is incorrect because classes implement interfaces, they don't extend them. B is incorrect because interfaces only "inherit from" other interfaces. D is incorrect based on the preceding rules.

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

Q:

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

Assertion(A)   :   Tamil Nadu gets most of the rainfall in winter. 

Reason (R)     :   Tamil Nadu gets rainfall from retreating monsoons. 

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:

Rainfall in Tamil Nadu is caused by the retreating monsoons which occur in winter. 

 

 

Report Error

View Answer Report Error Discuss

Filed Under: Assertion and Reason