EX 30: Java Operators Quiz

EX 30: Java Operators Quiz

12th Grade

15 Qs

quiz-placeholder

Similar activities

Java: repetition control structure for & while

Java: repetition control structure for & while

10th - 12th Grade

10 Qs

Review

Review

9th - 12th Grade

10 Qs

Grupi II_mesimi online

Grupi II_mesimi online

12th Grade

10 Qs

ESBWB Workbook Domain 1 Lesson 2

ESBWB Workbook Domain 1 Lesson 2

9th - 12th Grade

15 Qs

Pointers

Pointers

12th Grade

20 Qs

Cyber Security KS4

Cyber Security KS4

8th - 12th Grade

15 Qs

12AIT - All About W3C <3

12AIT - All About W3C <3

10th Grade - University

18 Qs

Scratch

Scratch

KG - Professional Development

10 Qs

EX 30: Java Operators Quiz

EX 30: Java Operators Quiz

Assessment

Quiz

Computers

12th Grade

Practice Problem

Medium

Created by

Khairul Imtiyaz

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operators does the code arrayOfInts[j] > arrayOfInts[j+1] contain?

+

>

==

%

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the values of i and n after the code int i = 10; int n = i++%5; is executed?

i=10, n=0

i=11, n=2

i=10, n=2

i=11, n=0

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To invert the value of a boolean, which operator would you use?

!

&

|

^

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used to compare two values, = or == ?

=

==

>

<

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Explain the following code sample: result = someCondition ? value1 : value2;

Bitwise XOR Operator

Logical OR Operator

Ternary Operator

Logical AND Operator

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the following program, explain why the value '6' is printed twice in a row:

i++

++i

i--

--i

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used for prefix increment in Java?

++i

i--

--i

i++

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

Already have an account?