Exam 7: Input Validation

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

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)

Often a Boolean function can be used to validate data.

(True/False)
4.9/5
(34)

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)

The priming read is placed _________ the loop.

(Multiple Choice)
4.8/5
(32)

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)

Which of the following is not a check for data accuracy?

(Multiple Choice)
4.9/5
(33)
Showing 21 - 40 of 44
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)