menu

Java Operators


1. What is the result of the expression 3 * 2 + 5 / 2?

6.5

5.5

7

6


2. What is the result of the expression true || false?

1

0

1

0


3. What is the result of the expression 2 + 2 * 3?

6

8

10

8


4.

What is the result of the expression 6 % 4?

2

0

1

4


5. Which of the following operators is used to compare two values for greater than?

!=

==

>=

>


6. Which of the following operators is used to perform a bitwise right shift operation?

<<

>>

&

|


7. Which of the following is the correct operator for modulo division?

%

/

//

*


8. Which of the following is the correct operator for subtraction?

+

-

*

/


9. What is the result of the expression 4 % 2?

0

1

2

4


10. What is the result of the expression "Hello" + "World"?

Hello World

HelloWorld

Hello+World

HelloWorld!