Erstellt von Andrew Lewis
vor fast 4 Jahre
|
||
Frage | Antworten |
GIGO stands for _____. | Garbage in, Garbage out |
The integrity of a program's output is only as good as the integrity of the program's _____. | Input |
The 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 |
Validation loops are also known as _____. | Error Traps (Error Handlers) |
The term "empty input" describes what happens when _____. | An input operation attempts to read data, but there is no data to read. |
Occurs when an input statement executes and the user simply presses the "Enter/Return" key without typing a value. | Empty Input |
The practice of anticipating errors that can happen while a program is running, and designing the program to avoid those errors. | Defensive Programming |
When 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 |
What 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. |
If 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. |
True/False: The priming read appears inside the validation loop. | False: The priming read appears outside, just before the validation loop. |
Möchten Sie mit GoConqr kostenlos Ihre eigenen Karteikarten erstellen? Mehr erfahren.