Please enable JavaScript.
Coggle requires JavaScript to display documents.
Types of errors (Logic error (Common Logic errors (~ Incorrect…
Types of errors
Logic error
~ The syntax of the code is correct
~ The code doesn't do what it should
~ Will usually run normally but with some unexpected results
~ Usually detected while testing
~ May sometimes cause a run-time error
Common Logic errors
~ Incorrect mathematical formulae
~ Misplaced brackets
~ Instructions written in the wrong order
~ Incorrect conditions provided for Loops / Selection statements
Syntax error
~ Code does not follow the rules of the programming language
~ Usually detected during development
~ Program will not be completed
Common Syntax errors
~ Using variables without declaring them
~ Incorrect spelling of variable names
~ Passing incorrect / insufficient parameters
~ Missing parts of multiline statements
~ Data type mismatch
~ Missing / extra brackets