
Pygame: Exercises
Quiz
•
Computers
•
11th Grade
•
Practice Problem
•
Hard
Rabiya Zhexembayeva
FREE Resource
Enhance your content in a minute
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does this code do? pygame.display.update()
a. Nothing.
b. Clears the screen.
c. Displays everything that has been drawn so far.
d. Flips the screen from left to right.
e. Flips the screen from top to bottom.
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Should the following line go inside, or outside, of the game loop?
a. Outside the loop, because it isn’t a good idea to load the image from the disk 20 times per second.
b. Inside the loop, because the background image needs to be redrawn every frame.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Changing the tick value from 20 to 30 will cause what to happen? clock.tick(20)
a. Nothing.
b. The game will run faster.
c. The game will run slower.
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is a game loop?
a. It processes user input, updates objects, and draws the screen in each frame of the game.
b. It runs once for the entire game.
c. It loops once for each life that the player has.
d. It loops once for each level of the game.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Where does this code go? clock = pygame.time.Clock()
a. The code is placed after the game loop.
b. The code is placed inside the game loop.
c. This code is placed before the game loop.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the following code, what does the [0, 0] do?
a. Sets the size of the image.
b. Specifies the x and y of the top left coordinate of where to start drawing the bitmap on the screen.
c. Draw the bitmap in the center of the screen.
7.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
What types of image file formats are lossless (i.e., they do not change the image)? Choose the best answer.
d. jpg
e. gif
c. png
b. png, gif
a. png, jpg, gif
Create a free account and access millions of resources
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?
Similar Resources on Wayground
10 questions
DTJSQuiz
Quiz
•
11th Grade
10 questions
ID Quiz
Quiz
•
11th Grade
10 questions
Latency and Bandwidth
Quiz
•
10th - 11th Grade
15 questions
Internet Safety Quiz
Quiz
•
9th - 12th Grade
10 questions
Scratch (28th March)
Quiz
•
KG - University
10 questions
Berfikir Komputesional
Quiz
•
9th - 12th Grade
10 questions
R082 Book Cover Assets planning
Quiz
•
7th - 12th Grade
10 questions
Hệ Điều Hành Của Máy Tính
Quiz
•
10th Grade - University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
15 questions
Christmas Song Emoji Pictionary
Quiz
•
7th - 12th Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
29 questions
christmas facts
Lesson
•
5th - 12th Grade
20 questions
Christmas Trivia
Quiz
•
5th - 12th Grade
20 questions
Stages of Meiosis
Quiz
•
9th - 12th Grade
20 questions
christmas songs
Quiz
•
KG - University
