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 | AMatches problems with key words like 'how many': use counting | |
| 2Count ← Count + 1 | BIF Score > Max THEN Max ← Score | |
| 3A problem asking for the 'highest' score needs the maximum method | C'Put in order' is a key phrase for sorting, not searching. It needs a bubble sort. | |
| 4A problem that says 'put in order' needs a bubble sort | D'How many' is a key phrase for counting, not totalling. It should use Count ← Count + 1. | |
| 5'How many students passed?' → Total ← Total + Mark | EMatches problems with key words like 'add up' or 'sum': use totalling | |
| 6'Put the marks in order' → linear search | FIF Marks[i] > Marks[i + 1] THEN swap |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
key words — Words in a problem, like add up, how many, highest, average, find or put in order, that show which standard method to use: totalling, counting, max/min, average, search or sort.// add up all the marks
Total ← Total + Mark// how many students scored over 50
Count ← Count + 1IF Mark < Lowest THEN
Lowest ← Mark
ENDIF// find a mark in the list
Found ← FALSE
FOR Index ← 1 TO 10// put the marks in order
IF Marks[I] > Marks[I + 1] THEN
Temp ← Marks[I]