Programming theory Flashcards

1
Q

Name and explain the type of errors

A
  1. Logic error: Complier can understand, but returns an undesired result
  2. Runtime error: Complier can understand the code, however is unable to execute the code, resulting in an unexpected exit during execution
  3. Syntax error: Complier unable to understand, and thus unable to execute
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Name and explain the types of test cases

A
  1. Normal test: input which programs expects to encounter and handle
  2. Abnormal test: input which falls outside the set of acceptable values and program expected to raise an error message/handle the error
  3. Extreme test: input which falls at the extreme ends of the acceptable set of values, where special handling could be required
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is data validation?

A

Data verification checks that data entered meets a set of requirements before further processing

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

What is data verification?

A

Data verification ensures that data entered is what the user intended to enter

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

State the techniques of data validation

A
  1. Range check
  2. Format check
  3. Length check
  4. Presence check
  5. Check digit
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

State the techniques of data verification

A
  1. Double entry
  2. Visual Check
How well did you know this?
1
Not at all
2
3
4
5
Perfectly