Preview lessons, content and tests

Computer Science & Programming solved. All in one platform.

1. To trial the platform and take tests, please take a few seconds to SIGN UP and SET UP FREE.
2. Searching for something specific? See our text overview of all tests. Scroll right for levels, and lists.

Join 30000+ teachers and students using TTIO.

Syntax, Runtime, Logic Errors

When developing programs there are three types of error that can occur:

  • syntax errors
  • logic errors
  • runtime errors

Below - syntax error in a scientific calculator

Additional Reading

Suggested video

Types of Errors (Programming)

We distinguish between the following types of errors:

  • Syntax errors: errors due to the fact that the syntax of the language is not respected.

  • Semantic errors: errors due to an improper use of program statements.
  • Logical errors: errors due to the fact that the specification is not respected.

From the point of view of when errors are detected, we distinguish:

  • Compile time errors: syntax errors and static semantic errors indicated by the compiler.
  • Runtime errors: dynamic semantic errors, and logical errors, that cannot be detected by the compiler (debugging).