Skip to content
MathsGenie logo
Quick links
Open app

Course home

  1. IGCSE
  2. Computer Science Edexcel
  3. Question bank

Input/output

EasyMedium
1
Question 1

Promotional voucher codes consist of exactly six characters.

The characters are one upper case letter, followed by three numbers, and then two upper case letters.

H302JK, A119WY, and M004DT are valid codes.

All voucher codes must be validated when entered by a customer.

Complete the table to show two additional validation tests.

For each test, give one example of erroneous data. The example you give should fail only that test.

Validation testErroneous data
Is it exactly 6 characters?B305K
[4]

Input/output Questions

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