Java Increment & Decrement Operators
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Medium
Used 235+ 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
Already have an account?
Similar Resources on Wayground
10 questions
expresii
Quiz
•
Professional Development
10 questions
1ª Avaliação - Informática Aplicada
Quiz
•
Professional Development
10 questions
aws_workshop
Quiz
•
Professional Development
10 questions
5. Control statement
Quiz
•
Professional Development
10 questions
Hen keeping
Quiz
•
Professional Development
15 questions
HTML
Quiz
•
Professional Development
14 questions
Input, output and storage de
Quiz
•
8th Grade - Professio...
10 questions
Globe Google Workspace Intro
Quiz
•
Professional Development
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
25 questions
Christmas Movies
Quiz
•
Professional Development
20 questions
Christmas Trivia
Quiz
•
Professional Development
15 questions
Fun Holiday Trivia
Quiz
•
Professional Development
25 questions
Name That Tune - Christmas
Quiz
•
Professional Development
29 questions
Christmas Song Emoji Pictionary
Quiz
•
Professional Development
9 questions
Holiday Movie Trivia
Lesson
•
Professional Development
34 questions
Winter Trivia
Quiz
•
Professional Development
