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 | |
|---|---|---|
| 1Diamond: Is it raining? Yes → take umbrella, No → wear hat | AThe back arrow was ignored, so the steps only happen once. REPEAT is needed around the steps that go round again. | |
| 2Arrow from the last box back up to an earlier box | BBecomes a REPEAT in the written steps, so the steps in between happen again | |
| 3A diamond that asks a question each time round the loop becomes the loop condition | CFlowchart: Yes path = take umbrella. Steps: IF raining THEN take umbrella | |
| 4After translating, check both versions do the same thing by following each one with the same starting facts | DThe diamond was written as two plain steps, so the decision is lost. It should be IF ... THEN ... ELSE. | |
| 5Flowchart has a diamond with Yes and No paths. Steps: 1. Take umbrella 2. Wear hat | EBecomes written steps: IF it is raining THEN take umbrella ELSE wear hat | |
| 6Flowchart has a back arrow to 'Stir soup'. Steps: 1. Stir soup 2. Taste soup (no REPEAT) | FREPEAT UNTIL the bin is empty |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
flowchart to steps — Changing a flowchart into written steps: a diamond becomes IF or a loop condition, a back arrow becomes REPEAT, then check both versions do the same thing.IF the bag is heavy THEN
use a trolleyIF the door is locked THEN
use the keyIF it is sunny THEN wear a hat
ELSE take an umbrellaREPEAT
stir the soup
UNTIL the soup is hotREPEAT
add a cup of water
UNTIL the bucket is full