Quiz: Pygame Zero - Keeping Score

Quiz
•
Computers
•
8th Grade
•
Hard
Santos Martínez
FREE Resource
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
Similar Resources on Wayground
10 questions
Algorithms & Pseudocode

Quiz
•
8th - 12th Grade
15 questions
check point 2 review

Quiz
•
KG - 12th Grade
10 questions
Construct 3 Quiz - Game Development

Quiz
•
2nd Grade - Professio...
10 questions
Variables and ifs in p5.js

Quiz
•
8th Grade
15 questions
Scratch

Quiz
•
6th - 8th Grade
15 questions
Кодирование графической информации

Quiz
•
8th Grade
10 questions
Computer keyboard shortcut keys

Quiz
•
5th - 10th Grade
15 questions
App Lab

Quiz
•
6th - 9th Grade
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade