wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Graded Quiz on Programming with a Maze

Total questions: 20

Worksheet time: 20mins

Name
Class
Date
1.

Which of the following best describes the purpose of debugging in a maze game?

a)

To make the game more colorful

b)

To find and fix errors in the code so the character reaches the goal

c)

To add more levels to the game

d)

To increase the speed of the character

2.

What is sequencing in programming?

a)

Repeating the same action over and over

b)

Arranging instructions in the correct order to achieve a goal

c)

Drawing shapes with code

d)

Debugging errors in code

3.

Which block would you use to repeat a set of instructions multiple times in code.org’s Sprite Lab?

a)

Move block

b)

Loop block

c)

Play sound block

d)

Debug block

4.

What is an algorithm in the context of programming games like Angry Birds?

a)

A type of bird

b)

A set of step-by-step instructions to solve a problem

c)

A musical note

d)

A sprite’s costume

5.

When creating a song in Music Lab, why is the order of musical notes important?

a)

It changes the color of the notes

b)

It determines the melody that is played

c)

It increases the volume

d)

It adds more instruments

6.

You notice your sprite is not moving as expected in your code. What is the first step you should take to debug the problem?

a)

Delete the sprite

b)

Check the sequence of movement blocks

c)

Add more sprites

d)

Change the background

7.

How can you use loops to create repeating patterns in art with code?

a)

By drawing each shape manually

b)

By using a loop to repeat drawing commands

c)

By changing the color of the pen

d)

By adding more sprites

8.

If your character in a maze game keeps running into a wall, which debugging technique should you use?

a)

Add more walls

b)

Check and adjust the movement instructions

c)

Change the character’s color

d)

Increase the speed

9.

A student wants to create a repeating drum beat in Music Lab. Which approach would be most efficient?

a)

Manually add each drum sound one by one

b)

Use a loop to repeat the drum sound pattern

c)

Change the instrument to piano

d)

Add random notes

10.

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?

a)

Add random walls everywhere

b)

Map out all possible paths and ensure at least one clear path exists

c)

Use only one type of sprite

d)

Make the maze very small

11.

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?

a)

Change the instrument

b)

Compare the code’s note order with the intended melody and rearrange as needed

c)

Add more notes

d)

Increase the tempo

12.

You want to create a pattern of stars using code that repeats every 5 steps. How would you strategically use loops to achieve this?

a)

Draw each star separately

b)

Use a loop that repeats the star-drawing commands 5 times

c)

Change the color after each star

d)

Add a new sprite for each star

13.

In a debugging activity, you find that your sprite stops moving after a few steps. How can you use reasoning to identify the cause?

a)

Ignore the problem and continue

b)

Check if the loop or movement instructions have a stopping condition that is being met too early

c)

Add more sprites

d)

Change the background

14.

You are tasked with creating a simple animation where a fish swims in a zigzag pattern. What planning steps should you take before coding?

a)

Choose random movement blocks

b)

Plan the sequence of left and right turns and how many steps to move between each turn

c)

Add more fish sprites

d)

Change the background color

15.

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?

a)

Place coins randomly

b)

Plan the path and sequence of movements needed to collect each coin in order

c)

Add more coins

d)

Change the sprite’s costume

16.

Finding and fixing problems in an algorithm or program.

a)

Debugging

b)

Bug

c)

Sequencing

d)

Programming

17.

Grace and Henry are helping a character move through a maze! They use this block:
repeat block
What kind of programming concept are they using to make the character keep moving until it reaches the green pig?

a)

Boolean value

b)

conditional statement

c)

bug

d)

loop

18.

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?

a)

Looping

b)

Bugging

c)

Programming

19.

This repeat statement is an example of a ...

a)

Boolean value

b)

conditional statement

c)

bug

d)

loop

20.

Vocabulari: Com es diu l'acció de fer un com i un altre el mateix quan programem?

a)

Looping

b)

Bugging

c)

Programming