Java Increment & Decrement Operators

Java Increment & Decrement Operators

Professional Development

10 Qs

quiz-placeholder

Similar activities

Tipos de visibilidade e encapsulamento

Tipos de visibilidade e encapsulamento

Professional Development

10 Qs

Family Quizz

Family Quizz

5th Grade - Professional Development

15 Qs

L7 - Bài 14 TT Tuần tự

L7 - Bài 14 TT Tuần tự

Professional Development

11 Qs

Cycle 4: Session 8 Review.

Cycle 4: Session 8 Review.

Professional Development

12 Qs

Day 1 - Basics of Java

Day 1 - Basics of Java

Professional Development

14 Qs

Latihan Microsoft Word by Kisron

Latihan Microsoft Word by Kisron

Professional Development

10 Qs

Roblox z Lua 10-12 - II QUIZ

Roblox z Lua 10-12 - II QUIZ

Professional Development

10 Qs

aXQtMjktMTEtMjAyMg==

aXQtMjktMTEtMjAyMg==

Professional Development

10 Qs

Java Increment & Decrement Operators

Java Increment & Decrement Operators

Assessment

Quiz

Computers

Professional Development

Practice Problem

Medium

Used 235+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?