Unit 4 - Simple error handling techniques Flashcards
What is data validation ?
Carried out by a computer when data is entered, it makes sure its sensible and within acceptable limits
Whats a presence check ?
Ensures the user has not left the field blank
Whats a range check ?
Ensures the data entered is in the correct range. Make us of upper and lower boundaries
Whats a length check ?
to ensure the data entered does not exceed a certain number of characters or is more longer than a certain amount
Whats a type check ?
to ensure the data entered is the correct data type
Whats a format check ?
used to endure that data entered is in the correct format. This means the data must conform to a pattern
Whats an execution error ?
they are detected during the program execution and will cause the program to crash. e.g division by 0
What is a logic error ?
arise in programs that compile and run without error . the output does match the output expected.
What is debugging ?
the process of detecting and correcting or removing errors from the code
What is exception or error handling ?
the process where a program will attempt to deal with an error generated at run time so that the program does not crash