Java Operator

Java Operator

5th Grade

10 Qs

quiz-placeholder

Similar activities

Formatos de texto, dibujo e imagen

Formatos de texto, dibujo e imagen

5th Grade

10 Qs

Вкладені алгоритмічні структури повторення.

Вкладені алгоритмічні структури повторення.

5th Grade

11 Qs

Los periféricos del computador

Los periféricos del computador

1st Grade - Professional Development

9 Qs

Microsoft Excel

Microsoft Excel

5th Grade

12 Qs

Google for Education

Google for Education

5th Grade

10 Qs

First step to Internet 5B1

First step to Internet 5B1

5th Grade

10 Qs

K5_ÔN TẬP HỌC KÌ 1

K5_ÔN TẬP HỌC KÌ 1

5th Grade

15 Qs

Gr3-Scratch - Revision

Gr3-Scratch - Revision

3rd - 5th Grade

11 Qs

Java Operator

Java Operator

Assessment

Quiz

Computers

5th Grade

Hard

Created by

dot 5th

Used 682+ 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

What would the new value of A be?

A=1;

a++;

1

2

3

4

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What would the new value of A be?

A=1;

A--;

0

1

2

-1

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What's the value of below?


int i=5;


System.out.println(i);

System.out.println(++i);

6

7

67

7

8

5

6

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the following code output?

int x = 1;

System.out.println(x++);

1

2

compilation error

runtime error

5.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

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

i += 1

i++

i -= 1

i--

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What symbol represents the and operator in Java?

AND

and

&

&&

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What symbol represents the or operator in Java?

OR

or

||

|

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?