Arithmetic and Assignment Operators

Arithmetic and Assignment Operators

6th - 8th Grade

16 Qs

quiz-placeholder

Similar activities

Scratch

Scratch

7th Grade

11 Qs

Gaming Lesson 3

Gaming Lesson 3

6th - 7th Grade

17 Qs

C# review

C# review

7th - 8th Grade

15 Qs

Tekie-LogicalOperators

Tekie-LogicalOperators

4th - 10th Grade

21 Qs

G8 Python

G8 Python

8th Grade

17 Qs

Python (The Basics)

Python (The Basics)

6th - 10th Grade

20 Qs

Y8 Lent Python

Y8 Lent Python

8th Grade

15 Qs

PLTW AC Quiz 3

PLTW AC Quiz 3

6th - 8th Grade

20 Qs

Arithmetic and Assignment Operators

Arithmetic and Assignment Operators

Assessment

Quiz

Computers

6th - 8th Grade

Hard

Created by

Phor Whattha

FREE Resource

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

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?