Python Pygame

Python Pygame

12th Grade

22 Qs

quiz-placeholder

Similar activities

App Development

App Development

1st - 12th Grade

17 Qs

Computer Components

Computer Components

8th - 12th Grade

20 Qs

Quiz sobre PySide2

Quiz sobre PySide2

12th Grade

19 Qs

MOAC Power Point 2013 Lesson 5

MOAC Power Point 2013 Lesson 5

9th - 12th Grade

20 Qs

Circuit Playground Review I

Circuit Playground Review I

9th - 12th Grade

18 Qs

Computer Science Principles Unit 3 Pre-Assessment

Computer Science Principles Unit 3 Pre-Assessment

9th - 12th Grade

20 Qs

Python Intermediate Quiz (Including pygame)

Python Intermediate Quiz (Including pygame)

3rd - 12th Grade

20 Qs

المكتبات البرمجية

المكتبات البرمجية

12th Grade

20 Qs

Python Pygame

Python Pygame

Assessment

Quiz

Computers

12th Grade

Hard

Created by

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

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?