NEW
Font size
WorksheetsLesson 21 - pygame module
Total questions: 10
Worksheet time: 5mins
Which pygame function is used to set the size of the window?
pygame.display.set_mode()
pygame.display.set_size()
pygame.display.set_screen()
none
The python module used for making games is -
pygame
random
numpy
datetime
Which function of pygame is used to set the title ?
pygame.display.set_caption()
pygame.display.set_title()
pygame.display.set_name()
none
Which function in pygame is used to set the text position in the screen ?
gamewindow.blit()
gamewindow.render()
gamewindow.set_position()
none
Which function in pygame is used to draw rectangle ?
pygame.draw.rect()
pygame.draw.rectangle()
pygame.draw_rect()
none
How many arguments are there in drawing the rectangle ?
3
4
5
6
Which function in pygame is used to make changes to the window ?
pygame.display.update()
pygame.display.change()
pygame.window.update()
pygame.display.change()
Which tuple of RGB code is representing the color black ?
(0,0,0)
(255,255,255)
(0,255,0)
(0,0,255)
Which pygame function is used to change the font of the text ?
pygame.font.sys_font()
pygame.font()
pygame.font.system_font()
pygame.font.sys_font()
Which pygame function is used to quit the python window ?
pygame.quit()
pygame.exit()
pygame.terminate()
none
