
PyGame Lesson 1-2
Authored by Quat Rahimov
Computers
12th Grade
Used 7+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which module is responsible for drawing objects in PyGame?
pygame.draw
pygame.event
pygame.image
pygame.surface
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which coordinates define the position of the top-left corner of a rectangle?
(x, y)
(width, height)
(center_x, center_y)
(radius, angle)
3.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
How do you set the background color of the screen?
By using screen.fill() with a color argument
By using pygame.background.set_color()
By using pygame.display.set_color()
By using pygame.screen.background()
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which function draws a filled circle?
pygame.draw.circle(screen, color, (x, y), radius, 0)
pygame.draw.circle(screen, color, (x, y), radius, 2)
pygame.draw.ellipse(screen, color, (x, y, width, height))
pygame.draw.circle_fill(screen, color, (x, y), radius)
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which method is used to update the screen in PyGame?
pygame.display.flip()
pygame.update()
pygame.screen.refresh()
pygame.window.refresh()
6.
MULTIPLE CHOICE QUESTION
45 sec • 10 pts
What is the width and height of the object created by the following code? pygame.draw.rect(screen, (255, 0, 0), (50, 60, 200, 100))
Width: 200, Height: 100
Width: 100, Height: 200
Width: 50, Height: 60
Width: 300, Height: 150
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which command is used to install the PyGame library?
pip install pygame
install pygame
python -m pygame install
pip pygame install
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 Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?