All cargo container identification codes must follow a specific standard format. The code consists of two letters, followed by four digits, a hyphen, and a final check digit. For example, "US8812-7" and "gb1024-3" are valid container codes.
Complete the table to show two different validation checks (other than a pattern check) and a piece of test data that would be rejected by each validation check.
The first row has been completed as an example. The letter 'L' represents a letter (A-Z or a-z), the letter 'N' represents a single digit (0-9), and other characters represent themselves.
| Validation check | Test data |
|---|---|
| Pattern check ("LLNNNN-N") | "U8812-70" |
| [1] | [2] |
| [3] | [4] |
25 exam-style questions on Edexcel GCSE Computer Science Input/output, covering Accepting and responding to user input, Reading and writing CSV text files, Implementing validation, and Implementing authentication. Each one has a worked solution and a mark scheme showing where the marks go.