Day 1 Pygame - 23rd June

Day 1 Pygame - 23rd June

Professional Development

8 Qs

quiz-placeholder

Similar activities

Tkinter

Tkinter

Professional Development

9 Qs

Day 8 Pygame : 3rd July

Day 8 Pygame : 3rd July

Professional Development

5 Qs

Pygame М1У1

Pygame М1У1

Professional Development

5 Qs

Day 3 Pygame - 25th June

Day 3 Pygame - 25th June

Professional Development

5 Qs

Game development using Pygame

Game development using Pygame

Professional Development

3 Qs

Day 5 Pygame - 30th June

Day 5 Pygame - 30th June

Professional Development

5 Qs

Computer health and safety

Computer health and safety

11th Grade - Professional Development

13 Qs

Microsoft PowerPoint 2019

Microsoft PowerPoint 2019

Professional Development

10 Qs

Day 1 Pygame - 23rd June

Day 1 Pygame - 23rd June

Assessment

Quiz

Computers

Professional Development

Easy

Created by

Coding Department

Used 1+ times

FREE Resource

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does pygame.init() do?

Starts the game loop

Draws shapes on the screen

Initializes all the Pygame modules

Creates the game window

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of pygame.display.set_mode((width, height))?

Set the frame rate

Play background music

Set the title of the window

Create a window of specific width and height

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does pygame.display.set_caption("Game Title") do?

Sets the window size

Shows the title in the window’s title bar

Starts the game loop

Displays text on the screen

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main purpose of the game loop (while run:)?

To initialize the screen

To draw only one frame

To keep checking for input and updating the game until quit

To close the game

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which event type is triggered when the user clicks the close (X) button on the window?

pygame.KEYDOWN

pygame.MOUSEBUTTONDOWN

pygame.QUIT

pygame.CLOSEWINDOW

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What function is used to check for user input events like key presses or mouse clicks?

pygame.get_events()

pygame.handle_events()

pygame.event.get()

pygame.read.input()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the role of pygame.display.update() in the game loop?

Initializes the display

Quits the game

Updates the game title

Makes drawing and screen changes visible

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the screen coordinates of the top-left corner in a 600x500 window?

(600, 0)

(0, 0)

(300, 250)

(0, 500)