Chapter 6: How Do I Ensure That a Program Works as Intended? Flashcards

1
Q

Data validation

A

Process of ensuring input data supplied to the system satisfies a set of requirements

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

Length check

A

Ensure that the 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

Ensure 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

Ensure 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

Ensure that input data matches required arrangement or pattern

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

Syntax error

A

Errors that cause the translation process from source code to machine code to fail

Occur when the compiler or interpreter tries to translate the source code to machine code

Due to spelling mistakes or the incorrect sequence of symbols in source code

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

Run-time error

A

Errors that occur while a program is running, usually causing the program to crash or hang

Occur when the program is being run

Due to incorrect use of commands, input data that has not been properly validated or conditions occurring outside of the program’s control

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

Logic error

A

Errors that occur while a program is running but usually do not cause the program to crash or hang immediately; instead the program does not give the expected output

Occur when the program is being run

Due to use of an incorrect or incomplete algorithm

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

Crash

A

Sudden stop of a program due to an error

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

Hang

A

Unresponsiveness of a program due to an error

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

Normal conditions

A

Situations where input data follows what is expected during normal use of program

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

Boundary conditions

A

Situations where input data follows what is expected during normal use of program

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

Error conditions

A

Situations where input data would normally be rejected by the program

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

Bug

A

Defect 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
15
Q

Debugging

A

Process of identifying and removing defects from a program

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

Breakpoint

A

Position in source code that is chosen for a program to pause or stop, usually for debugging purposes

17
Q

Step in

A

Moves the current step into source code for any function called at the current step; otherwise moves the current step to the next line of source code

18
Q

Step out

A

Runs the program until either a breakpoint is reached or the current function being called ends, then moves the current step to where the program is paused

19
Q

Step over

A

Moves the current step to the next line of source code