SHARE
SPREAD
HELP

The Tradition of Sharing

Help your friends and juniors by posting answers to the questions that you know. Also post questions that are not available.


To start with, Sr2Jr’s first step is to reduce the expenses related to education. To achieve this goal Sr2Jr organized the textbook’s question and answers. Sr2Jr is community based and need your support to fill the question and answers. The question and answers posted will be available free of cost to all.

 

#
Authors:
Tony Gaddis
Chapter:
Repetition Structures
Exercise:
True Or False
Question:7 | ISBN:9780132576376 | Edition: 2

Question

(True/False) The process of input validation works as follows: when the user of a program enters invalid data, the program should ask the user “Are you sure you meant to enter that?” If the user answers “yes,” the program should accept the data.

TextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbook

Answer

FALSE.

Explanation:

  • Most of the time, input validation doesn't involve asking the user if they're sure they're not entering incorrect data and then accepting it if they say "yes."
  • Input approval is centered around guaranteeing that the entered information meets explicit standards or imperatives, and in the event that it doesn't, suitable moves are made to deal with the invalid info.
  • When a user enters incorrect data during input validation, the program typically provides feedback or prompts the user to correct their input. Error messages, highlighting the incorrect input, or asking the user to re-enter the data until valid input is provided are all examples of this.
  • Accepting invalid data without appropriate validation goes against the goal of input validation, which is to ensure that the data being entered is correct and true.

Hence, the given statement is False.

0 0

Discussions

Post the discussion to improve the above solution.