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

Q33 · 2210/21/M/J/25 Q2

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

Q332210/21/M/J/25original Q2Structured · 7 marks
Question 2 from 2210/21/M/J/25

Worked solution

(a)

Match each requirement to the check that tests it.

Date of birth between two dates → range check [1]

Name has been entered → presence check [1]

Password has exactly 12 characters → length check [1]

Student ID of 2 letters then a 4-digit number → format check [1]

(b)

Write the check, then what it does.

Verification check: double entry check [1]

Enter the password twice [1]

The system only accepts it if both entries are identical [1]

A visual check also scores: look at the data that was entered and confirm it matches what was intended.

KEY IDEAValidation checks data is reasonable; verification checks it was entered correctly.
TOTAL 7 marks

Official mark scheme

Mark scheme for 2210/21/M/J/25 question 2
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.