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

Highest Jute producing state in India?

A) Gujarat B) West Bengal
C) Uttar Pradesh D) Bihar
 
Answer & Explanation Answer: B) West Bengal

Explanation:

West Bengal is the highest Jute producing state in India followed by Bihar and Assam in second and third place.

Gujarat is the largest Cotton producing state in India.

Report Error

View Answer Report Error Discuss

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

9 5081
Q:

Which city in Australia is hosted the 2018 commonwealth Games?

 

A) Hobart B) perth
C) Gold Coast D) Adelaide
 
Answer & Explanation Answer: C) Gold Coast

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports
Exam Prep: Bank Exams

1 5080
Q:

Why do Fold mountains have enormous thickness of sedimentary rocks?

A) Due to deposition of sediments in a valley for milions of years B) Due to accumulation of sediments in a geosyncline
C) The plains were folded into mountains D) The sediments were folded into recumbent and nappe
 
Answer & Explanation Answer: B) Due to accumulation of sediments in a geosyncline

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Geography

1 5080
Q:

Solve the following equations and find the value of abc?

 

A) 3 B) 6
C) 9 D) 12
 
Answer & Explanation Answer: B) 6

Explanation:

From the given equations,

(a+b+c)2=a2+b2+c2+2(ab+bc+ca)
(6)2=14 + 2(ab + bc + ca)
36 - 14 = 2(ab + bc + ca)
22/2 = ab + bc + ca
ab + bc + ca = 11

a3 + b3 + c3 - 3abc = (a + b + c)(a2 + b2 + c2 - ab - bc - ca)
= (6) (14 - 11)
=(6)(3)
=18

Since, a3 + b3 + c3 - 3abc = 18

36 - 3abc = 18

-3abc = 18 - 36

-3abc = -18

abc = 6.

Report Error

View Answer Report Error Discuss

Filed Under: Math Puzzles
Exam Prep: Bank Exams , CAT

24 5078
Q:

Logical puzzle

John, Jenita, Maria and Julie went to a shop. Each picked a colorful ball of a different favorite color. The colors are Yellow, Violet, Green and Red. John and Maria both do not like violet. The person who likes red is a girl. Jenita likes green, but it is not her favorite color. Jenita's favorite color is either green or yellow, although she can have only one favorite color. John likes red, but it is not his favorite color.

Answer

Jenita's color should be yellow. John's color cannot be violet and red, it might be yellow or green. As Jenita's color is yellow, so John's color will be green. Maria's do not like violet, so her color must be Red. Then Julie's color is violet.

Report Error

View answer Workspace Report Error Discuss

Subject: Logic Puzzles

13 5078
Q:

This Union Territory possesses a coastal stretch of about 45 km with 28 marine fishing villages. However 45% of the population is engaged in agricultural and allied products.
Which among the following Union Territories is referred to in the above passage

A) Lakshadweep B) Pondicherry
C) Andaman and Nicobar D) Daman
 
Answer & Explanation Answer: A) Lakshadweep

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography

11 5076
Q:

Factors that may influence enzyme activity?

 

A) pH B) Substrate concentration
C) Temperature D) All the above
 
Answer & Explanation Answer: D) All the above

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: Bank Exams

0 5075