Search Header Logo

Java Operators

Authored by RESHMA NADAF

Computers

University

Used 1K+ times

Java Operators
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

++ increases the value of a variable by 1

assignment operator

decrement operator

increment operator

sentinel

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What would the new value of A be?

A=1;

a++;

1

2

3

4

3.

MULTIPLE CHOICE QUESTION

30 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

4.

MULTIPLE SELECT QUESTION

10 sec • 1 pt

Which statement(s) are equivalent to i = i + 1?

i += 1

i++

i -= 1

i--

5.

MULTIPLE SELECT QUESTION

10 sec • 1 pt

Which are the types of operators seen? Select as many you think

bitwise operator

subtraction operator

equality operator

arithmetic operator

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

what is modulo operation used for ?

performs division

performs division and gives no remainder

performs division and gives remainder

does not perform division

7.

MULTIPLE CHOICE QUESTION

5 sec • 1 pt

arithmetic operators return a value. True or false?

true

false

Access all questions and much more by creating a free account

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

Already have an account?

Discover more resources for Computers