Which of the following is not a check for data accuracy?
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
Which of the following library functions could be used to validate the length of a string?
random
isString
length
toUpper
Which of the following is not an input validation error type?
Empty input
Incorrect data type
Inaccurate data
All of these are input validation error types
Which of the following library functions could be used to simplify the process of string validation?
isReal
isInteger
In addition to using loops to validate data, ________ can also be used to validate data.
String Function
Real Function
Integer Function
Boolean Function
None of These
True/False: An input validation loop is sometimes called an error handler.
True
False
True/False: If the user provides bad data as input to a program, the program will correct the data and produce output.
True/False: Often a Boolean function can be used to validate data.
True/False: Checking for accuracy of data, even when the user provides the right type of data, is part of input validation.
True/False: Programs should be designed such that all input is inspected before it is processed and bad data is discarded.