Flashcards
Chapter 7 (Input Validation)
Cards in this deck (11)
- 1GIGO stands for _____.Garbage in, Garbage out
- 2The integrity of a program's output is only as good as the integrity of the program's _____.Input
- 3The input operation that appears just before a validation loop is known as the _____. Its purpose is to get the first input that will be tested by the validation loop.Priming Read
- 4Validation loops are also known as _____.Error Traps (Error Handlers)
- 5The term "empty input" describes what happens when _____.An input operation attempts to read data, but there is no data to read.
- 6Occurs when an input statement executes and the user simply presses the "Enter/Return" key without typing a value.Empty Input
- 7The practice of anticipating errors that can happen while a program is running, and designing the program to avoid those errors.Defensive Programming
- 8When input is given to a program, it should be inspected before it is process, If the input is invalid, the program should discard it and prompt the user to enter the correct data. This process is known as _____.Input Validation
- 9What loop is best used to for input validation (Pretest / Posttest)? Why?Pretest Loop / A posttest loop will not display an error message when the user enters an invalid value because the condition is not tested in the beginning of the loop, but at the end.
- 10If the input that is read by the priming read is valid, how many times will the input validation loop iterate?The input validation loop wouldn't iterate at all.
- 11True/False: The priming read appears inside the validation loop.False: The priming read appears outside, just before the validation loop.
Information
- Description
- User has deleted their subject information Flashcards on Chapter 7 (Input Validation), created by Deleted user on 12/01/2021.
- Created by
- Deleted user · Jan 2021
- Updated
- Jan 12, 2021
- Views
- 13
- Tags
- History
-
- Created by Andrew Lewis · Dec 14, 2020
- Copied by Andrew Lewis · Jan 12, 2021
- Rating