- Home
- /
- Computational Thinking
- /
- Computational Thinking
- /
- Error Types
Error Types
Also known as: bug types, program errors
Grade 6-8
View on concept mapError types are the main categories of mistakes that can occur in a program. Students debug faster when they can name the kind of error they are dealing with.
Definition
Error types are the main categories of mistakes that can occur in a program. The most common categories are syntax errors (the code is written incorrectly), runtime errors (the program crashes while running), and logic errors (the program runs but gives the wrong answer).
๐ก Intuition
Some bugs stop the code from running, some crash it later, and some quietly give the wrong answer.
๐ฏ Core Idea
Different bugs need different debugging strategies.
Example
Formula
๐ Why It Matters
Students debug faster when they can name the kind of error they are dealing with. Error types give structure to debugging instead of treating all bugs as the same.
๐ญ Hint When Stuck
Ask three questions: Does the code run at all? Does it crash while running? Does it run but give the wrong output? Your answer usually tells you the error type.
Formal View
Related Concepts
๐ง Common Stuck Point
Logic errors are often the hardest because the program still runs, so the bug is less obvious.
โ ๏ธ Common Mistakes
- Calling every wrong answer a syntax problem even when the code runs
- Fixing one runtime crash without checking whether a deeper logic problem remains
- Ignoring compiler or interpreter messages that already identify the error category
Common Mistakes Guides
Frequently Asked Questions
What is Error Types in CS Thinking?
Error types are the main categories of mistakes that can occur in a program. The most common categories are syntax errors (the code is written incorrectly), runtime errors (the program crashes while running), and logic errors (the program runs but gives the wrong answer).
What is the Error Types formula?
When do you use Error Types?
Ask three questions: Does the code run at all? Does it crash while running? Does it run but give the wrong output? Your answer usually tells you the error type.