Cambridge O Level Computer Science 2210 · 7.5 Validation and verification checks

Q16 · 2210/21/M/J/20 Q3

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

Q162210/21/M/J/20original Q3Structured · 7 marks
Question 3 from 2210/21/M/J/20

Worked solution

(a)

Name two different validation checks and say why each is used.

Range check [1]

Purpose: to make sure the data entered falls within a set of allowed values [1]

Length check [1]

Purpose: to make sure the data entered is not longer (or shorter) than allowed [1]

Other checks that score: type check (data follows rules about numbers or letters) and check digit (an identification code is genuine or possible).

(b)

Write one verification check: double entry [1]

A visual check also scores.

(c)

Validation checks that the data entered is possible and sensible. It cannot tell if the data is correct. [1]

Verification checks that the data entered matches the data that was meant to be entered (the source). It does not check the data against set rules. [1]

KEY IDEAValidation checks data is reasonable; verification checks it was typed in the way it was meant to be.
TOTAL 7 marks

Official mark scheme

Mark scheme for 2210/21/M/J/20 question 3
VIDEO
▶ Topic lesson

A lesson on this topic · by Mr Bulmer's Learning Zone. 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.