p5Play Project Golf & Helicopter Midterm Review w/ Annotations

Flashcard
•
Computers
•
10th Grade
•
Hard
Wayground Content
FREE Resource
Student preview

37 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What does the following code achieve in the game loop?
obstacle.move(-SPEED, 0);
Back
Moves the obstacle horizontally from right to left.
Answer explanation
The code 'obstacle.move(-SPEED, 0);' moves the obstacle horizontally by a negative value of SPEED, which translates to moving it from right to left on the screen. Thus, the correct answer is that it moves the obstacle horizontally from right to left.
2.
FLASHCARD QUESTION
Front
Which condition ensures that the obstacle resets to the right side of the screen after hitting the left side?
Back
3.
FLASHCARD QUESTION
Front
What does the clicking Boolean variable do in this project?
Back
It determines whether the helicopter should move upward or downward.
Answer explanation
The clicking Boolean variable is crucial as it determines the helicopter's movement direction. When true, it allows the helicopter to move upward, while false would typically mean it moves downward.
4.
FLASHCARD QUESTION
Front
How does the value of dy change as the game loop runs?
Back
dy increases or decreases each time through the game loop based on conditions.
Answer explanation
The correct choice is that dy increases or decreases each time through the game loop based on conditions. This means dy is dynamic and can change depending on the game's state, rather than being constant or reset.
5.
FLASHCARD QUESTION
Front
What is the purpose of the MAX_DY constant in the game?
Back
It ensures the helicopter’s vertical speed does not exceed a certain limit.
Answer explanation
The MAX_DY constant is crucial as it limits the helicopter's vertical speed, preventing it from moving too fast and ensuring smoother gameplay. This helps maintain control and enhances the player's experience.
6.
FLASHCARD QUESTION
Front
Which condition ensures the helicopter stays within the screen boundaries?
Back
7.
FLASHCARD QUESTION
Front
How is the “You Lose” message displayed when the helicopter hits the top or bottom of the screen?
Back
Create a free account and access millions of resources
Similar Resources on Wayground
37 questions
AP CSP Exam Review

Flashcard
•
9th - 12th Grade
35 questions
CODE.ORG FINAL

Flashcard
•
8th Grade
30 questions
AP CSA Unit 2 Review

Flashcard
•
10th - 12th Grade
33 questions
Python Functions Review Flashcard

Flashcard
•
9th - 12th Grade
20 questions
Scratch Programming Review

Flashcard
•
9th Grade
37 questions
AP CSP Pseudocode Assessment

Flashcard
•
9th - 12th Grade
25 questions
Rhetorical Appeals & Devices

Flashcard
•
11th Grade
26 questions
Code.org: Unit 2 Lesson 1-13 Flashcard

Flashcard
•
9th - 12th Grade
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
9/11 Experience and Reflections

Interactive video
•
10th - 12th 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
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade