Home / Questions / What are the types of program errors?
Explanatory Question

What are the types of program errors?

👁 40 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

There are mainly four types of program errors:
(i) Syntax errors – Errors that occur when the rules (syntax) of a programming language are violated.
(ii) Semantic errors – Errors that occur when the code follows the syntax but is improperly structured or logically incorrect.
(iii) Logical errors – Errors that occur when the program runs but does not produce the expected output due to incorrect logic.
(iv) Run-time errors – Errors that occur during execution, usually due to unavailable resources or unexpected values.