Midterm Video Game Design (after Review)

Flashcard
•
Computers
•
10th Grade
•
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
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Blox Fruits and Roblox Flashcard

Flashcard
•
KG
24 questions
Simplify Radicals

Flashcard
•
11th Grade
21 questions
CSIM Q2 Week #7 Flashcardizz

Flashcard
•
8th Grade
20 questions
Realidades 1 3A

Flashcard
•
9th - 12th Grade
15 questions
The Most Dangerous Game

Flashcard
•
9th Grade
18 questions
Scratch Programming

Flashcard
•
9th - 12th Grade
20 questions
Scratch Test - New

Flashcard
•
9th - 12th Grade
20 questions
Simple Probability (HOTS)

Flashcard
•
10th 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
Appointment Passes Review

Quiz
•
6th - 8th 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
20 questions
Grammar Review

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

Interactive video
•
6th - 10th Grade
17 questions
[AP CSP] Binary Number System

Lesson
•
9th - 12th Grade
15 questions
1.1 Network Fundamentals Quiz

Quiz
•
10th Grade
20 questions
Understanding Information Processing Cycle

Quiz
•
10th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade