Search Header Logo

Arithmetic Operators and Decisions

Authored by Aileen Enriquez

Computers

11th Grade

Used 8+ times

Arithmetic Operators and Decisions
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

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?