Worked solution from the Algorithm design and problem-solving Paper 2 Algorithms, Programming and Logic booklet, Part 4 of 8.
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).
Write one verification check: double entry [1]
A visual check also scores.
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]
▶ 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.