wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Lesson 21 - pygame module

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Which pygame function is used to set the size of the window?

a)

pygame.display.set_mode()

b)

pygame.display.set_size()

c)

pygame.display.set_screen()

d)

none

2.

The python module used for making games is -

a)

pygame

b)

random

c)

numpy

d)

datetime

3.

Which function of pygame is used to set the title ?

a)

pygame.display.set_caption()

b)

pygame.display.set_title()

c)

pygame.display.set_name()

d)

none

4.

Which function in pygame is used to set the text position in the screen ?

a)

gamewindow.blit()

b)

gamewindow.render()

c)

gamewindow.set_position()

d)

none

5.

Which function in pygame is used to draw rectangle ?

a)

pygame.draw.rect()

b)

pygame.draw.rectangle()

c)

pygame.draw_rect()

d)

none

6.

How many arguments are there in drawing the rectangle ?

a)

3

b)

4

c)

5

d)

6

7.

Which function in pygame is used to make changes to the window ?

a)

pygame.display.update()

b)

pygame.display.change()

c)

pygame.window.update()

d)

pygame.display.change()

8.

Which tuple of RGB code is representing the color black ?

a)

(0,0,0)

b)

(255,255,255)

c)

(0,255,0)

d)

(0,0,255)

9.

Which pygame function is used to change the font of the text ?

a)

pygame.font.sys_font()

b)

pygame.font()

c)

pygame.font.system_font()

d)

pygame.font.sys_font()

10.

Which pygame function is used to quit the python window ?

a)

pygame.quit()

b)

pygame.exit()

c)

pygame.terminate()

d)

none