
Week 2 - Pygame
Authored by Coding Department
Computers
Professional Development
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to initialize all Pygame modules?
pygame.start()
pygame.load()
pygame.init()
pygame.begin()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does pygame.display.set_mode((600, 400)) do?
Creates a circle
Loads an image
Creates a game window of size 600x400
Starts the game loop
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does screen.fill((255, 255, 255)) do?
Draws a rectangle
Colors the screen white
Closes the screen
Clears the window
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of pygame.display.flip()?
Ends the game
Resets the screen
Updates the screen with all changes
Saves the game
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is used to create a rectangle in Pygame?
pygame.Rect()
pygame.draw.box()
pygame.Shape()
pygame.rect()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function draws a rectangle on screen?
pygame.rect()
pygame.draw.rect()
screen.rect()
draw.rectangle()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which shape is used to draw a ball?
pygame.draw.circle()
pygame.draw.ellipse()
pygame.draw.square()
pygame.draw.ball()
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?