2210/21/M/J/25 question 2: worked solution (May/June 2025, paper 21)
Show as plain textHide plain text
Cambridge O Level Computer Science 2210 · 7.5 Validation and verification checks Worked solution from the Algorithm design and problem-solving Paper 2 Algorithms, Programming and Logic booklet, Part 4 of 8. Q33 2210/21/M/J/25 original Q2 Structured · 7 marks 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 IDEA Validation checks data is reasonable; verification checks it was entered correctly. TOTAL 7 marks Official mark scheme VIDEO ▶ Topic lesson A lesson on this topic · by Mr Bulmer's Learning Zone. Tap the picture to open it on YouTube.