

Pygame Tutorial 4 Optimization & OOP Flashcard
Flashcard
•
Computers
•
10th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

15 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What is the main focus of the tutorial?
Back
Optimizing code using OOP
2.
FLASHCARD QUESTION
Front
What library is used in the tutorial?
Back
Pygame
3.
FLASHCARD QUESTION
Front
What is the purpose of the 'player' class in the code?
Back
To manage player attributes and actions
4.
FLASHCARD QUESTION
Front
Which function is responsible for updating the game window? Options: updateWindow(), redrawGameWindow(), displayUpdate(), refreshScreen()
Back
redrawGameWindow()
5.
FLASHCARD QUESTION
Front
What is the initial value of 'man.jumpCount'?
Back
10
6.
FLASHCARD QUESTION
Front
What does the 'pygame.display.set_mode' function do?
Back
Creates a window for display
7.
FLASHCARD QUESTION
Front
Which key is used to make the player jump? Options: pygame.K_RETURN, pygame.K_DOWN, pygame.K_UP, pygame.K_SPACE
Back
pygame.K_SPACE
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?