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 diamond: Is Total > 100? | ADecision: Count < 10? Yes -> back to the INPUT symbol, No -> OUTPUT Total | |
| 2Start -> INPUT Num -> Count <- Count + 1 -> Stop | BFollow the flow lines in order: read in Num, add 1 to Count, then end the flowchart. | |
| 3A flow line that goes back up to an earlier symbol shows a loop, so the same steps repeat until a decision sends the flow on. | CINPUT Mark ... OUTPUT Grade | |
| 4Naming the inputs and outputs: the parallelogram symbols show the data entered and the results displayed. | DA diamond does not read input. It is a decision that tests a condition and has Yes and No paths. Input uses a parallelogram. | |
| 5Explanation: 'The diamond reads a number from the user, then the flowchart ends.' | EA decision that tests the value of Total. One flow line leaves for Yes and another leaves for No. | |
| 6Explanation: 'The flowchart adds up numbers and outputs the total.' (no mention of the decision or loop) | FThe explanation skips what the decision tests, the Yes and No paths, and the loop, so it does not follow every flow line. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
Explaining a flowchart — Follow the flow lines from Start, say what each symbol does and what each decision tests (Yes and No paths), then state the overall purpose.Mark >= 50?
Yes -> OUTPUT "Pass"
No -> OUTPUT "Fail"Mark >= 50?
Yes -> OUTPUT "Pass"
No -> OUTPUT "Fail"START
INPUT Age
Age >= 18?Count ← 1
Total ← Total + Count
Count <= 5? Yes -> back to line 2INPUT Num
Total ← Total + Num
OUTPUT Total