Python Pygame

Quiz
•
Computers
•
12th Grade
•
Hard

Динара Тлеккабылова
Used 50+ times
FREE Resource
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
Similar Resources on Wayground
17 questions
1.1.3. Input, Output and Storage

Quiz
•
12th Grade
18 questions
MYP Command Terms For Design

Quiz
•
6th - 12th Grade
21 questions
Arduino

Quiz
•
6th - 12th Grade
20 questions
Python Intermediate Quiz (Including pygame)

Quiz
•
3rd - 12th Grade
20 questions
Components of a Computer System

Quiz
•
9th - 12th Grade
17 questions
April Revision APCSP

Quiz
•
12th Grade
17 questions
Computer Basics: Basic Parts of a Computer Quiz By Mr. B

Quiz
•
12th Grade - University
20 questions
CSS Quiz

Quiz
•
7th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade