Questions

Q:

What is the output after compile and run the following code ?

int Output = 10;
boolean b = false;
if((b == true) && ((Output += 10) == 20))
{
System.out.println("We are equal " + Output);
}
else
{
System.out.println("Not equal! " + Output);
}

A) Compilation and output of "We are equal 10" B) Compilation and output of "Not equal! 10"
C) Compilation error, attempting to perform binary comparison on logical data type D) Compilation and output of "Not equal! 20"
 
Answer & Explanation Answer: B) Compilation and output of "Not equal! 10"

Explanation:

The output will be "Not equal! 10". Please note that && is logical AND operator. If first operand before (&&) is false then the other operand will not be evaluated. This illustrates that the Output +=10 calculation was never performed because processing stopped after the first operand was evaluated to be false. If you change the value of b1 to true, processing occurs as you would expect and the output would be "We are equal 20".

Report Error

View Answer Report Error Discuss

Filed Under: Oracle Certification
Job Role: Analyst

6 5045
Q:

Which of the statements given below are not correct?

1. The author of the novel 'A Visit from the Goon Squad' is Edward P Jones.
2. The author of the novel 'The Corrections' is Jonathan Franzen.
3. The author of the novel 'The Known World' is Jennifer Egan.

A) 1 and 2 B) 2 and 3
C) 1 and 3 D) 1, 2 and 3
 
Answer & Explanation Answer: C) 1 and 3

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors
Exam Prep: Bank Exams

1 5045
Q:

The mapping of which of the following is most difficult

A) Mountains B) Plateau and Plains
C) Interior of the earth D) Oceans and their depth
 
Answer & Explanation Answer: C) Interior of the earth

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Geography

4 5045
Q:

Who was the first ruler of Pala Dynasty?

 

A) Mahendra Pala B) Gopala
C) Dharampala D) No option is correct
 
Answer & Explanation Answer: B) Gopala

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History
Exam Prep: Bank Exams

0 5043
Q:

Clouds usually form when

A) air temperature reaches the dew point B) evapouration has warmed the surrounding air
C) relative humidity is 0% D) condensation nuclei have been removed from the air
 
Answer & Explanation Answer: A) air temperature reaches the dew point

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Geography

8 5043
Q:

When a ray of light is  refracted by a prism such that the angle of deviation is minimum then

A) the angle of emergence is equal to the angle of incidence B) the angle of emergence is greater than the angle of incidence
C) the angle of emergence is smaller than the angle of incidence D) the sum of the angle of incidence and the angle of emergence is equal to 90 degrees
 
Answer & Explanation Answer: A) the angle of emergence is equal to the angle of incidence

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics

5 5043
Q:

The Sunderbans are found in

A) The Luni Basin B) Godavari Delta
C) Ganga Delta D) Mahanadi Delta
 
Answer & Explanation Answer: C) Ganga Delta

Explanation:

These mangrove or tidal forests are found in the submerged coastal plains of the Ganga. The name comes from the abundant sundari trees found here. 

Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography

4 5041
Q:

Where is the National Institute of Jute and Allied Fibre Technology located ?

A) Telangana B) Andhra Pradesh
C) West Bengal D) Haryana
 
Answer & Explanation Answer: C) West Bengal

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

22 5041