
Java Increment & Decrement Operators and assignment statements
Authored by Kim Bowman
Computers
Professional Development
Used 13+ 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
1 min • 1 pt
++ increases the value of a variable by 1
assignment operator
decrement operator
increment operator
sentinel
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
--; decreases the value of a variable by 1
assignment operator
decrement operator
increment operator
sentinel
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What would the new value of A be?
A=1;
a++;
1
2
3
4
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What would the new value of A be?
A=1;
A--;
0
1
2
-1
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What value will print to the screen for i?
int i=5;
System.out.println(i++);
System.out.println(i);
System.out.println(++i);
5
6
7
6
6
7
6
7
8
5
5
6
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
++i and i++ cannot be used anywhere for the same purpose
true
false
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does the following code output?
int x = 1;
System.out.println(x++);
1
2
compilation error
runtime error
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?
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Computers
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...