Unit 10 · Lesson 4
Build the idea
Start with the concept and its key vocabulary.
A syntax error breaks the rules of the language, such as a missing Python colon. A runtime error happens after execution starts, such as dividing by zero. A logic error lets the program finish but gives the wrong result. Testing and careful tracing help locate logic errors because the translator cannot identify an incorrect intention. Refinement then improves the solution: fix faults, remove repetition, improve names or comments, use sub-programs and add required functionality.
An error that breaks language grammar and prevents the program from running or being translated.
An error that stops a program after execution has begun.
An error where the program runs but produces incorrect or unexpected output.
Finding, understanding and correcting errors in a program.
Improving an algorithm after design and testing so it is more correct, readable, efficient or useful.