Cambridge AS Level Computer Science 9618 · 12.3 Program Testing and Maintenance

Q45 · 9618/23/M/J/23 Q5

Worked solution from the Software Development Paper 2 Problem-solving and Programming booklet, Part 3 of 3.

Q459618/23/M/J/23original Q5Structured · 4 marks
Question 5 from 9618/23/M/J/23

Worked solution

(a)

Walkthrough testing is done by hand, so the tester needs the program's details and the data to use. Write any three of these four points:

Additional information: the program code / source code (or the specification) [1]

Additional information: a test plan, that is the test data and the expected outputs [1]

Explanation: the tester must know the structure / design / algorithm of the program [1]

so that all paths through the program can be tested (this point is also accepted, but only three marks can be earned in all)

(b)

Changes that make a working program faster or better are not fixes.

Write: perfective maintenance [1]

KEY IDEAA walkthrough needs the code and the test data with expected results, so every path can be followed by hand.
TOTAL 4 marks

Official mark scheme

Mark scheme for 9618/23/M/J/23 question 5
VIDEO
▶ Whole paper

Video solution of the whole paper · by Zafar Ali Khan (ZAK). 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.