wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Activity 23: Conditionals Quiz

Total questions: 12

Worksheet time: 7mins

Name
Class
Date
1.

Conditionals let your program

a)

Repeat code to increase efficiency

b)

Make decisions to follow a different path

c)

Run in the right order

d)

Give a set of commands a custom name

2.

In this scenario it is raining. Is the conditional true or false and what will we do in this scenario.

a)

true, we will stay indoors

b)

true, we will go outside

c)

false, we will stay indoors

d)

false, we will go outside

3.

After three moves, the bee is not on nectar. Will the bee collect nectar?

a)

No, the code skips get_nectar()

b)

Yes, the code runs get_nectar()

4.

An error in a program that prevents the program from running as expected.

a)

bug

b)

debugging

c)

for loop

d)

binary

5.

Look at the puzzle and the code below. What can you fix in the code to help the bird get to 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

6.

statements that only run under certain conditions

a)

conditionals

b)

paramenter

c)

reflect

d)

variable

7.

Another term for an "if-else" statment is

a)

loops

b)

function

c)

conditional

d)

algorithm

8.

In this code, the condition that needs to be checked is

a)

repeat 2 times

b)

if at flower

c)

get nectar

d)

move forward

9.

In this section of code, if the bee is on a honeycomb, what will happen?

a)

The bee will make honey.

b)

The bee will move forward twice

c)

The bee will get nectar.

d)

You can't tell from this code

10.

In order for the "while there is a hole" loop to STOP running

a)

the sprite will have filled the hole once

b)

the sprite will have moved forward 6 times

c)

the statement "while there is a hole" will be true

d)

the statement "while there is a hole" will be false

11.

Which type of loop iterates until condition become False?

a)

FOR loop

b)

A count-controlled loop

c)

Repeat-once loop

d)

WHILE loop

12.

A while loop is

a)

A repeat loop with an if statement that stops when something is false

b)

A repeat loop with an if statement that stops when something is true