Python review

Python review

8th Grade

28 Qs

quiz-placeholder

Similar activities

EduBlocks NCCE Lesson 1-2

EduBlocks NCCE Lesson 1-2

7th - 8th Grade

25 Qs

BCHS - Y8 Python

BCHS - Y8 Python

8th Grade

25 Qs

Python

Python

6th - 8th Grade

24 Qs

Python cơ bản - ôn tập list, dictionary

Python cơ bản - ôn tập list, dictionary

8th Grade

23 Qs

SST Yr9 - Python Lists

SST Yr9 - Python Lists

8th Grade

30 Qs

Python 6 topic (lists and dictionaries)

Python 6 topic (lists and dictionaries)

5th - 12th Grade

32 Qs

Python Quiz

Python Quiz

6th - 9th Grade

23 Qs

Python review

Python review

Assessment

Quiz

Computers

8th Grade

Easy

Created by

Asma Al-Faran

Used 8+ times

FREE Resource

28 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What's a variable?

a storage box

a way to repeat code

a reuseable piece of code

a way to branch your code

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

How do you declare a variable in python?

score = 100

int score = 100;

def score(100):

score 100

3.

MULTIPLE SELECT QUESTION

30 sec • 5 pts

What are TWO ways I can add 100 to the variable "score"?

score += 100

score = score + 100

score + 100

score = 100

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which symbol represents modulo, which means to divide two numbers and keep the remainder?

%

**

//

/

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Media Image

What will this code print?

5,4,3,2,1

4,3,2,1

5,4,3,2,1,0

nothing

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What symbol do you use to make a comment in Python?
@
¬
;
#

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many lines will this code print?

x = 10

while x > 0:

print(x)

x = x - 3

5

2

3

4

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?