Test your knowledge with free interactive questions on Seneca — used by over 10 million students.

Runtime Errors

Runtime errors are the trickiest of the three types of errors because they are not always found during development. Software users may first encounter runtime errors.

Runtime errors

Runtime errors

  • Runtime errors are errors that happen while the program is running.
  • Runtime errors cannot be found during translation.
  • These errors can only be detected while a program is running.
  • The chance of experiencing a runtime error can be reduced through testing.
Examples of runtime errors

Examples of runtime errors

  • Bad inputs that throw an unhandled exception.
  • Receiving unexpected or corrupted data.
  • Running out of memory.

Logic Errors

Logic errors are hard to detect because the translator will not detect them for us.

Logic errors

Logic errors

  • Logic errors are mistakes in the logic of the program.
  • Programs will run, but their outcome will not be as intended.
  • Logic errors are much more difficult to debug than syntax errors.
Syntax errors

Syntax errors

  • Syntax errors are mistakes in the grammar of a language.
  • The program will not run if it contains syntax errors.
Runtime errors

Runtime errors

  • Runtime errors arise while a program is running.
  • Runtime errors cannot be detected by the translator.
Jump to other topics
1

Problem Solving

2

Programming

3

Data

4

Computers

5

Communication & The Internet

6

The Bigger Picture

Practice questions on Runtime Error

Can you answer these? Test yourself with free interactive practice on Seneca — used by over 10 million students.

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
Answer all questions on Runtime Error

Unlock your full potential with Seneca Premium

  • Unlimited access to 10,000+ open-ended exam questions

  • Mini-mock exams based on your study history

  • Unlock 800+ premium courses & e-books

Get started with Seneca Premium