Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Code.org Express Course conditionals

Total questions: 18

Worksheet time: 11mins

Name
Class
Date
1.

How many times will the bee collect nectar if it follows the entire path?

a)

5

b)

7

c)

8

d)

6

2.

Solve the puzzle

a)
b)
c)
d)
3.

The following blocks will allow the bee to eat all the nectar.

a)

True

b)

False

4.

Another term for an "if-else" statment is

a)

loops

b)

function

c)

conditional

d)

algorithm

5.

statements that only run under certain conditions

a)

conditionals

b)

paramenter

c)

reflect

d)

variable

6.

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

7.

The cloud is blocking the view. There could be a flower under this cloud. If there is a flower, the bee will need to collect nectar once. If there is not a flower the bee should do nothing. Take a good look at the code below. What do you think will happen after you click "Run"?

a)

The bee will move to the cloud and try to get nectar, no matter what.

b)

The bee will move to the cloud and only try to get nectar if there is a flower underneath.

c)

The bee will move to the cloud and then do nothing, no matter what.

d)

The bee will not reach the cloud.

8.

Which of these problems will this code solve?

a)
b)
c)
d)

All of these

e)

None of these

9.

Which of these are conditionals? (They only run under certain conditions). Select all that apply.

a)
b)
c)
d)
e)

All of these

10.

Use the if/else block to collect nectar at flowers and make honey at honeycomb. Remember: if there is a flower, the bee only needs to get nectar once. If there is a honeycomb, the bee only needs to make honey once.

a)
b)
c)
d)
e)

None of these

11.

Which of these describes the block shown?

a)

When something happens, start this algorithm.

b)

If the statement is true do this code.

c)

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

d)

Repeat this code a certain number of times.

e)

All of these

12.

Which of these 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 statement is false, do something else.

d)

Repeat this code a certain number of times.

e)

All of these

13.

Which of these 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 statement is false, do something else.

d)

Repeat this code a certain number of times.

e)

All of these

14.

Which of these 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 statement is false, do something else.

d)

Repeat this code a certain number of times.

e)

All of these

15.

finding and fixing problems in an algorithm or program

a)

bug

b)

conditionals

c)

variable

d)

debugging

16.

part of a program that does not work correctly

a)

bug

b)

variable

c)

debugging

d)

try

17.
a)
b)
c)
d)
18.

Use loops to draw this staircase.

Each stair step is 50 pixels long and 50 pixels tall

You will need to turn 90 degrees in each direction

a)
b)
c)