9Medium
0/4

Every smart-meter device ID registered on a utility network must follow a specific format. The format consists of three letters, followed by four digits, followed by a single letter. For example, "MTR9012A" and "mtr9012a" are valid device IDs.

Complete the table below to show two different validation checks (other than a pattern check) and a piece of test data that would be caught (rejected) by each check.

The first validation check has been done for you as an example. In the pattern format, the letter 'L' represents a letter (A-Z or a-z) and the letter 'N' represents a number (0-9).

Validation checkTest data
Pattern check ("LLLNNNNL")"1TR9012A"
[1][2]
[3][4]
[4]

Input/output Questions

Practise Edexcel GCSE Computer Science Input/output with exam-style questions for GCSE Computer Science. 29 questions covering Accepting and responding to user input, Reading and writing CSV text files, Implementing validation, and Implementing authentication, matched to the Edexcel GCSE Computer Science (1CP2) specification and written in Paper 1 and Paper 2 style. Every question includes a full worked solution and mark scheme, so you can see where marks are awarded rather than just whether you got the answer right.

PreviousNext

Input/output Questions

  1. GCSE
  2. /Computer Science
  3. /Input/output