Java Increment & Decrement Operators

Quiz
•
Computers
•
Professional Development
•
Medium
Used 229+ 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
9 questions
PreTrainingJavaScript

Quiz
•
Professional Development
12 questions
Kotlin Quiz 4

Quiz
•
Professional Development
10 questions
Day 2 C Programming quiz

Quiz
•
Professional Development
10 questions
c program -basic

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

Quiz
•
Professional Development
9 questions
Sains Komputer Tingkatan 4 - 1.5.1 Jenis Ralat

Quiz
•
KG - Professional Dev...
10 questions
IT A OOPs Lab Quiz1

Quiz
•
Professional Development
10 questions
CS402 T02b

Quiz
•
Professional Development
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade