Chapter 6: How Do I Ensure That a Program Works as Intended? Flashcards
Data validation
Process of ensuring input data supplied to the system satisfies a set of requirements
Length check
Ensure that the input data is not too short or too long
Range check
Ensure that input data is within the required range of values
Presence check
Ensure that all required inputs are provided
Format check
Ensure that input data matches required arrangement or pattern
Syntax error
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
Run-time error
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
Logic error
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
Crash
Sudden stop of a program due to an error
Hang
Unresponsiveness of a program due to an error
Normal conditions
Situations where input data follows what is expected during normal use of program
Boundary conditions
Situations where input data follows what is expected during normal use of program
Error conditions
Situations where input data would normally be rejected by the program
Bug
Defect in a program that causes it to behave in an unintended manner
Debugging
Process of identifying and removing defects from a program