Please enable JavaScript.
Coggle requires JavaScript to display documents.
Errors :smiley: (Logic (Examples (Incorrect mathematic formulae, Misplacedā¦
Errors :smiley:
Logic
The syntax of the code is correct
The code doesn't do what it should
Will run normally with unexpected results
Usually detected while testing
Can cause a run time error
Examples
Incorrect mathematic formulae
Misplaced brackets
Instructions written in the wrong order
Incorrect conditions provided for loops
Syntax
Code doesn't follow the rules of the programming language
Usually detected during development
Program will not be compiled
Examples
Using undeclared variables
Missing brackets
Incorrect spelling of variable names
Data type mismatch
Run-Time
Program attempts impossible operation
Causes program to crash at run time
Usually detected while testing
Examples
Division by zero
Attempts to access a non-existent file
Calculating the root of a negative number
Overflow error - the calculation is too large