Operators in Java — Chapter Test

Answer all 5 questions, then submit. You need 60% to pass. Log in to save progress.

Question 1
An operator that works on exactly ONE operand is…
Abinary
Bunary
Cternary
Drelational
Question 2
After int a = 5; int x = a++; the value of x is…
A6
B5
C4
D0
Question 3
In 2 + 3 * 4, what is evaluated first?
A2 + 3
B3 * 4
Cleft to right always
Dnothing — it's an error
Question 4
Which operator CREATES an object?
Anew
Bdot (.)
C++
D&&
Question 5
(a > b) ? a : b uses the … operator.
Aunary
Bbinary
Cternary
Dassignment