
Midterm Video Game Design (after Review)
Flashcard
•
Computers
•
10th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

25 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What is the primary purpose of an if/else statement in programming?
Back
To choose between two or more blocks of code based on a condition.
2.
FLASHCARD QUESTION
Front
What will the following code snippet output if score is 50? Options: Pass, Fail, Error, Undefined
Back
Fail
3.
FLASHCARD QUESTION
Front
Which of the following correctly implements an if/else statement?
Back
4.
FLASHCARD QUESTION
Front
Which is a valid example of using an if/else statement in a game developed with p5play? Options: To calculate the player's score after completing a level., To store the player's username in a variable., To determine if a player loses a life when colliding with an obstacle., To draw the players' avatar on the canvas.
Back
To determine if a player loses a life when colliding with an obstacle.
5.
FLASHCARD QUESTION
Front
What does the following code do in p5play if player.health is 0 (zero)? Options: Prints "Game Over", Prints "Keep Playing", Causes an error, Nothing Happens
Back
Prints "Game Over"
6.
FLASHCARD QUESTION
Front
Which statement is true about how if/else blocks behave? Options: Both the if and else blocks execute every time the condition is checked. Only the if block executes if the condition is true, and the else block executes if the condition is false. Neither block executes if the condition is false. Both blocks execute when the condition is false.
Back
Only the if block executes if the condition is true, and the else block executes if the condition is false
7.
FLASHCARD QUESTION
Front
How can you make a sound play only when a sprite collides with another sprite?
Back
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
16 questions
Phrasal Verbs Related to Food & Eating
Flashcard
•
10th Grade
20 questions
Spanish Present Tense Flashcard
Flashcard
•
9th Grade
19 questions
Respiratory System and Gas Exchange
Flashcard
•
11th Grade
15 questions
Evolution Test Review
Flashcard
•
9th Grade
13 questions
Simple Tips for Healthy Eating
Flashcard
•
10th Grade
20 questions
Mar. 12, 2021: FLASHCARD#2 : Assembly & Disassembly of Computer
Flashcard
•
9th Grade
20 questions
Fukushuu 1: Key Concepts
Flashcard
•
KG
20 questions
Soal latihan persamaan reaksi kimia
Flashcard
•
10th Grade
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade