WorksheetsSnakegame_quiz
Total questions: 8
Worksheet time: 4mins
What data structure is used to store the snake’s body segments?
Tuple
Dictionary
List
Set
Which line prevents the snake from moving in the opposite direction instantly?
if head.direction != "down"
time.sleep(0.1)
head.goto(0,0)
screen.listen()
When does the game reset the snake to the center?
When wall collision occurs
When arrow key is pressed
When food is eaten
When arrow key is pressed
Which condition checks for wall collision?
head.xcor() > 290
len(segments) == 0
score == 0
head.distance(food) < 20
What is the purpose of time.sleep(0.1) in the game loop?
To slow down the snake movement
To delay sound
To reset the score
To stop the game
Which module provides the sleep() function?
time
random
turtle
winsound
On which operating system does winsound work?
windows
Linux
unix
Mac
What does winsound.Beep(1000, 150) mean?
Frequency 1000 Hz for 150 ms
. Pitch 150 Hz for 1000 ms
Random sound
Volume 1000 for 150 seconds
