8.1 · Lesson 6 of 7

Validation in code

Syllabus 8.1.4Syllabus 8.1.8

What this lesson covers

  • Use totalling, counting and string handling
  • Write maintainable programs

Key vocabulary

Validation
An automatic check that data is reasonable before it's accepted.
Range check
Makes sure a value is between set limits.
Presence check
Makes sure data has been entered.
Length check
Makes sure data has a set number of characters.
Format check
Makes sure data matches a set pattern.
Type check
Makes sure data is the right data type.
Character check
Makes sure a string doesn't contain unacceptable characters.
Verification
Checks data has been entered accurately, e.g. double entry.

Check your learning

  • Quick check: 4 questions
  • Key vocabulary test: 8 terms
  • Activity 1: Validation checks · 8 questions
  • Activity 2: Validation quiz · 8 questions
  • Activity 3: Which check? · drag and drop
Loading Bits of Bytes…