Zusammenfassung der Ressource
Frage 1
Frage
Which of the following is not a check for data accuracy?
Antworten
-
Salary within the allowable range
-
Time measurements
-
ZIP codes in correct format and valid
-
All of these are checks for data accuracy
-
None of these
Frage 2
Frage
Which of the following library functions could be used to validate the length of a string?
Antworten
-
random
-
isString
-
length
-
toUpper
-
None of these
Frage 3
Frage
Which of the following is not an input validation error type?
Frage 4
Frage
Which of the following library functions could be used to simplify the process of string validation?
Antworten
-
length
-
toUpper
-
isReal
-
isInteger
-
None of these
Frage 5
Frage
In addition to using loops to validate data, ________ can also be used to validate data.
Antworten
-
String Function
-
Real Function
-
Integer Function
-
Boolean Function
-
None of These
Frage 6
Frage
True/False: An input validation loop is sometimes called an error handler.
Frage 7
Frage
True/False: If the user provides bad data as input to a program, the program will correct the data and produce output.
Frage 8
Frage
True/False: Often a Boolean function can be used to validate data.
Frage 9
Frage
True/False: Checking for accuracy of data, even when the user provides the right type of data, is part of input validation.
Frage 10
Frage
True/False: Programs should be designed such that all input is inspected before it is processed and bad data is discarded.