This key facts covers Types of Validation within Input Validation for GCSE Computer Science. Revise Input Validation in Robust Programs for GCSE Computer Science with 15 exam-style questions and 8 flashcards. This topic appears regularly enough that it should still be part of a steady revision cycle. It is section 2 of 5 in this topic. Use this key facts to connect the idea to the wider topic before moving on to questions and flashcards.
Topic position
Section 2 of 5
Practice
15 questions
Recall
8 flashcards
Types of Validation
| Type | What It Checks | Example |
|---|---|---|
| Range Check | Value within min/max limits | Age between 0 and 120 |
| Type Check | Data is correct data type | Age is an integer, not text |
| Length Check | Data has required length | Password at least 8 characters |
| Presence Check | Field isn't empty | Email address required |
| Format Check | Data matches expected pattern | Postcode: LL## #LL |
| Check Digit | Calculated digit matches | Last digit of barcode |
| Lookup Check | Value exists in a list | Country in list of countries |