Search Header Logo

Day 2 Pygame - 24th June

Authored by Coding Department

Computers

Professional Development

Used 1+ times

Day 2 Pygame - 24th June
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of screen.fill((R, G, B)) in Pygame?

To change the screen size

To draw a shape

To fill the screen with a solid color

To quit the screen

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does pygame.draw.rect(screen, RED, (50, 50, 100, 80)) do?

Draws a red circle

Draws a red rectangle

Draws a green ellipse

Draws a line

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the tuple (50, 50, 100, 80), what does 100 represent?

X-coordinate

Y-coordinate

Width of the rectangle

Height of the rectangle

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to draw an ellipse in Pygame?

pygame.draw.oval()

pygame.draw.rect()

pygame.draw.circle()

pygame.draw.ellipse()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does pygame.draw.line(screen, BLUE, (100, 200), (500, 200), 5) do?

Draws a red line

Draws a rectangle

Draws a blue line with thickness 5

Draws a white line

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the function of screen.blit(text_surface, (150, 300))?

Draws an image

Displays the text at a specific location

Draws a rectangle

Clears the screen

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to create a font object?

pygame.createFont()

pygame.font.SysFont()

pygame.font.New()

pygame.setFont()

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?