Chapter 6: Validation Flashcards

1
Q

Validation techniques

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

Length check

A

Process of ensuring that input data is not too short or too long

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

Range check

A

Process of ensuring that input data is within the required range of values

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

Presence check

A

Process of ensuring that all required inputs are provided

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

Format check

A

Process or ensuring that input data matches a required arrangement or pattern

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

Types of program error

A
  1. Syntax errors
  2. Run-time errors
  3. Logic errors
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Syntax errors

A

Errors that are due to incorrect source code that does not follow the rules of the language

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

Run-time errors

A

Errors that are detected while the program is running, usually causing the program to crash or hang

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

Logic errors

A

Errors that usually do not cause the program to crash or hang immediately;instead the program does not give the expected output

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

Conditions for test cases

A
  1. Normal conditions
  2. Boundary conditions
  3. Error conditions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Bug

A

Deflect in a program that causes it to behave in an unintended manner

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

Debugging

A

Process of identifying and removing deflects from a program

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

Debugging techniques

A
  1. Using intermittent print statements

2. Testing the program in chunks or parts

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