Searching for "F"

Q:

Which of the following is true?

A) It is appropriate to use assertions to validate arguments to methods marked public B) It is appropriate to catch and handle assertion errors
C) It is NOT appropriate to use assertions to validate command-line arguments D) None
 
Answer & Explanation Answer: C) It is NOT appropriate to use assertions to validate command-line arguments

Explanation:

A is incorrect. It is acceptable to use assertions to test the arguments of private methods.

 

B is incorrect. While assertion errors can be caught, Sun discourages you from doing so.

Report Error

View Answer Report Error Discuss

Filed Under: Programming

Q:

Who was the first person to cross the Alps with army

A) Hannibal B) Napolean
C) Alexander D) None of these
 
Answer & Explanation Answer: A) Hannibal

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:

Gum Kelucharan Mohapatra is a maestro of which of the following dance forms

A) Kathak B) Kuchipudi
C) Odissi D) Kathakali
 
Answer & Explanation Answer: A) Kathak

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Personalities

Q:

Safdar Hashmi is a name associated with

A) Drawing and Painting B) Journalism
C) Instrumental Music D) None of these
 
Answer & Explanation Answer: D) None of these

Explanation:

Correct Answer : Safdar Hashmi is a name associated with Drama

Report Error

View Answer Report Error Discuss

Filed Under: Famous Personalities

Q:

Who among the following persons is called ' Desert Fox '

A) Walter Scott B) Erwin Rommel
C) Eisenhower D) Bismarck
 
Answer & Explanation Answer: B) Erwin Rommel

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Personalities

Q:

The first Indian who was choosen as the secretary general of commonwealth is

A) Krishnamurthy B) Kamalesh Sharma
C) Rakesh Verma D) Gopalaswamy
 
Answer & Explanation Answer: B) Kamalesh Sharma

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Personalities