Python Pygame
Flashcard
•
Computers
•
12th Grade
•
Practice Problem
•
Hard
Dinara Abdrakhmanova
Used 1+ times
FREE Resource
Student preview

20 questions
Show all answers
1.
FLASHCARD QUESTION
Front
How do I import the pygame library?
Back
import pygame
2.
FLASHCARD QUESTION
Front
How do I initialize the pygame?
Back
pygame.init()
3.
FLASHCARD QUESTION
Front
How do I initialize the surface? Options: import pygame, pygame.init(), surface = pygame.display.set_mode((400,300)), pygame.display.flip()
Back
surface = pygame.display.set_mode((400,300))
4.
FLASHCARD QUESTION
Front
How do I update the screen?
Back
pygame.display.flip()
5.
FLASHCARD QUESTION
Front
What does display.flip() do?
Back
will update the contents of the entire display
6.
FLASHCARD QUESTION
Front
What does display.update() do?
Back
allows to update a portion of the screen, instead of the entire area of the screen
7.
FLASHCARD QUESTION
Front
How can I check for an event if a user has pushed any event in the queue?
Back
run = True
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
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
13 questions
Water Properties
Flashcard
•
12th Grade
15 questions
Simple Machines
Flashcard
•
KG - University
15 questions
Ch. 4 Test Review
Flashcard
•
11th - 12th Grade
15 questions
Volcanoes Review
Flashcard
•
12th Grade
15 questions
Absorption and Reflection part 2: The Color Theory Flashcard
Flashcard
•
12th Grade
15 questions
ROCKS AND MINERALS
Flashcard
•
12th Grade
15 questions
Ossification review
Flashcard
•
12th Grade
15 questions
(MCA) 4.3 (Flashcard) Graphing and Writing linear equations.
Flashcard
•
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