Six original Cambridge-style questions on validation and verification, including a check digit calculation, a parity block and a validation routine in 9618 pseudocode.
Explain the difference between validation and verification.
A library system records a member ID (format: one letter then five digits), a date of birth and the number of books borrowed (0 to 8). Name and describe a different validation check suitable for each of the three fields, and say why validation alone cannot ensure the data is correct.
A code uses a modulo 11 check digit with weights 5, 4, 3, 2 for the four data digits. (a) Calculate the check digit for 5073. (b) The code is typed as 50373. Show whether it is accepted.
Data is sent using even parity in a parity block. Bit 1 of each byte is the parity bit. The block received is:
| Byte 1 | 10110100 |
|---|---|
| Byte 2 | 01100110 |
| Byte 3 | 11010000 |
| Parity byte | 00000110 |
Identify the bit that is in error and give the corrected byte.
Write pseudocode to input a password and keep asking until it has a length of at least 10 characters and the user then enters the same password a second time. Output a suitable message for each failure.
A file is transferred with a checksum and every byte also has a parity bit. Explain why an error could still go undetected.
Mark this once you have attempted all six and checked your working. It records a Practiced badge on the topic and adds a one-time bonus. Revealing the solutions alone does not count.