by BlastRoom
Practice predicting and designing block scripts that use events, loops, and conditionals.
#computer_science

30 questions
One question set, multiple game modes. Tap any game to see it in action. Not sure which to pick?
Answer to place stones and capture territory.
Outrun the snow together.
Earn blasts, then hunt the other team.
Answer to earn energy, then climb.

The class blasts through walls together.
Bid on mystery lots. Most money wins.
Sell tours. Nice, standard, or a total scam.
Answer, restock, and serve the rush.
More correct answers pulls the rope your way.
Answer, then shoot down the alien wave.
Answer, then tap to leap the frozen ridge.
A robot starts on tile 1. Coins are on tiles 1, 3, and 6. Its script is: repeat 5 times [ if there is a coin here [ collect coin ]; move forward ]. How many coins does it collect?
A script is: set total to 0; set number to 0; repeat 4 times [ change number by 1; if number is even [ change total by 1 ] ]. What is total at the end?
A character starts at position 0. The script is: repeat 3 times [ move 2 steps; if position = 4 [ say "Here!" ] ]. How many times does it say "Here!"?
A script is: set score to 1; repeat 4 times [ if score < 3 [ change score by 2 ] else [ change score by 1 ] ]. What is the final score?
A script is: set count to 0; repeat 5 times [ change count by 1; if count = 3 [ stamp ] ]. How many stamps are made?
A character uses: set turn to 0; repeat 4 times [ change turn by 1; if turn > 2 [ move 10 steps ] ]. How many times does it move?
A script is: set number to 5; repeat 3 times [ if number > 3 [ change number by -1 ]; say number ]. What does the character say?
A robot starts on tile 2. Coins are on tiles 2, 4, and 5. Its script is: repeat 4 times [ if there is a coin here [ collect coin ]; move forward ]. How many coins does it collect?
A script contains: repeat 7 times [ move 10 steps ]. How many times does the move block run?
A script is: set count to 0; repeat until count = 10 [ change count by 3 ]. What happens?
A script is: set n to 1; repeat until n > 5 [ change n by 2 ]. How many times does the loop body run?
A script is: set lives to 0; repeat until lives = 0 [ change lives by -1 ]. How many times does the loop body run?
A script is: repeat 3 times [ repeat 2 times [ play a sound ] ]. How many times does the sound play?
A script is: set distance to 8; repeat until distance = 0 [ change distance by -2 ]. How many times does the loop body run?
A game should check the score repeatedly and show "You win" as soon as score reaches 20, while play continues. Which arrangement works?
A character should jump whenever the space key is currently pressed during a game. Which control structure fits?
A robot should continue moving and collecting apples until it has collected 10 apples. Which structure best matches this behavior?
A character must turn left when it touches a wall and otherwise keep moving forward. Which arrangement works?
A drum pattern must play exactly four beats, one after another. Which block structure is most appropriate?
A project should reset the timer whenever it receives the message "new round." Which block should begin that script?
A character should say "Hot!" only on lava tiles while walking across 10 tiles. The faulty script is: repeat 10 times [ move forward; say "Hot!" ]. Which change fixes it?
A character should move five times and then say "Finished" once. The current script is: repeat 5 times [ move 10 steps; say "Finished" ]. What repair is needed?
A robot should inspect every tile on a path and collect a coin whenever one is present. The faulty script is: if there is a coin here [ collect coin ]; repeat 8 times [ move forward ]. Which repair is needed?
A character should announce "Bonus" whenever score is 50 or more. The faulty script is: forever [ if score > 50 [ say "Bonus" ] ]. How should it be repaired?
A robot should move forward until it reaches a goal. The faulty script is: repeat until at goal [ ]; move forward. Which repair is needed?
One script says: when the program starts [ forever [ move 5 steps ] ]. Another says: when the space key is pressed [ turn right 90 degrees ]. After the program starts, the user presses space once. What happens?
A character has two scripts that both start when it is clicked. Script A plays a sound. Script B switches to the next costume. What happens when the user clicks the character once?
A script triggered by the green flag counts from 1 to 5, pausing between numbers. While it is paused at 3, the user presses a key that triggers another script to say "Go!" What happens?
Script A: when the program starts [ forever [ move 1 step ] ]. Script B: when the mouse is clicked [ change color effect by 25 ]. The color effect starts at 0. After the project starts, the user clicks 4 times. What is the color effect now?
Seconds starts at 0. When the program starts, a timer script repeats 5 times: wait 1 second, then change seconds by 1. Pressing enter runs a second script: stop all. If enter is pressed at 2.5 seconds, what is seconds at the end?
Crack the passcode before the zombies get in.
Answer, then swat bugs for bonus points.
Race through questions at your own speed.
Same question on every screen. Fastest wins.

Pick a tile, answer, hit bonuses and steals.
Variables and Assignment
50 questions