wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

9 Weeks Test – Block Coding

Total questions: 56

Worksheet time: 40mins

Name
Class
Date
1.

What is the purpose of using loops in block-based programming?

a)

To store information that can change

b)

To repeat a set of instructions

c)

To check whether a condition is true or false

2.

Which block would you use to check if a condition is true or false?

a)

Forever loop

b)

If...then

c)

Repeat

3.

What is the purpose of a variable?

a)

Repeat a set of instructions

b)

Store information that can change

c)

Make an object move

4.

Which block will make a sprite move forward 10 steps?

a)

Move 10 steps

b)

Wait

c)

Repeat forever

5.

What does the “Forever” block do?

a)

Pause execution for a certain period of time

b)

Repeat a set of instructions indefinitely

c)

Move a sprite

6.

Which block allows the program to respond when the sprite is clicked?

a)

Repeat

b)

When sprite clicked

c)

Move 10 steps

7.

What is debugging?

a)

Create a sprite

b)

Fix errors in a program

c)

Repeat instructions

8.

What does a conditional statement do?

a)

Move an object

b)

Store information

c)

Perform an action only when the condition is true

9.

How can you make a sprite perform multiple actions at the same time?

a)

Use multiple scripts

b)

Use variables

c)

Use conditional statements

10.

What is the purpose of the “Wait” block?

a)

Repeat the instructions

b)

Pause execution for a certain period of time

c)

Store information

11.

The difference between the “Repeat” loop and the “Forever” loop is:

a)

The “Repeat” loop runs a certain number of times, while the “Forever” loop runs endlessly.

b)

The “Repeat” loop runs endlessly, while the “Forever” loop runs a certain number of times.

c)

Both the “Repeat” and “Forever” loops run endlessly.

d)

Both the “Repeat” and “Forever” loops run a certain number of times.

12.

12. The use of variables in block programming is important because:

a)

They allow you to store and reuse values in your program.

b)

They make the program run slower.

c)

They are required for every code block.

d)

They make the code harder to understand.

13.

The benefit of using the “If…then” statement is:

a)

They allow conditional decision-making in the program.

b)

They increase the speed of computer hardware.

c)

They are used to store large amounts of data.

d)

They help the program run without any errors.

14.

Which of the following steps are involved in debugging a program that does not work as expected?

a)

Identify and fix errors in the source code

b)

Ignore the problem and hope it resolves itself

c)

Delete the entire program and start over

d)

Add more errors to see what happens

15.

Organizing code blocks logically is important because:

a)

it makes your code easier to read and maintain.

b)

it makes your code run faster than any other code.

c)

it allows you to use more colors in code blocks.

d)

it prevents your computer from crashing.

16.

Task 1: Use the Repeat block set to 4, with the Move 10 steps and Turn 90 degrees blocks inside. What will this do in a program?

a)

It makes the character move in a square path.

b)

It makes the character move in a straight line.

c)

It makes the character turn in place without moving.

d)

It makes the character move in a circular path.

17.

The purpose of using the If block to check if the sprite touches the edge and then placing the color change block inside is to:

a)

Make the sprite change color when it touches the edge

b)

Move the sprite to a new position

c)

Stop the sprite's movement

d)

Play a sound when the sprite touches the edge

18.

Task 3: Use the block 'When the character is clicked', inside the 'If...then' block to check the answer. If correct, display 'Correct'; if not, display 'Try again'. What does this task do in a program?

a)

It checks the answer when the character is clicked and gives feedback if it is correct or not.

b)

It moves the character to a new position when clicked.

c)

It changes the color of the character when clicked.

d)

It plays a sound when the character is clicked.

19.

Match the following criteria with their descriptions:

a)

Understanding of Concepts

1.

Correctly identifies all block types, loops, conditionals, and variables

b)

Problem-Solving

2.

Logic is clear, efficient, and accurate

c)

Application of Blocks

3.

Correct blocks used for all programming tasks

d)

Debugging & Explanation

4.

Clear explanation of debugging and reasoning

e)

Organization & Clarity

5.

Program described clearly; easy to follow

20.

What shape does this code create?

a)

Rectangle

b)

Triangle

c)

Square

d)

Circle

21.

What does this code do?

a)

Move forward, turn, move forward

b)

Move forward twice, turn left, then move forward two more times

c)

Move forward four times and turn left

d)

Move and turn

22.

Solve this puzzle

a)
b)
c)
d)
23.

Which of the code below will complete this puzzle?

a)
b)
c)
d)
24.

Oliver and Abigail are helping their robot friend follow a path! Look at the code blocks above. Can you guess what the robot will do when Oliver presses 'Run'?

a)

Move forward, turn, move forward

b)

Move forward twice, turn left, then move forward two more times

c)

Move forward four times and turn left

