Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1IF it is raining THEN take an umbrella | AThis claps 10 times, but the clapping was meant to happen only sometimes, such as only if the song is playing. It needs an IF. | |
| 2REPEAT 5 TIMES: jump | BThe same step is written out again and again. A REPEAT 3 TIMES would do this job with one step. | |
| 3Use a decision when a step only happens sometimes, like packing a raincoat only if it is raining | CA repeat: the same step happens many times, here 5 jumps. | |
| 4Use both together when a loop needs a choice inside, like checking every day of the week for rain | DREPEAT 7 TIMES: IF raining THEN pack raincoat | |
| 5IF it is raining THEN take umbrella take umbrella take umbrella | EA decision: the step happens only sometimes, when it is raining. | |
| 6REPEAT 10 TIMES: clap | FIF raining THEN pack raincoat |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
IF or REPEAT — Use IF when a step happens only sometimes. Use REPEAT when the same steps happen many times. Use both together when a loop needs a choice inside.IF it is raining THEN
take an umbrellaREPEAT 10 TIMES
do a star jumpREPEAT 5 TIMES
IF the ball is red THEN
put it in the red boxREPEAT UNTIL the bowl is full
pour in more waterREPEAT UNTIL the bin is empty
IF the item is plastic THEN
put it in recycling