Quiz: Pygame Zero - Keeping Score

Quiz: Pygame Zero - Keeping Score

8th Grade

10 Qs

quiz-placeholder

Similar activities

Sprites, syntax, variables, and conditionals

Sprites, syntax, variables, and conditionals

6th - 8th Grade

10 Qs

Adressage IP

Adressage IP

4th Grade - Professional Development

7 Qs

TMNT quiz

TMNT quiz

8th - 11th Grade

13 Qs

SQL SELECT

SQL SELECT

8th - 10th Grade

10 Qs

ASCII + Binary Representations

ASCII + Binary Representations

5th - 12th Grade

10 Qs

Post-Test Trainocate Day-01

Post-Test Trainocate Day-01

1st - 10th Grade

15 Qs

App Lab

App Lab

6th - 9th Grade

15 Qs

IP Address and Its Classes

IP Address and Its Classes

8th Grade

11 Qs

Quiz: Pygame Zero - Keeping Score

Quiz: Pygame Zero - Keeping Score

Assessment

Quiz

Computers

8th Grade

Hard

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?