Cambridge AS Level Computer Science 9618 · 12.1 Program Development Life cycle

Q6 · 9618/21/O/N/24 Q5

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

Q69618/21/O/N/24original Q5Structured · 10 marks
Question 5 from 9618/21/O/N/24

Worked solution

(a)

Match each activity to its stage:

ActivityStage
The walkthrough method is used.Testing
An algorithm is implemented in a programming language.Coding
The client is interviewed about problems with the current system.Analysis
The program is modified to run on new hardware.Maintenance
Records and file structures are defined.Design

Testing [1]

Coding [1]

Analysis [1]

Maintenance [1]

Design [1]

(b)(i)

Valid range is 24 to 37. Test the edges of the range and a value just outside each edge:

Type of test dataTest data valueExpected result
Normal30TRUE
Boundary24TRUE
Boundary37TRUE
Abnormal / boundary23FALSE
Abnormal / boundary38FALSE

One correct row for 24 (TRUE) [1]

One correct row for 37 (TRUE) [1]

One correct row for 23 (FALSE) [1]

One correct row for 38 (FALSE) [1]

Other correct rows also score, for example 12 or 99 (abnormal, FALSE) or 25 and 36 (TRUE). Four marks at most.

(b)(ii)

Testing a module on its own, then joining it to others, is this type:

Write: integration testing [1]

KEY IDEATest data should include normal values, the boundaries of the range and values just outside it.
TOTAL 10 marks

Official mark scheme

Mark scheme for 9618/21/O/N/24 question 5
VIDEO
▶ Whole paper

Video solution of the whole paper · by Pseudocode Pro. 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.