Java Increment & Decrement Operators

Quiz
•
Computers
•
Professional Development
•
Medium
Used 234+ times
FREE Resource
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
Similar Resources on Wayground
10 questions
ICT 10 M6 QUIZIZZ

Quiz
•
Professional Development
15 questions
JavaScript

Quiz
•
Professional Development
10 questions
C++ quiz

Quiz
•
10th Grade - Professi...
10 questions
Quiz String

Quiz
•
Professional Development
12 questions
JDK,JRE,JIT & JVM MCQs

Quiz
•
Professional Development
12 questions
React/Javascript Quizz

Quiz
•
Professional Development
10 questions
Basic Programming Kotlin

Quiz
•
Professional Development
15 questions
JF UIT 2022 - Game 3

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade