9618/23/M/J/22 question 4: worked solution (May/June 2022, paper 23)

Show as plain text

Cambridge AS Level Computer Science 9618 · 12.3 Program Testing and Maintenance Worked solution from the Software Development Paper 2 Problem-solving and Programming booklet, Part 3 of 3. Q38 9618/23/M/J/22 original Q4 Structured · 4 marks Worked solution 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. KEY IDEA Good test data covers normal values, the values on each boundary, and values just outside the boundaries. TOTAL 4 marks Official mark scheme VIDEO ▶ Whole paper Video solution of the whole paper · by Digify ID. Tap the picture to open it on YouTube.