Java Increment & Decrement Operators
Quiz
•
Computers
•
Professional Development
•
Medium
Used 234+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
++ increases the value of a variable by 1
assignment operator
decrement operator
increment operator
sentinel
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
--; decreases the value of a variable by 1
assignment operator
decrement operator
increment operator
sentinel
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
PRE-increment us used when you want to use the incremented
value of the variable in that expression. Whereas POST-increment uses the original value before incrementing it
True
False
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would the new value of A be?
A=1;
a++;
1
2
3
4
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would the new value of A be?
A=1;
A--;
0
1
2
-1
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What's the value of below?
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
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
++i and i++ cannot be used anywhere for the same purpose
true
false
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
c programming-Test 1
Quiz
•
Professional Development
11 questions
Herramientas WEB
Quiz
•
6th Grade - Professio...
15 questions
JOB PRO - SOFTWARE
Quiz
•
Professional Development
10 questions
Revisão LP 2023.1
Quiz
•
Professional Development
15 questions
Computer basics for beginners
Quiz
•
Professional Development
15 questions
SIMKOM
Quiz
•
12th Grade - Professi...
10 questions
Let's Play Together
Quiz
•
University - Professi...
13 questions
Actividad de I.A
Quiz
•
Professional Development
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Computers
10 questions
Halloween
Quiz
•
Professional Development
16 questions
Spooky Season Quiz
Quiz
•
Professional Development
5 questions
11.4.25 Student Engagement & Discourse
Lesson
•
Professional Development
50 questions
ASL Colors and Clothes
Quiz
•
KG - Professional Dev...
15 questions
Ohms Law
Quiz
•
Professional Development
10 questions
Halloween Trivia
Quiz
•
Professional Development
10 questions
Halloween Trivia
Quiz
•
Professional Development
