Exam 7: Input Validation
Exam 1: Introduction to Computers and Programming48 Questions
Exam 2: Input, processing, and Output48 Questions
Exam 3: Modules48 Questions
Exam 4: Decision Structures and Boolean Logic44 Questions
Exam 5: Repetition Structures44 Questions
Exam 6: Functions44 Questions
Exam 7: Input Validation44 Questions
Exam 8: Arrays46 Questions
Exam 9: Sorting and Searching Arrays43 Questions
Exam 10: Files43 Questions
Exam 11: Menu-Driven Programs43 Questions
Exam 12: Text Processing31 Questions
Exam 13: Recursion43 Questions
Exam 14: Object-Oriented Programming43 Questions
Exam 15: Gui Applications and Event-Driven Programming43 Questions
Select questions type
The empty read is not an obvious input error and is a difficult one to handle.
(True/False)
4.8/5
(37)
Which of the following statements is true about this Boolean expression?
Score < 0 AND score > 100
(Multiple Choice)
4.9/5
(37)
The acronym ___________ is used by programmers to refer to the fact that computers cannot tell difference between good and bad data.
(Short Answer)
4.8/5
(38)
Using a ________________ function many times would simplify the long compound Boolean expression that is used by a validation loop.
(Short Answer)
4.8/5
(39)
A _________ loop could be used to validate input instead of using the priming read.
(Short Answer)
4.8/5
(33)
The purpose of the __________ is to get the first input value for the validation of a loop.
(Multiple Choice)
4.8/5
(42)
Input ______________ is commonly done with a loop that iterates as long as an input variable contains bad data.
(Multiple Choice)
4.8/5
(33)
_______________ happens when an input operation attempts to read data,but there is no data to read.
(Multiple Choice)
4.7/5
(34)
When a loop rejects any input except the strings "yes" and "no" then it is performing a case-___________ comparison.
(Short Answer)
4.8/5
(35)
The string _________ function plays a role in the string's validity when a minimum number of characters are required to be entered.
(Short Answer)
4.9/5
(46)
Checking for reasonableness of data is programmatically impossible.
(True/False)
4.8/5
(30)
When using string input validation it is wise to use the library function to convert the input to upper case or lowercase so case-sensitive string comparisons can be made.
(True/False)
4.8/5
(30)
An error trap can be performed by a(n)____________________ validation loop.
(Short Answer)
4.9/5
(30)
If the user provides bad data as input to a program,the program will correct the data and produce output.
(True/False)
4.9/5
(33)
The practice of anticipating errors that can happen while a program is running and designing the program to avoid those errors is called defensive programming.
(True/False)
4.9/5
(45)
Checking for accuracy of data,even when the user provides the right type of data,is part of input validation.
(True/False)
4.9/5
(40)
When a payroll program verifies that no value greater than 168 is entered for the number of hours worked in a week,it is performing a ___________________ check.
(Short Answer)
4.8/5
(43)
Showing 21 - 40 of 44
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)