Pygame Shapes

Pygame Shapes

8th Grade

15 Qs

quiz-placeholder

Similar activities

G8_Graphics Window_Drawing Lines

G8_Graphics Window_Drawing Lines

7th - 9th Grade

15 Qs

Snake Game

Snake Game

3rd - 8th Grade

15 Qs

3.1 & 3.2 Test

3.1 & 3.2 Test

6th - 8th Grade

11 Qs

Пайтон, pygame

Пайтон, pygame

6th - 8th Grade

18 Qs

Intro into Computer Science

Intro into Computer Science

8th Grade

20 Qs

Пајгејм 01

Пајгејм 01

7th - 8th Grade

10 Qs

Informatika VIII - Inicijalni

Informatika VIII - Inicijalni

8th Grade

10 Qs

Управление персонажем с клавиатуры

Управление персонажем с клавиатуры

KG - 9th Grade

10 Qs

Pygame Shapes

Pygame Shapes

Assessment

Quiz

Computers, Education

8th Grade

Medium

Used 10+ times

FREE Resource

15 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()

DISPLAY = 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

Draw a Rectangle

DISPLAY = pygame.display.set_mode([400,300])

pygame.draw.rect(DISPLAY, color, [30, 30, 60, 60])

pygame.draw.line(DISPLAY, color, [20, 50], [180, 50], 3)

pygame.draw.circle(DISPLAY, color, [300, 300], 200, 3)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Draw a Circle

pygame.draw.arc(DISPLAY, color, [50, 50, 200, 200], 0, pi, 2)

pygame.draw.rect(DISPLAY, color, [30, 30, 60, 60])

pygame.draw.circle(DISPLAY, color, [20, 50], [180, 50], 3)

pygame.draw.circle(DISPLAY, color, (300, 300), 20)

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?