
Day 4 Pygame - 26th June
Authored by Coding Department
Computers
Professional Development
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
DBMS Quiz1
Quiz
•
University - Professi...
10 questions
Linux
Quiz
•
Professional Development
10 questions
Mothers Competition
Quiz
•
Professional Development
10 questions
Perform Word Processing
Quiz
•
Professional Development
10 questions
Горячие клавиши M.Word
Quiz
•
1st Grade - Professio...
10 questions
Encuentro #TEAMLABOT
Quiz
•
Professional Development
10 questions
Internets
Quiz
•
Professional Development
10 questions
Subscriber Internet Telepon
Quiz
•
Professional Development
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
15 questions
LOTE_SPN2 5WEEK3 Day 2 Itinerary
Quiz
•
Professional Development
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
20 questions
90s Cartoons
Quiz
•
Professional Development
42 questions
LOTE_SPN2 5WEEK2 Day 4 We They Actividad 3
Quiz
•
Professional Development
6 questions
Copy of G5_U6_L3_22-23
Lesson
•
KG - Professional Dev...
20 questions
Employability Skills
Quiz
•
Professional Development