Day 4 Pygame - 26th June

Quiz
•
Computers
•
Professional Development
•
Medium
Coding Department
Used 1+ times
FREE Resource
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
Similar Resources on Wayground
10 questions
Blockchain Day 2 Final Quiz

Quiz
•
Professional Development
10 questions
SISD,SIMD,MISD & MIMD Architecture

Quiz
•
10th Grade - Professi...
10 questions
Kaun banega excel champ?

Quiz
•
Professional Development
10 questions
Among us youtubers

Quiz
•
KG - Professional Dev...
10 questions
Keyboard Shortcuts

Quiz
•
Professional Development
10 questions
IT ENGLISH: Technical Terminology - Activation Key

Quiz
•
Professional Development
7 questions
Undertale + AUs

Quiz
•
5th Grade - Professio...
8 questions
Roblox: Booga Booga

Quiz
•
KG - Professional Dev...
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
Discover more resources for Computers
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
5 questions
Setting goals for the year

Quiz
•
Professional Development
14 questions
2019 Logos

Quiz
•
Professional Development
6 questions
GUM Chart Scavenger Hunt

Quiz
•
Professional Development
8 questions
Understanding Government: Limited and Unlimited

Quiz
•
Professional Development
20 questions
tape measure

Quiz
•
Professional Development
24 questions
Street Signs

Quiz
•
9th Grade - Professio...