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():
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
20 questions
Processing- The CPU Quiz
Quiz
•
10th Grade - University
19 questions
Categories of Computers
Quiz
•
9th Grade - University
18 questions
The Rise of Intelligent Machines
Quiz
•
8th Grade - University
20 questions
WEB DESIGN QUIZ P2
Quiz
•
12th Grade
25 questions
CPA Inkscape Quiz 01
Quiz
•
7th - 12th Grade
20 questions
Skill Competition Quiz 2024
Quiz
•
10th Grade - University
27 questions
CDI - Electronic Components & Signals
Quiz
•
10th - 12th Grade
17 questions
Grade 4 Computer Science Quiz
Quiz
•
4th Grade - University
Popular Resources on Wayground
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
15 questions
Solving Equations with Variables on Both Sides Review
Quiz
•
8th Grade
