Worked solution from the Software Development Paper 2 Problem-solving and Programming booklet, Part 3 of 3.
Test the boundaries of the 150 to 155 range, and values clearly outside it. Any four of these rows score:
| Type of test data | Example test value | Expected return value | Explanation |
|---|---|---|---|
| Abnormal | Any value below 149 | "FAIL" | Outside the acceptable range, too small |
| Boundary (abnormal) | 149 | "FAIL" | Largest value that is not acceptable |
| Boundary (normal) | 150 | "PASS" | Smallest acceptable value |
| Boundary (normal) | 155 | "PASS" | Largest acceptable value |
| Boundary (abnormal) | 156 | "FAIL" | Smallest value that is not acceptable |
| Abnormal | Any value above 156 | "FAIL" | Outside the acceptable range, too large |
Each correct row (example value, expected result and explanation all fit) earns 1, up to four rows [4]
The example row already given (153, "PASS") does not score again.
▶ Whole paper
Video solution of the whole paper · by Digify ID. Tap the picture to open it on YouTube.
Solutions follow the official Cambridge mark schemes; marks are shown in grey. Videos are from other YouTube channels. Paper codes read component / series / year: M/J = May/June, O/N = October/November. Past-paper questions © UCLES, reproduced for classroom practice.