Choose the correct answer:
An online shop validates an order quantity before calculating the total cost. Why is validation needed at this stage?
Choose the correct answer:
An online shop validates an order quantity before calculating the total cost. Why is validation needed at this stage?
Choose the correct answer:
A freezer-monitoring system accepts temperatures from −25 to −15 inclusive. Why is a range check more suitable than a type check alone?
Choose the correct answer:
A delivery form requires the number of parcels to be an integer. An input of 2.5 is rejected even though it is numeric. Which explanation identifies the validation check involved?
Choose the correct answer:
A registration form uses only a presence check on a required telephone-number field. A user enters the word 'unknown'. Why might this input pass the check?
Choose the correct answer:
A product code must contain two uppercase letters followed by four digits. The input A12345 passes a six-character length check but is still unacceptable. Which additional check would directly identify the problem?
Choose the correct answer:
A comment field allows a maximum of 200 characters. Why is a maximum-length check appropriate for this field?
Choose the correct answer:
The final digit of a library-book identifier is a check digit calculated from the other digits. When the identifier is entered, the system recalculates the check digit and compares it with the one entered. What is the main purpose of this process?
Choose the correct answer:
A security code is stored as text and must contain exactly four digits. Leading zeros are allowed. A developer suggests converting the code to an integer and checking that its value is between 1000 and 9999. Why is this unsuitable?
Choose the correct answer:
The table shows results from testing a single validation rule on a reference field. Which rule is consistent with all four results?
Choose the correct answer:
The diagram shows validation stages for the duration of an equipment loan. An entry is rejected as soon as it fails a stage. A user enters 3.5. At which stage is this entry rejected, and why?