Day 4 Pygame - 26th June
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Medium
Coding Department
Used 1+ times
FREE Resource
Enhance your content in a minute
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
Revision IT
Quiz
•
Professional Development
10 questions
Authentication and Authorization
Quiz
•
Professional Development
10 questions
Public Key Infrastructure
Quiz
•
Professional Development
10 questions
Exam Prep 2
Quiz
•
Professional Development
10 questions
Bootstrap
Quiz
•
Professional Development
10 questions
AHIA 1st Quarter Poll
Quiz
•
Professional Development
10 questions
CyberAnalysis - Язык баз данных
Quiz
•
Professional Development
10 questions
Data Management for BA Day I
Quiz
•
Professional Development
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
25 questions
Christmas Movies
Quiz
•
Professional Development
20 questions
Christmas Trivia
Quiz
•
Professional Development
15 questions
Fun Holiday Trivia
Quiz
•
Professional Development
25 questions
Name That Tune - Christmas
Quiz
•
Professional Development
29 questions
Christmas Song Emoji Pictionary
Quiz
•
Professional Development
9 questions
Holiday Movie Trivia
Lesson
•
Professional Development
34 questions
Winter Trivia
Quiz
•
Professional Development