d)

Move and turn

25.

Nora, Elijah, and Luna are working on a programming project. They notice that their robot keeps repeating the same action, just like in the image above. What is it called when you do the same thing over and over again?

a)

Looping

b)

Bugging

c)

Programming

26.

What is block coding?

a)

A form of traditional dance

b)

A programming language that uses visual blocks to represent code.

c)

A method of data encoding

d)

A type of building material used in construction

27.

What is debugging in block-based programming and why is it important?

a)

Debugging is only important in text-based programming

b)

Debugging is a waste of time in block-based programming

c)

Debugging is not important in block-based programming

d)

Debugging is important in block-based programming because it helps ensure the program runs smoothly and as intended.

28.

What is the purpose of using blocks in block-based programming?

a)

To confuse programmers

b)

To organize and structure the source code

c)

To make the source code more chaotic

d)

To slow down the programming process

29.

What is the purpose of using blocks in block-based programming?

a)

To confuse programmers

b)

To organize and structure the source code

c)

To make the source code more chaotic

d)

To slow down the programming process

30.

Which code will get Angry Bird jumping ON the pig?

a)
b)
31.

Which code will get Angry Bird jumping ON the pig?

The REPEAT does what's in the gap "however many times". In this case, 3!

a)
b)
32.

An error in a program that causes the program to not run as expected is called what?

a)

Algorithm

b)

Program

c)

Error

d)

Source code

33.

Which code will get Angry Bird jumping ON the pig?

The REPEAT does what's in the gap "however many times". In this case, 3!

a)
b)
c)
34.

Which code will get Angry Bird jumping ON the pig?

The REPEAT does what's in the gap "however many times". In this case, 3!

a)
b)
c)
35.
a)
b)
c)
36.

What is block coding?

a)

A form of traditional dance

b)

A programming language that uses visual blocks to represent code.

c)

A method of data encoding

d)

A type of building material used in construction

37.

Explain the concept of a function in block-based programming.

a)

Functions in block-based programming are only used for debugging purposes.

b)

Functions in block-based programming are used to break code into smaller parts for better organization.

c)

Functions in block-based programming are reusable blocks of code that perform a specific task.

d)

Functions in block-based programming are decorative elements used to enhance aesthetics.

38.

What is debugging in block-based programming and why is it important?

a)

Debugging is only important in text-based programming

b)

Debugging is a waste of time in block-based programming

c)

Debugging is not important in block-based programming

d)

Debugging is important in block-based programming because it helps ensure the program runs smoothly and as intended.

39.

What is the purpose of using blocks in block-based programming?

a)

To confuse programmers

b)

To organize and structure the source code

c)

To make the source code more chaotic

d)

To slow down the programming process

40.

How can you create a custom function in block-based programming?

a)

By writing the function name in the code editor

b)

By using voice commands to create a function

c)

By dragging and dropping function blocks from the code palette and customizing it with specific code blocks.

d)

By shaking the device to create a function

41.

Which code will get Angry Bird jumping ON the pig?

a)
b)
42.

Which code will get Angry Bird jumping ON the pig?

The REPEAT does what's in the gap "however many times". In this case, 3!

a)
b)
43.

An error in a program that causes the program to not run as expected is called what?

a)

Algorithm

b)

Program

c)

Error

d)

Source code

44.

Which code will get Angry Bird jumping ON the pig?

The REPEAT does what's in the gap "however many times". In this case, 3!

a)
b)
c)
45.
a)
b)
c)
46.

What is defined as a set of instructions to solve a problem?

a)

Algorithm

b)

Problem

c)

Data

d)

Program

47.

What is the action or process of writing computer programs called?

a)

Programming

b)

Data

c)

Algorithm

d)

Program

48.

A set of instructions that performs a specific task when executed by a computer is called what?

a)

Program

b)

Data

c)

Algorithm

d)

Problem

49.

Which relational operator is this: >

a)

Less than

b)

Greater than

c)

Equal to

d)

Not equal to

50.

Which relational operator is this: <

a)

Less than

b)

Greater than

c)

Equal to

d)

Not equal to

51.

What is this relational operator: <=

a)

Less than or equal to

b)

Greater than or equal to

c)

Equal to

d)

Not equal to

52.

What is this relational operator: >=

a)

Less than or equal to

b)

Greater than or equal to

c)

Equal to

d)

Not equal to

53.

Programming can be used to...

a)

Instruct computers what to do

b)

Create games, websites, and applications

c)

Program robots

d)

All of the above

54.

Working with your code to find out why it does not work is called

a)

iteration

b)

Boolean logic

c)

pseudocode

d)

debugging

55.

List some industries that can use block programming

4 lines
56.

What is the definition of an algorithm and what is its relationship with block coding?

4 lines