Search Header Logo

Arithmetic and Assignment Operators

Authored by Phor Whattha

Computers

6th - 8th Grade

Arithmetic and Assignment Operators
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

Media Image

1. What is the value of x after the following code?

10

5

15

20

2.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

Media Image

What will this code print?

20

5

16

8

3.

FILL IN THE BLANK QUESTION

45 sec • 2 pts

Media Image

Write the missing operator in this code to multiply z by 3:

4.

FILL IN THE BLANK QUESTION

45 sec • 2 pts

Media Image

Complete the code to add 10 to the variable a:

5.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

Media Image

This code will give the result 3

True

False

Maybe

Answer explanation

x %= 7 is the same as x = x % 7. So, 10 % 7 gives a remainder of 3.

6.

FILL IN THE BLANK QUESTION

45 sec • 2 pts

Media Image

Fill in the blank to decrease value by 50% of its current value

7.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

Media Image

What will this code print?

50

30

40

60

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?