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 | |
|---|---|---|
| 1Decision: Is it raining? Yes -> Loop: Is every window closed? No -> Close a window -> back to loop question | AThe loop is drawn on the No path, but it should be on the Yes path. Closing windows would happen when it is NOT raining. | |
| 2Decision: Is it raining? No -> arrow goes straight to Show 'Done' | BLoop question: Is every window closed? Yes -> Show 'Done' (same step the No path goes to) | |
| 3The loop exit arrow rejoins the main flow so the Yes and No paths meet again at the same step. | CIs the bin full? Yes -> Is the bin empty yet? No -> Take out one item -> back to question | |
| 4The loop is only entered when the decision gives Yes, so its first step is drawn on the Yes arrow. | DA loop sits on the Yes path. It only runs when it is raining, and it repeats until every window is closed. | |
| 5Decision: Is it raining? No -> Loop: Close a window until all are closed | EThe No path skips the loop completely and carries on with the main flow. | |
| 6Is it raining? Yes -> Loop: Close a window -> Is every window closed? Yes -> end of flowchart (No path never reaches Show 'Done') | FThe loop exit arrow does not rejoin the main flow, so the flowchart stops and the next step is never reached. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
Loop on the Yes path — A loop drawn on the Yes arrow of a decision diamond. It only runs if Yes is taken. The No path skips it. When the loop ends, its exit arrow rejoins the main flow.IF score > 10 THEN
REPEAT 3 TIMES
OUTPUT "Well done"IF lights = "off" THEN
REPEAT UNTIL lights = "on"
FLICK switch END REPEAT
END IF
OUTPUT "Goodbye"IF answer = "Yes" THEN
REPEAT UNTIL count = 5
count ← count + 1IF mark >= 50 THEN
REPEAT 2 TIMES
OUTPUT "Pass"