Validation Worksheet
- 10 questions
- Understand the need for validation checks to be made on input data and the different types of validation check
- Difficulty: Medium
- Board: CAIE
- Attempt online on the examination portal
Here are the first 3 questions. Click “View all questions” to see the complete assessment.
Q1.
Q2.
A freezer-monitoring system accepts temperatures from −25 to −15 inclusive. Why is a range check more suitable than a type check alone?
Q3.
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?
Q4.
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?
Q5.
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?
Q6.
A comment field allows a maximum of 200 characters. Why is a maximum-length check appropriate for this field?
Q7.
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?
Q8.
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?
Q9.
The table shows results from testing a single validation rule on a reference field. Which rule is consistent with all four results?
Q10.
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?
What this assessment covers
Concepts Tested
- Testing and Debugging
- Understand the need for validation checks to be made on input data and the different types of validation check
Question Mix
- Medium questions included
Skills you build
- Understand