ITP-100 Unit 3 test Set 1 – Flashcards
Unlock all answers in this set
Unlock answersquestion
What is the famous saying among computer programmers that refers to the fact that computers cannot tell the difference between good and bad data?
a. Garbage input, garbage output
b. Garbage in, garbage out
c. Garbage output is from garbage inputted
d. Garbage out is from garbage in
e. None of these
answer
Garbage in, garbage out
question
Designing a program to avoid common errors is called ________ programming.
a. Defensive
b. Direct
c. Defective
d. Detective
e. None of these
answer
Defensive
question
Input ________ is commonly done with a loop that iterates as long as an input variable contains bad data.
a. Check
b. Validation
c. Examination
d. Priming
e. None of these
answer
Validation
question
In addition to using loops to validate data, ________ can also be used to validate data.
a. String Function
b. Real Function
c. Integer Function
d. Boolean Function
e. None of these
answer
Boolean Function
question
Which of the following is not an input validation error type?
a. Empty input
b. Incorrect data type
c. Inaccurate data
d. All of these are input validation error types
e. None of these
answer
All of these are input validation error types
question
The priming read is placed ________ the loop.
a. Below
b. Inside and before
c. Inside
d. Inside and below
e. Before
answer
Before
question
What type of function can be used to see if the password entered has the minimum number of characters?
a. Mathematical
b. Boolean
c. String
d. Trigonometric
e. None of these
answer
String
question
Accepting February 29 in only a leap year is a check that is done by a ________ check.
a. Date
b. Day
c. Month
d. Calendar
e. None of these
answer
Date
question
Which of the following library functions could be used to validate that the correct data type was input for an amount of money?
a. isInteger
b. isString
c. toLower
d. isReal
e. All of these
answer
isReal
question
An input validation loop is sometimes called an error handler.
True
False
answer
True
question
The empty read is not an obvious input error and is a difficult one to handle.
True
False
answer
False
question
Input validation is not needed if the program is well designed.
True
False
answer
False