Unit 4 - Simple error handling techniques Flashcards

1
Q

What is data validation ?

A

Carried out by a computer when data is entered, it makes sure its sensible and within acceptable limits

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Whats a presence check ?

A

Ensures the user has not left the field blank

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Whats a range check ?

A

Ensures the data entered is in the correct range. Make us of upper and lower boundaries

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Whats a length check ?

A

to ensure the data entered does not exceed a certain number of characters or is more longer than a certain amount

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Whats a type check ?

A

to ensure the data entered is the correct data type

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Whats a format check ?

A

used to endure that data entered is in the correct format. This means the data must conform to a pattern

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Whats an execution error ?

A

they are detected during the program execution and will cause the program to crash. e.g division by 0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a logic error ?

A

arise in programs that compile and run without error . the output does match the output expected.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is debugging ?

A

the process of detecting and correcting or removing errors from the code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is exception or error handling ?

A

the process where a program will attempt to deal with an error generated at run time so that the program does not crash

How well did you know this?
1
Not at all
2
3
4
5
Perfectly