NEW
Font size
WorksheetsGraded Quiz on Programming with a Maze
Total questions: 20
Worksheet time: 20mins
Which of the following best describes the purpose of debugging in a maze game?
To make the game more colorful
To find and fix errors in the code so the character reaches the goal
To add more levels to the game
To increase the speed of the character
What is sequencing in programming?
Repeating the same action over and over
Arranging instructions in the correct order to achieve a goal
Drawing shapes with code
Debugging errors in code
Which block would you use to repeat a set of instructions multiple times in code.org’s Sprite Lab?
Move block
Loop block
Play sound block
Debug block
What is an algorithm in the context of programming games like Angry Birds?
A type of bird
A set of step-by-step instructions to solve a problem
A musical note
A sprite’s costume
When creating a song in Music Lab, why is the order of musical notes important?
It changes the color of the notes
It determines the melody that is played
It increases the volume
It adds more instruments
You notice your sprite is not moving as expected in your code. What is the first step you should take to debug the problem?
Delete the sprite
Check the sequence of movement blocks
Add more sprites
Change the background
How can you use loops to create repeating patterns in art with code?
By drawing each shape manually
By using a loop to repeat drawing commands
By changing the color of the pen
By adding more sprites
If your character in a maze game keeps running into a wall, which debugging technique should you use?
Add more walls
Check and adjust the movement instructions
Change the character’s color
Increase the speed
A student wants to create a repeating drum beat in Music Lab. Which approach would be most efficient?
Manually add each drum sound one by one
Use a loop to repeat the drum sound pattern
Change the instrument to piano
Add random notes
You are designing a maze game and want to make sure the player can always reach the goal. What should you do to plan your algorithm?
Add random walls everywhere
Map out all possible paths and ensure at least one clear path exists
Use only one type of sprite
Make the maze very small
A student’s code for a musical sequence plays the notes in the wrong order. How should the student use evidence to debug the sequence?
Change the instrument
Compare the code’s note order with the intended melody and rearrange as needed
Add more notes
Increase the tempo
You want to create a pattern of stars using code that repeats every 5 steps. How would you strategically use loops to achieve this?
Draw each star separately
Use a loop that repeats the star-drawing commands 5 times
Change the color after each star
Add a new sprite for each star
In a debugging activity, you find that your sprite stops moving after a few steps. How can you use reasoning to identify the cause?
Ignore the problem and continue
Check if the loop or movement instructions have a stopping condition that is being met too early
Add more sprites
Change the background
You are tasked with creating a simple animation where a fish swims in a zigzag pattern. What planning steps should you take before coding?
Choose random movement blocks
Plan the sequence of left and right turns and how many steps to move between each turn
Add more fish sprites
Change the background color
You are creating a game where a sprite must collect coins in a specific order. How can you use strategic thinking to design the algorithm?
Place coins randomly
Plan the path and sequence of movements needed to collect each coin in order
Add more coins
Change the sprite’s costume
Finding and fixing problems in an algorithm or program.
Debugging
Bug
Sequencing
Programming
Grace and Henry are helping a character move through a maze! They use this block:
What kind of programming concept are they using to make the character keep moving until it reaches the green pig?
Boolean value
conditional statement
bug
loop
Nora, Elijah, and Luna are working on a coding project. They notice that their robot keeps doing the same action again and again, just like in the picture above. What is this action of doing something over and over again called?
Looping
Bugging
Programming
This repeat statement is an example of a ...
Boolean value
conditional statement
bug
loop
Vocabulari: Com es diu l'acció de fer un com i un altre el mateix quan programem?
Looping
Bugging
Programming
