Robust ProgramsMedium Exam FrequencyOCR
Input Validation
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 be part of a solid GCSE revision cycle.
Study this topic
Sample Flashcards
What is validation?
Checking input data is sensible and follows rules before processing
What is a type check?
Checking data is the correct data type (e.g., integer not text)
Sample Questions
A program asks the user to enter a score between 1 and 10. Which validation check should be used to ensure the number is within this range?
A registration form collects a username. The username must: not be blank, contain only letters and numbers, and be between 6 and 20 characters long. Identify three validation checks and explain what each one does for this input.
15
exam-style questions
8
revision flashcards
Ready to revise Input Validation?
Get personalised daily study plans, adaptive quizzes, and spaced repetition flashcards.
Join Alpha