No student devices needed. Know more
20 questions
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 -
OpenCV
unity
numpy
pygame
Which function of pygame is used to set the title ?
pygame.display.set_title()
pygame.display.set_caption()
pygame.display.set_name()
none
Which function in pygame is used to set the text position in the screen ?
gamewindow.set_position()
gamewindow.render()
gamewindow.blit()
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.window.update()
pygame.display.change()
pygame.display.change()
pygame.display.update()
Which tuple of RGB code is representing the color black ?
(255,255,255)
(0,0,0)
(0,0,255)
(0,255,0)
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.exit()
pygame.terminate()
pygame.quit()
pygame.close()
What does the following command do?
pygame.image.load()
Displays an image on the window
Loads an image from a file
Updates the window
all of the above
How can we load a sound file in pygame?
pygame.add.Sound()
pygame.sound.load()
pygame.mixer.sound()
pygame.mixer.Sound()
Every cycle of the game loop is called a ______
All user input results in an event being generated except for one.
key presses
mouse movements
voice input
joystick movements
The term blit stands for _________ and .blit() is how you copy the contents of one Surface to another.
image flipping
fill the background
block transfer
none
What do you mean by sprite in PyGame?
a softdrink
a 2D representation of something on the screen
the player's starting point
an obstacle in the game
The computational problem of detecting the intersection of two or more objects?
object transformation
intersecting objects
collision detection
object converge
The number of frames handled each second is called the _____________, and getting this right is the difference between a playable game and a forgettable one.
frame rate
time clock
clocking speed
frame buffer
It contains code that performs event handling, updates the game world's state, and draws the game world's state to the screen. This is done many times a second.
Game Loop
Game Library
Game Time
Game Structure
An error caused when a recursive function does not have a base case.
Explore all questions with a free account