Runtime Errors

Computer Science: KS3, topic 2.1.21

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.

Test yourself on Runtime Errors

  • Why can runtime errors cause a lot of problems?

Practise this topic for free