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 | |
|---|---|---|
| 1SET score TO 0 | ASET was matched to the wrong block. 'change' adds to the old value instead of giving a fresh starting value. | |
| 2ASK "What is your name?" | BASK was matched to 'say', which only shows a message. It does not wait for an answer. | |
| 3An algorithm step that makes a decision becomes an 'if' block with the condition inside it | CREPEAT 10 TIMES | |
| 4An algorithm step that repeats a set number of times becomes a 'repeat 10' block | DIF score > 5 THEN | |
| 5Algorithm: SET lives TO 3. Program: a 'change lives by 3' block | EBecomes an 'ask What is your name? and wait' block | |
| 6Algorithm: ASK "Your age?". Program: a 'say Your age?' block | FBecomes a 'set score to 0' block in the visual program |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
step -> block — Turn each algorithm step into a matching block: SET becomes set, ASK becomes ask and wait, IF becomes if, REPEAT becomes repeat. Then run it to check it does what the algorithm says.SET score TO 0
set score to 0ASK for the player's name
ask What is your name? and waitIF score > 5 THEN
if <score > 5> thenREPEAT 4 TIMES
repeat 4ask What is your name? and wait
set name to answer