GCSE Computer Science · Defensive design, validation, testing, errors, high/low-level languages, translators and IDEs
Robust programs, testing, languages and translators
GCSE · AQA · OCR
Robust programs, testing, languages and translators
Defensive design, validation, testing, errors, high/low-level languages, translators and IDEs
Study Simplified revision slides
In this deck
Exam boardsAQAOCR
Both: Validation, authentication, testing, translators.; OCR: IDE features (2.5.2) are explicitly named in OCR.; AQA: Assembly language and assemblers are named in 3.4.4.
Tip: press T or tap Test me to hide the answers and quiz yourself.
Have a go first
Which validation check ensures an age is between 11 and 18?
Range check. A range check tests upper and lower limits.
Guessing is fine. Trying before you revise helps it stick.
Key facts
Defensive design
Designing programs to anticipate misuse and handle errors so they do not crash
Validation
Checking that input data is sensible/reasonable before it is used
Range check
Validation that data is within allowed limits, e.g. age between 0 and 120
Type check
Validation that data is the correct data type
Key facts
Length check
Validation that data has an acceptable number of characters
Presence check
Validation that data has been entered
Format check
Validation that data matches a pattern, e.g. a postcode
Authentication
Confirming the identity of a user, e.g. username and password
Key facts
Maintainability
Making code easy to understand and update: comments, indentation, meaningful names, subroutines
Syntax error
Code breaks the rules of the language, so it will not run, e.g. a missing bracket
Logic error
The program runs but gives the wrong result, e.g. using < instead of <=
Iterative testing
Testing during development, module by module
Key facts
Final (terminal) testing
Testing the whole program at the end of development
Normal test data
Typical data that should be accepted
Boundary test data
Data at the edge of what should be accepted (and just outside)
Erroneous (invalid) test data
Data that should be rejected
Key facts
High-level language
Uses English-like statements; portable; must be translated, e.g. Python
Low-level language
Close to machine code; e.g. assembly language and machine code
Machine code
Binary instructions the CPU can execute directly
Assembler
Translates assembly language into machine code
Key facts
Compiler
Translates the whole high-level program into machine code in one go, producing an executable
Interpreter
Translates and runs a high-level program one line at a time
IDE
Integrated Development Environment: software with tools for writing and testing programs
IDE features
Editor, error diagnostics, run-time environment, translator, debugging tools such as breakpoints
Key terms
- Defensive design
- Designing programs to anticipate misuse and handle errors so they do not crash
- Validation
- Checking that input data is sensible/reasonable before it is used
- Range check
- Validation that data is within allowed limits, e.g. age between 0 and 120
- Type check
- Validation that data is the correct data type
- Length check
- Validation that data has an acceptable number of characters
- Presence check
- Validation that data has been entered
Quick check 1
Which validation check ensures a field is not left blank?
Presence check. Presence checks reject empty input.
Quick check 2
Which check ensures a password has at least 8 characters?
Length check. Length checks count characters.
Teaching? Open in present mode. Swipe, use the arrow keys or tap the arrows. Download PDF opens your print window: choose "Save as PDF".
Robust programs, testing, languages and translators: key facts
Everything on the slides, as a list you can read or print.
- Defensive design
- Designing programs to anticipate misuse and handle errors so they do not crash
- Validation
- Checking that input data is sensible/reasonable before it is used
- Range check
- Validation that data is within allowed limits, e.g. age between 0 and 120
- Type check
- Validation that data is the correct data type
- Length check
- Validation that data has an acceptable number of characters
- Presence check
- Validation that data has been entered
- Format check
- Validation that data matches a pattern, e.g. a postcode
- Authentication
- Confirming the identity of a user, e.g. username and password
- Maintainability
- Making code easy to understand and update: comments, indentation, meaningful names, subroutines
- Syntax error
- Code breaks the rules of the language, so it will not run, e.g. a missing bracket
- Logic error
- The program runs but gives the wrong result, e.g. using < instead of <=
- Iterative testing
- Testing during development, module by module
- Final (terminal) testing
- Testing the whole program at the end of development
- Normal test data
- Typical data that should be accepted
- Boundary test data
- Data at the edge of what should be accepted (and just outside)
- Erroneous (invalid) test data
- Data that should be rejected
- High-level language
- Uses English-like statements; portable; must be translated, e.g. Python
- Low-level language
- Close to machine code; e.g. assembly language and machine code
- Machine code
- Binary instructions the CPU can execute directly
- Assembler
- Translates assembly language into machine code
- Compiler
- Translates the whole high-level program into machine code in one go, producing an executable
- Interpreter
- Translates and runs a high-level program one line at a time
- IDE
- Integrated Development Environment: software with tools for writing and testing programs
- IDE features
- Editor, error diagnostics, run-time environment, translator, debugging tools such as breakpoints
✓ Written by Study Simplified to the AQA · OCR GCSE Computer Science specification, and independently fact-checked against the official specification. Last reviewed 1 December 2026.
Study Simplified