Java Operator

Java Operator

5th Grade

10 Qs

quiz-placeholder

Similar activities

Tatasusunan

Tatasusunan

5th Grade

10 Qs

C++ Coding Problems

C++ Coding Problems

4th Grade - Professional Development

10 Qs

PL2 Midterm Quiz

PL2 Midterm Quiz

1st - 5th Grade

10 Qs

Ap computer science a

Ap computer science a

1st - 12th Grade

15 Qs

Массивтер

Массивтер

1st - 5th Grade

15 Qs

CS 1

CS 1

5th Grade

12 Qs

JAVA: Level-1

JAVA: Level-1

5th - 12th Grade

15 Qs

Python Basics

Python Basics

4th - 7th Grade

10 Qs

Java Operator

Java Operator

Assessment

Quiz

Computers

5th Grade

Hard

Created by

dot 5th

Used 680+ times

FREE Resource

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

||

|

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?

Discover more resources for Computers