Term
Code
Run
100

What command is used to add the PyGame library to a program? 

PyGame кітапханасын бағдарламаға қосу үшін қандай команда қолданылады?

import pygame

100

What happens when you use pygame.display.set_caption("My first game")?

It sets the title of the game window to “My first game”.

100

How many points are used in this shape? 

pygame.draw.polygon(screen, (0, 0, 255), [(200, 400), (400, 100), (600, 400)], 7)

3 points

200

What does pygame.display.set_mode(800,700) do?

Create a game window of this size

200

What does window.fill((255, 255, 255)) do?  

It fills the entire screen with white color.  

200

What shape will be drawn on the screen? 

pygame.draw.polygon(screen, (0, 0, 255), [(200, 400), (400, 100), (600, 400)])

A triangle

300

What are (255, 0, 0), (0, 255, 0), (0, 0, 255)?

color

300

In the following code, what do the values (150, 150) represent? 

pygame.draw.circle(screen, (0, 0, 0), (150, 150), 40)

They represent the center position of the circle on the screen (x = 150, y = 150)

300

What will appear on the screen when the following code is executed?

pygame.draw.rect(screen, (0, 0, 0), (50, 50, 100, 60))

A black rectangle is drawn on the screen at position (50, 50) with width 100 and height 60.

M
e
n
u