Searching for "%"

Q:

Who among the following was an aminent painter

A) Sarada Ukil B) Uday Shankar
C) V.Shanta Ram D) Yusuf Meherally
 
Answer & Explanation Answer: A) Sarada Ukil

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Personalities

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:

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