Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Python L29 Snake Game

Total questions: 10

Worksheet time: 10mins

Name
Class
Date
1.

What does .penup() do in the snake game?

a)

Speeds up the turtle

b)

Stops the turtle from drawing

c)

Moves the turtle backward

d)

Changes the color

2.

Why is .tracer(0) used in animation?

a)

To freeze the screen permanently

b)

To slow down the turtle

c)

To allow manual control of screen updates

d)

To increase loop speed

3.

What does this code do?

a)

Adds a new segment

b)

Moves the tail

c)

Moves the snake’s head forward

d)

Rotates all segments

4.

s.listen() is required before setting onkey().

a)

True

b)

False

5.

The loop for num in range(len(all_body)-1, 0, -1): moves the head forward first.

a)

True

b)

False

6.

Match the turtle command to its purpose:

a)

Moves turtle without drawing

1.

.penup()

b)

Moves turtle to specific coordinates

2.

.goto(x, y)

c)

Moves turtle ahead by 20 pixels

3.

.forward(20)

7.

Categorize each item into the correct group:

Categorize the following
[Screen Setup]
[Snake Movement]
8.

To stop the turtle from drawing lines when moving, we use (a)   ().

9.

To update the screen manually after movement, we use ​ (a)   .

Choose from the below words
s.update()
time.sleep()
import random
exitonclick()
10.

What is the benefit of using a loop to create the snake body?

a)

Reduces repetitive code

b)

Allows random colors for each segment

c)

Automatically makes the snake faster