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 5208
Q:

A constitutional monarchy provides what power to a monarch?

A) Absolute power over parliament B) Only power given in the constitution
C) Power for kings, not queens D) A divine right of kings
 
Answer & Explanation Answer: B) Only power given in the constitution

Explanation:

A constitutional monarchy is a form of monarchical government established under a constitutional system which acknowledges an elected or hereditary monarch as head of state.

 

The monarchs in a constitutional monarchy had only the power that was allocated to them in the constitution of their land or republic.

 

Report Error

View Answer Report Error Discuss

Filed Under: World History
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

3 5208
Q:

Indian Standard Maridian passes through the states of UP,MP

A) AP and Karnataka B) Karnataka and Tamilnadu
C) AP and Tamilnadu D) Orissa and AP
 
Answer & Explanation Answer: D) Orissa and AP

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography

6 5207
Q:

Primary growth in plants occurs by

A. Vertical meristem

B. Lateral meristem

C. Intercalary meristem

D. Apical meristem

 

A) C & D B) A, B & D
C) A, B, C & D D) B, C & D
 
Answer & Explanation Answer: A) C & D

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: Bank Exams

0 5205
Q:

"Confederation Cup" is associated with which of the following game?

A) Hockey B) Badminton
C) Chess D) Football
 
Answer & Explanation Answer: D) Football

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank PO

11 5205
Q:

Which company has launched the world's first automated opening bandsets, titled PEBL, in the Indian Market?

A) Nokia B) Motorola
C) Samsung D) LG
 
Answer & Explanation Answer: B) Motorola

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Business Awareness

26 5204
Q:

The non green heterotrophic plants of plant kingdom are

A) Algae B) Fungi
C) Ferns D) Both B & C
 
Answer & Explanation Answer: B) Fungi

Explanation:

The non green heterotrophic plants of plant kingdom are Fungi.

Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

10 5199
Q:

As per a UNESCO report released in october 2013, how many internal migrants  are there in India?

A) 200 million B) 400 million
C) 600 million D) 750 million
 
Answer & Explanation Answer: D) 750 million

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

26 5198