NEW
Font size
WorksheetsBasketball Game Quiz
Total questions: 25
Worksheet time: 13mins
What is the main objective of this basketball game?
To perform double jumps on platforms
To throw a basketball through a moving hoop
To collect bonus items for extra points
To race against a timer
Which creator is presenting this tutorial?
Mark Rober
Al Sweigart
James Lee
John Doe
What additional element does this game include compared to the double jump demo?
A moving background
A basketball that can be thrown
Extra enemies
Power-ups
What is unique about the basketball in the game?
It is used to jump over obstacles
It is thrown through a hoop that moves around
It is the only object that changes color
It serves as the main character
What is the first step Al instructs when starting the project?
Load a pre-made backdrop
Click on the Create button to start the Scratch editor
Import a custom sprite
Immediately code the jumping animation
Which previous demo does Al mention that the basketball game’s code resembles?
The Maze Runner demo
The double jump demo
The color wheel demo
The optical illusion demo
What basic movement does the game code include for the cat?
Sliding on walls
Moving left/right with a walking animation and jumping
Flying with jetpacks
Teleporting across the stage
Which event block is used first in the cat’s movement code?
When key pressed
When green flag clicked
When space key pressed
When backdrop switches
How does the code detect leftward movement?
By checking for the left arrow key press
By sensing the mouse pointer
By checking for the “A” key
By using a random generator
What is the primary action performed when the left arrow key is pressed?
The cat rotates 90° clockwise
The cat faces left and moves 10 steps
The cat jumps
The cat switches costumes without moving
What does Al use to ensure the walking animation appears?
A “switch costume” block from the purple Looks category
A “glide” block from the Motion category
A “hide” block from the Control category
A “broadcast” block from the Events category
How is the rightward movement code created?
By writing new code from scratch
By duplicating the leftward code and modifying key assignments
By using a “mirror” block
By reversing the walking animation
What adjustment is made to the sprite’s rotation style?
Set to “all around”
Set to “left-right” so the cat always stays upright
Set to “no rotation”
Set to “90-degree increments”
Which variable is created to implement gravity?
Gravity Force
Cat Falling Speed
Jump Strength
Fall Timer
What condition is checked to prevent the cat from falling past the ground?
If the cat’s y position is greater than 0
If the cat’s y position is less than –130
If the cat’s x position is less than –240
If the cat’s rotation is too high
When the cat’s y position is below ground level, what happens?
The cat disappears
The cat’s y position is reset to –130 and falling speed is set to zero
The cat bounces up
The cat’s costume changes
How is the cat’s falling speed applied to its movement?
By setting the y position directly
By changing y by the current value of cat falling speed
By using a glide block
By switching costumes
Under what condition is the cat allowed to jump?
Only when the cat is in midair
Only when the cat’s y position is exactly –130
Anytime the up arrow is pressed
Only when the score is above 10
What change is made to the cat falling speed when the up arrow key is pressed?
It is set to a negative number
It is set to a positive number (e.g., 20) to make the cat jump
It is doubled
It is reset to zero
Which sprite is added next to implement the basketball mechanic?
A custom drawn ball
The pre-made Basketball sprite from the library
A clone of the cat sprite
A hoop sprite
How does the basketball initially behave when the game starts?
It is visible on the stage
It remains hidden until the space key is pressed
It immediately begins moving
It rotates continuously
Which variable is created to keep track of the game score?
Points
BasketCount
Score
GamePoints
What variable is created specifically for the basketball’s motion?
BasketballSpeed
BasketballFallingSpeed
Ball Velocity
Hoop Impact
How is a basket detected in the game?
When the basketball touches any part of the hoop sprite
When the basketball touches a new sprite called “hoop center” (a single white pixel)
When the basketball reaches a specific x-coordinate
When the basketball’s speed exceeds a threshold
What additional condition is added to ensure a basket only counts once per throw?
A variable named “madeBasket” is set to false at the start and then true once a score is registered
The score increases automatically with every loop iteration
The basketball disappears immediately after touching the hoop
The hoop changes color to indicate a successful basket
