Searching for "B"

Q:

When is the commonwealth day observed by its member countries

A) Jan 25 B) may 24
C) octo 24 D) Nov 14
 
Answer & Explanation Answer: B) may 24

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Organisations

Q:

Aryabhatta was India's renowned

A) Poet B) Physicist
C) Mathmartician D) None of these
 
Answer & Explanation Answer: C) Mathmartician

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Personalities

Q:

Who was known as the 'Father of Lok sabha'

A) Anantasayanam B) Bashyam
C) Mavlankar D) Zkir Hussain
 
Answer & Explanation Answer: C) Mavlankar

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Personalities

Q:

class Hell {

public static void main(String[] args) {

Integer i = 42;

String s = (i<40)?"life":(i>50)?"base":"ball";

System.out.println(s);

}

}

A) null B) ball
C) base D) None
 
Answer & Explanation Answer: B) ball

Explanation:

D is correct. This is a ternary nested in a ternary with a little unboxing thrown in.Both of the ternary expressions are false.

Report Error

View Answer Report Error Discuss

Filed Under: Java

Q:

Kuldip Nayarr, a journalist was appointed as a high commissioner in 

A) UK B) Pakistan
C) Sri Lanka D) Australia
 
Answer & Explanation Answer: A) UK

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Personalities

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