Search Header Logo

Day 8 Pygame : 3rd July

Authored by Coding Department

Computers

Professional Development

Used 1+ times

Day 8 Pygame : 3rd July
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What keyword is used to stop the game when the condition is met?

end_game = True

gameOver()

exit()

game_over = True

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens when the SPACE key is pressed and the game is over?

The window closes

The game restarts from the beginning

The game pauses

A new level starts

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these lines is used to display the score on the screen?

print(score)

screen.blit("Score: ", score)

font.render(score)

screen.blit(score_text, (10, 10))

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to show text like “GAME OVER” in Pygame?

pygame.show_text()

font.render()

draw.text()

pygame.display_text()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why do we use pygame.font.SysFont("Arial", 30)?

To draw shapes

To load images

To set up a font for writing text

To load background music

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?