Worked solution from the Algorithm design and problem-solving Paper 2 Algorithms, Programming and Logic booklet, Part 4 of 8.
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]
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.
▶ 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.