Python Pygame
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Hard
Динара Тлеккабылова
Used 50+ times
FREE Resource
Enhance your content in a minute
22 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do I import the pygame library?
import pygame
pygame.init()
surface = pygame.display.set_mode((400,300))
pygame.display.flip()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do I initialize the pygame?
import pygame
pygame.init()
surface = pygame.display.set_mode((400,300))
pygame.display.flip()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do I initialize the surface?
import pygame
pygame.init()
surface = pygame.display.set_mode((400,300))
pygame.display.flip()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do I update the screen?
import pygame
pygame.init()
surface = pygame.display.set_mode((400,300))
pygame.display.flip()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does display.flip() do?
will update the contents of the entire display
allows to update a portion of the screen, instead of the entire area of the screen
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does display.update() do?
will update the contents of the entire display
allows to update a portion of the screen, instead of the entire area of the screen
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can I check for an event if a user has pushed any event in the queue?
run = False
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = True
run = True
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
for event in pygame.event.pos():
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?
Similar Resources on Wayground
18 questions
Adobe Illustrator Tools
Quiz
•
10th - 12th Grade
20 questions
Microsoft Excel
Quiz
•
KG - Professional Dev...
20 questions
1.4 Logic Gate
Quiz
•
12th Grade
20 questions
MS Word Shortcut
Quiz
•
9th - 12th Grade
17 questions
Week #7 - Time Machine
Quiz
•
8th Grade - University
17 questions
Python Basics or Syntax
Quiz
•
9th - 12th Grade
20 questions
Word 2016 - Lessons 1 & 2
Quiz
•
9th - 12th Grade
20 questions
Semester 1 - Microsoft Word
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
