Cambridge O Level Computer Science 2210 · 7.6 Suitable test data

Q39 · 2210/21/M/J/23 Q3

Worked solution from the Algorithm design and problem-solving Paper 2 Algorithms, Programming and Logic booklet, Part 5 of 8.

Q392210/21/M/J/23original Q3Structured · 8 marks
Question 3 from 2210/21/M/J/23

Worked solution

(a)

Validation checks that data is allowed.

Validation is an automated check carried out by the computer [1]

It makes sure the data entered is sensible, reasonable or acceptable [1]

(b)

The check accepts whole numbers from 30 to 200.

Normal test data: 75 [1]

Reason: it is inside the range, so it should be accepted [1]

Abnormal test data: Sixty (a word) [1]

Reason: it is the wrong data type, so it should be rejected [1]

Extreme test data: 200 [1]

Reason: it is the highest value in the range, so it should be accepted [1]

Other correct values score, for example 30 as extreme, or 20 as abnormal.

KEY IDEANormal data is accepted, abnormal data is rejected, extreme data sits at the edge of the range.
TOTAL 8 marks

Official mark scheme

Mark scheme for 2210/21/M/J/23 question 3
VIDEO
▶ Whole paper

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