Python Pygame

Python Pygame

12th Grade

22 Qs

quiz-placeholder

Similar activities

นอกตาราง แอนิเมชั่น สัปดาห์ที่ 4

นอกตาราง แอนิเมชั่น สัปดาห์ที่ 4

12th Grade

20 Qs

XI RPL - PHP

XI RPL - PHP

12th Grade

20 Qs

Python Recap

Python Recap

7th Grade - University

20 Qs

Teknik Pengolahan Audio dan Video

Teknik Pengolahan Audio dan Video

12th Grade

20 Qs

CSS - Computer Systems Services

CSS - Computer Systems Services

12th Grade

20 Qs

UNIT 3- DATA COMMUNICATION

UNIT 3- DATA COMMUNICATION

12th Grade

20 Qs

System Computer : Al-Azhar

System Computer : Al-Azhar

9th - 12th Grade

20 Qs

ITN_Explore the networks_1.1 Globally connected

ITN_Explore the networks_1.1 Globally connected

11th Grade - University

20 Qs

Python Pygame

Python Pygame

Assessment

Quiz

Computers

12th Grade

Practice Problem

Hard

Created by

Динара Тлеккабылова

Used 50+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?