Variables
IFs
Loops
Lists
Blocks
100
What is a variable?
A named storage container for a single piece of data
100
In the following sentence, identify the conditional:

If it is raining, I will bring my umbrella.
If it is raining
100
How are repeat loops and forever loops different?
Repeat loops - loop for a specific number of times Forever loops - loop forever, until the program is stopped
100
What is a list?
A variable that can hold multiple values
100
What is a block?
A variable that stores lines of code.
200
set a to 3
set b to 4
set c to a+b

What does c equal?
7
200
What is the output:

set b to 100
if b > 99
say "abc"

say "def"
abcdef
200
Which loop would be most appropriate?

Output all of the even numbers between 0 and 200
Repeat
200
What is the output?

set a to 3
repeat 2
add a to list

say list
[3, 3]
200
What are block parameters?
Information that is passed to the block that is used when executing its code
300
set a to 5
set b to 6
change a by 5

What does a equal?
10
300
What is the output?

set a to 99
if a > 99
say "abc"

say "def"
def
300
What is the output?

set a to 75
repeat 5
change a by -5

say a
50
300
What is the output?

set a to 2
repeat 6
add a to list

say list
[2, 2, 2, 2, 2, 2]
300
What are the three different types of blocks?
Command, reporter, predicate
400
ask "Enter the word 'cat'" and wait
set word to answer
say word

What will the sprite say?
cat
400
What is the output?

set d to 100
set e to 88
if d > 90
say "abc"

if e < 95
say "def"
abcdef
400
What is the output?

set a to 100
repeat 3
say a
change a by -5

say a
100 95 90 85
400
What is the output?

set b to 5
repeat 5
change b by 5
add b to list

say list
[10, 15, 20, 25, 30]
400
What is returned by the call isMystery(77)

isMystery(number)
if number <0
report true

report false
false
500
set a to 16
set answer to 16/2
say "Your answer is: " for 2 sec
say answer

What is the output to this code?
Your answer is: 8
500
What is the output?

set h to 100
set i to 88
if h > 90
if i > 95
say "def"

if h > 95
say "ghi"
ghi
500
What is the output?

set c to 30
repeat until c < 10
change c by -5

say c
5
500
What three lines of code are needed to cycle through each element of a list?
set spot to 1 repeat length of list .... change spot by 1
500
What is the purpose of the following block?

myBlock(number)
if number mod 2 = 1
report true

report false
Reports true for odd numbers, and false for even numbers