Error Handling Flashcards

1
Q

What is data validation

A

carried out by a computer automatically when data is input; it ensures data is reasonable, sensible and within acceptable limits

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

What are all the vlaidation checks

A

Pressence check
Range check
Length check
Type check
Format check

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

What is a presence check

A

used to ensure user hasn’t lefta value or field blank

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

What is a range check

A

Ensure that the data entered is in the correct range
Makes use of upper and lower boundaries

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

What is a length check

A

Used to ensure entered data doesn’t exceed or isn’t shorter than a particular number of characters

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

What is a type check

A

used to ensure that the data entered is of the correct data type

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

What is a format check

A

used to ensure that data entered is in correct format
data must conform to a pattern

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

What is a syntaxt error and how does it occur

A

Error in the code entered into the code editor e.g. mispelling or omission of a symbol

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

What is an execution/run-time errors

A

Detected during program execution and will cause program to crash.
dividing by zero will cause this error

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

What is a logic error

A

Arise in programs that compile and run without error. output produced by program doesn’t match the expected output.

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

What is the two error-trapping techniques

A

Debugging
Expection/error handling

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

What is debugging

A

Process of detecting and correct or removing errors from code. may involve use of debug feature of programming language

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

What is exception/error handling

A

Process where a program will attempt to deal with an error generated at run time so that program doesn’t crash

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