Types of blocks
Read the code
True or False
100

What do boolean blocks do? 

Boolean blocks tell us if something is true or false

100

What does this code do? 

The cat says Hello forever!

100

True or False: You should never use lists because they are too complicated

False, lists are very useful when you need to keep track of many different pieces of information.

200

Why would you use an If-Else block?

Use an If-Else block if you want one event to occur if a statement is true and a different event if the statement is false

200

How many times does the cat say “Hello” in this code?



8, three in the first loop and five in the second.

200

True or False: You can place If blocks inside of other If blocks

True, this is useful when you want there to be more than two options.

300

What is a loop used for?

Running the same code multiple times in a row

300

What does the cat say in this code?

You are not Stacy, the If statement is false because Name does not equal Stacy.

300

True or False: The Forever block lets you run code until a certain condition is met

False, the Forever block lets you run code indefinitely

400

 What is one reason why you might use a variable?

give lives in a game, name of a player, level number, etc.

400

What's the difference between these blocks:


The first runs once if the condition is correct, the other runs forever if the condition is correct.

400

True or False: Loops can run for more than 99999 times.

True. Loops can run for as long as you program them to.