Please enable JavaScript.
Coggle requires JavaScript to display documents.
Error types (Logic (Common logic errors (Misplaced brackets, Instructions…
Error types
Logic
The code doesn't do what it should
Will usually run normally but with some unexpected results
The syntax of the code is correct
Usually detected while testing
May sometimes cause a run-time error
Common logic errors
Misplaced brackets
Instructions written (and therefore executed) in the wrong order
Incorrect mathematical formulae
Incorrect conditions provided for Loops/Selection statements
Syntax
Program will not be compiled
Common Syntax errors
Using variables without declaring them
Incorrect spelling of variable names
Passing incorrect/insufficient parameters
Missing parts of multi-line statements
Data type mismatch
Missing/extra brackets
Usually detected during development
Code doesn't follow the rules of the language
Run-time
Causes program to crash at run-time
Usually detected while testing
Program attempts impossible operation
Common run-time errors
Attempts to reference array elements before they are initialised
Calculating square root of a negative number
Attempts to access a non-existent file
Overflow error
Result of calculation is a number that is too large
Division by 0