Search Header Logo

Quiz: Pygame Zero - Keeping Score

Authored by Santos Martínez

Computers

8th Grade

Quiz: Pygame Zero - Keeping Score
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?