OCR GCSE Computer Science · J277
Paper 2
A mistake in a program’s instructions that causes incorrect behaviour, even though the code obeys the language’s grammatical rules.
Revise: Identifying Common ErrorsA logic error is a mistake in what the instructions do. The instructions are valid, but the program behaves differently from what was intended: it might produce an incorrect answer, miss an item or repeat forever.
- Revise: Syntax and Logic Errors
An error in a program’s instructions that allows it to run but produces unexpected or incorrect output.