Arithmetic and Assignment Operators

Arithmetic and Assignment Operators

6th - 8th Grade

16 Qs

quiz-placeholder

Similar activities

Python

Python

7th - 8th Grade

12 Qs

year 8 lesson 2 quiz - python

year 8 lesson 2 quiz - python

8th - 10th Grade

14 Qs

Python basics

Python basics

2nd - 9th Grade

20 Qs

Python Strings

Python Strings

8th - 12th Grade

14 Qs

Python basics

Python basics

6th - 8th Grade

15 Qs

Learn to Code 1 Test

Learn to Code 1 Test

6th Grade

20 Qs

Intro to Python

Intro to Python

6th - 8th Grade

20 Qs

Python (The Basics)

Python (The Basics)

6th - 10th 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?