Search Header Logo

Week 2 - Pygame 17th July

Authored by Coding Department

Computers

Professional Development

Used 2+ times

Week 2 - Pygame 17th July
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to initialize all Pygame modules?

pygame.start()

pygame.load()

pygame.init()

pygame.begin()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does pygame.display.set_mode((600, 400)) do?

Creates a circle

Loads an image

Creates a game window of size 600x400

Starts the game loop

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does screen.fill((255, 255, 255)) do?

Draws a rectangle

Colors the screen white

Closes the screen

Clears the window

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of pygame.display.flip()?

Ends the game

Resets the screen

Updates the screen with all changes

Saves the game

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is used to create a rectangle in Pygame?

pygame.Rect()

pygame.draw.box()

pygame.Shape()

pygame.rect()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function draws a rectangle on screen?

pygame.rect()

pygame.draw.rect()

screen.rect()

draw.rectangle()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which shape is used to draw a ball?

pygame.draw.circle()

pygame.draw.ellipse()

pygame.draw.square()

pygame.draw.ball()

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?