Monday, 12 January 2015

F452 ch6 Testing & running a solution


Errors:

  • Syntax error: Doesn't comply to the rules of the language. [Usually detected by the translator]
  • Logic error: The code, as it is written, does something that would startle the programmer.[Usually detected whilst running]
  • Runtime error: The program attempts an impossible operation, ie dividing by zero.(eg:Overflow) [Usually detected while testing, thus causing crashes] *Exceptions can be used to prevent runtime errors.
    • Stack Overflow error.
    • Arithmetic Overflow error.
  • Type error.


No comments:

Post a Comment