Arithmetic Operators and Decisions

Arithmetic Operators and Decisions

11th Grade

10 Qs

quiz-placeholder

Similar activities

NISD CS AP Exam Prep

NISD CS AP Exam Prep

10th - 12th Grade

12 Qs

Pemrograman Berorientasi Objek PAS Ganjil XI RPL

Pemrograman Berorientasi Objek PAS Ganjil XI RPL

11th Grade

15 Qs

Python-Basic

Python-Basic

3rd Grade - University

15 Qs

AP Computer Science Final Review

AP Computer Science Final Review

10th - 12th Grade

15 Qs

Quiz 2 Java

Quiz 2 Java

11th Grade

15 Qs

Java Code

Java Code

10th - 12th Grade

12 Qs

Java

Java

11th Grade

10 Qs

Java Beginners

Java Beginners

11th Grade

15 Qs

Arithmetic Operators and Decisions

Arithmetic Operators and Decisions

Assessment

Quiz

Computers

11th Grade

Medium

Created by

Aileen Enriquez

Used 8+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following expression in Java:

java

int result = 5 + 3 * 2;



16

11

13

18

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Java operator is used for division?

/

*

%

-

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the value of x after the following code is executed:

int x = 10;

x += 5;

15

10

5

20

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the % operator do in Java?

Addition

Subtraction

Multiplication

Remainder

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Java, which operator is used for equality checking?

=

==

===

!=

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following code:

int a = 8;

int b = 3;

int result = a % b;

2

1

0

3

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the != operator mean in Java?

Equal to

Not equal to

Greater than or equal to

Less than or equal to

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?