Quiz: Pygame Zero - Keeping Score

Quiz: Pygame Zero - Keeping Score

8th Grade

10 Qs

quiz-placeholder

Similar activities

Encryption and Public Keys

Encryption and Public Keys

6th - 8th Grade

8 Qs

ICT Grade 8

ICT Grade 8

8th Grade

10 Qs

Review for Midterm Test ICT 3

Review for Midterm Test ICT 3

1st - 11th Grade

15 Qs

Guess The Youtuber

Guess The Youtuber

5th - 8th Grade

10 Qs

Python List

Python List

4th Grade - University

15 Qs

Python

Python

8th - 9th Grade

15 Qs

HEALTH AND SAFETY 9

HEALTH AND SAFETY 9

7th - 9th Grade

11 Qs

LEDs on micro:bit

LEDs on micro:bit

8th Grade

15 Qs

Quiz: Pygame Zero - Keeping Score

Quiz: Pygame Zero - Keeping Score

Assessment

Quiz

Computers

8th Grade

Practice Problem

Hard

Created by

Santos Martínez

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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?