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 | |
|---|---|---|
| 1Total ← Total + Mark | A[Total ← 0] → [Count ← 0] | |
| 2Count ← 0 | BAn assignment written inside a process rectangle: it sets Count to zero before counting begins | |
| 3A process rectangle holds one action, so two separate actions need two boxes | CA calculation is drawn in a diamond, which is the decision symbol. Calculations and assignments belong in a rectangle. | |
| 4The process symbol is a rectangle with the action written inside it | D[Average ← Total / Count] | |
| 5[Total ← 0, Count ← 0, Sum ← 0] | EThree actions are crammed into one process box. Each action should have its own box, joined by flow lines. | |
| 6Diamond containing: Total ← Total + Mark | FA calculation written inside a process rectangle: it adds Mark to Total and stores the answer back in Total |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
Process symbol — A rectangle in a flowchart that shows one action, such as a calculation or an assignment, written inside it, e.g. Total ← Total + Mark or Count ← 0.Count ← 0Total ← Total + MarkCount ← Count + 1Total ← Total + MarkAverage ← Total / Count