Day 1 Pygame - 23rd June

Day 1 Pygame - 23rd June

Professional Development

8 Qs

quiz-placeholder

Similar activities

Day 3 Pygame - 25th June

Day 3 Pygame - 25th June

Professional Development

5 Qs

COMPUTERS

COMPUTERS

Professional Development

10 Qs

Python Level 2 - Lesson 8

Python Level 2 - Lesson 8

Professional Development

10 Qs

Day 7 Pygame : 2nd July

Day 7 Pygame : 2nd July

Professional Development

5 Qs

Tkinter

Tkinter

University - Professional Development

7 Qs

บทที่ 8 การปรับมุมมองการทำงานและการใช้เครื่องมือในพื้นฐาน

บทที่ 8 การปรับมุมมองการทำงานและการใช้เครื่องมือในพื้นฐาน

University - Professional Development

10 Qs

Проверяю знания и изучаю PyGame

Проверяю знания и изучаю PyGame

Professional Development

12 Qs

Quiz-1 tkinter

Quiz-1 tkinter

University - Professional Development

11 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)