Quiz: Pygame Zero - Keeping Score
Quiz
•
Computers
•
8th Grade
•
Practice Problem
•
Hard
Santos Martínez
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What should be the initial value of the score variable?
1
0
10
5
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
How do we increase the score when the spaceship catches the gem?
score = score + 1
score = score - 1
score = score * 2
score = score / 2
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What keyword is used to access a global variable inside a function?
local
var
nonlocal
global
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
How do we update the x-coordinate of the ship when moving left 5 pixels?
ship.x = ship.x / 2
ship.x = ship.x - 5
ship.x = ship.x + 5
ship.x = ship.x * 2
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the purpose of the draw() function in the program?
To display visuals on the screen
To handle keyboard input
To move the gem
To update the score
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the color of the text used to display the score?
screen.draw.text('Score: ' + str(score), (15,10), color=(255,255,255), fontsize=30)
White
Blue
Green
Red
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the size of the font used to display the score?
screen.draw.text('Score: ' + str(score), (15,10), color=(255,255,255), fontsize=30)
30
35
20
25
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Bitmap v Vector Images
Quiz
•
KG - University
13 questions
Legislation - Symbols and meanings
Quiz
•
6th - 8th Grade
15 questions
[RB3-Ch7] Data Verification & Validation
Quiz
•
6th - 8th Grade
11 questions
Excel
Quiz
•
1st - 10th Grade
12 questions
H7.P1&P2.Nova2.Geluid.mhv
Quiz
•
4th - 10th Grade
10 questions
R082 Book Cover Assets planning
Quiz
•
7th - 12th Grade
10 questions
AI QUIZ
Quiz
•
6th - 8th Grade
15 questions
UJIAN PRAKTEK TIK KELAS 8
Quiz
•
8th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
