wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Programming Finals

Total questions: 20

Worksheet time: 30mins

Name
Class
Date
1.

Daniel and Anika are trying to teach Isla how to make a robot dance the same move again and again. What is the programming term for doing something over and over again?

a)

for loop

b)

while loop

c)

bug

d)

loop

2.

Scarlett and Arjun are working on a new game, but something keeps stopping it from running as expected. What do we call this sneaky error in their program?

a)

bug

b)

debugging

c)

for loop

d)

binary

3.

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

a)

Moves forward, turns, moves forward

b)

Moves forward 2 times, turns left, moves forward 2 more times

c)

Moves forward 4 times and turns left

d)

Moves and turns

4.

Henry, Scarlett, and Daniel are helping the bee collect all the nectar from the flowers! Do you think the blocks shown will let the bee gather every drop of nectar on its journey?

a)

True

b)

False

5.

Aria and Benjamin are coding together. They discover a loop inside another loop, where the inner loop runs within the body of the outer one. What is this programming concept called?

a)

Nested Loop

b)

Condition

c)

while loop

d)

For Loop

6.

Noah and Priya are trying to bake a cake, but they need to follow a special set of instructions. What is an algorithm?

a)

A list of shopping items you need

b)

A list of tech items you want

c)

A list of steps to complete a task

7.

Hannah and Daniel are helping a robot learn to move! Take a look at this code block. What will the robot do when Hannah clicks "Run"?

a)

Moves forward 1 time

b)

Moves forward forever

c)

Moves forward 5 times

d)

Moves left

8.

Rohan has written a set of instructions for his computer, and now it can finally run them! What do we call an algorithm that has been coded into something a machine can execute?

a)

Program

b)

Variable

c)

Function

d)

Input

9.

Elijah and Aria are coding a game! They found this block and want to know what it does. Can you help them figure it out?

if at flower do else block

Which of these best describes the block shown?

a)

When something happens, start this algorithm.

b)

If the statement is true, do this code.

c)

If the condition is true, do this code. If the condition is false, do something else.

d)

Repeat this code a certain number of times.

e)

All of these.

10.

Olivia, Anika, and Harper are coding a shape together! They want to know: how long are the sides of the shape they just drew?

a)

2 pixels

b)

120 pixels

c)

150 pixels

d)

Purple pixels

11.

Charlotte is programming a game and needs a loop that keeps repeating until her character finds the hidden treasure. What kind of loop should she use?

a)

Boolean

b)

Conditional

c)

While Loop

d)

Repeat Until Block

12.

Which of the following is used when a program needs to run a very large amount of repetitive code?

a)

A function

b)

A comment

c)

A conditional statment

d)

A loop

13.

Zoe wants to bake a cake and follows a list of steps to finish the task. What is this list of steps called?

a)

Algorithm

b)

Program

c)

Bug

14.

Nora and James are building a game. Nora wants to add something that will make the game do something special whenever a player clicks a button. What is this action called?

a)

loop

b)

define

c)

event

d)

conditionals

15.

Kai and Aria are teaching Karel some cool new tricks! What can they use to teach Karel new commands and make their code shorter and easier to read?

a)

Loops

b)

Functions

c)

Conditional Statements

d)

Comments

16.

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

17.

Noah, Aria, and Nora are working together on this code. They notice that there are a lot of repeated blocks! Can they make this code smarter or shorter?

a)

Yes, by using loops (repeat blocks)

b)

No, this is the best way to right this code

18.

Ava and Oliver are helping Karel write some code! Which of these is the correct command they should use to make Karel move forward?

a)

move;

b)

MOVE

c)

move();

d)

move()

19.

Olivia and Elijah are cheering for the bird to reach the sneaky pig! Can you help them spot what needs to be fixed in the code so the bird can catch the pig?

a)

Change the first turn block to left

b)

Remove a move forward block

c)

Add a move forward block

d)

Change the second turn block to left

20.

Arjun and David are helping the bird reach the sneaky pig! They’ve written some code, but something’s not quite right. Can you spot what needs to be fixed in their code to help the bird catch the pig?

a)

Remove a move forward block

b)

Add a move forward block

c)

Change the first turn block to left

d)

Change the second turn block to left