
Java Operator
Authored by dot 5th
Computers
5th Grade
Used 682+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would the new value of A be?
A=1;
a++;
1
2
3
4
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would the new value of A be?
A=1;
A--;
0
1
2
-1
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What's the value of below?
int i=5;
System.out.println(i);
System.out.println(++i);
6
7
67
7
8
5
6
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following code output?
int x = 1;
System.out.println(x++);
1
2
compilation error
runtime error
5.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which statement(s) are equivalent to i = i + 1?
i += 1
i++
i -= 1
i--
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What symbol represents the and operator in Java?
AND
and
&
&&
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What symbol represents the or operator in Java?
OR
or
||
|
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?