Day 4 Pygame - 26th June

Day 4 Pygame - 26th June

Professional Development

5 Qs

quiz-placeholder

Similar activities

Ngobras Juni 2021

Ngobras Juni 2021

Professional Development

10 Qs

Minecraft Mob quiz

Minecraft Mob quiz

KG - Professional Development

10 Qs

ICT Assessment

ICT Assessment

Professional Development

10 Qs

Table relationships, SQL and Pandas joins

Table relationships, SQL and Pandas joins

Professional Development

10 Qs

Microsoft 365 for Teachers

Microsoft 365 for Teachers

Professional Development

10 Qs

ict exam

ict exam

KG - Professional Development

10 Qs

CyberLeague

CyberLeague

Professional Development

9 Qs

Bài 3 - Giới thiệu giao diện Photoshop

Bài 3 - Giới thiệu giao diện Photoshop

Professional Development

10 Qs

Day 4 Pygame - 26th June

Day 4 Pygame - 26th June

Assessment

Quiz

Computers

Professional Development

Practice Problem

Medium

Created by

Coding Department

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of pygame.key.get_pressed()?

To draw a shape

To load a background

To check which keys are currently being pressed

To exit the program

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which key constant is used to detect the left arrow key?

pygame.KEY_LEFT

pygame.LEFT_ARROW

pygame.K_LEFT

pygame.ARROW_LEFT

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If you want the player to move left using the keyboard, which code will you use?

player_x += speed

player_y += speed

player_x -= player_speed

player_y -= player_speed

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How would you detect if the player presses the W key?

keys["W"] == True

if key == W:

if keys[pygame.K_w]:

if key.pressed("W"):

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which line of code allows the player to move downward?

player_y -= player_speed

player_y += player_speed

player_x += player_speed

player_x -= player_speed