Errors Flashcards
(4 cards)
How can programming errors be generally grouped
Syntax error
Runtime error
Logic errors
Syntax errors
Occurs when a compiler checks your code and does not understand the statement
Syntax refers to the form and structure of the programming language
Eg
Leaving out semicolons or a colon or begin and end
Runtime error
These errors occur when the program is running and you ask your program to do a task that is either impossible or impossible and certain circumstances
Eg
When division takes place and the user enters zero divide the computer computer will give a runtime because division by zero is inadmissible
Logic errors
These errors occur when they are errors in the logic of the program or algorithm
The program compass and runs creating but produces the incorrect results