INFORMATION TECHNOLOGY
Grade 12
2024
DATA VALIDATION TASK
Marks: 50 Due Date:
OVERVIEW OF TASK:
Each student must provide their own topic for their task which must differ for each student.
If students do not have unique topics, then students will be asked to draw a topic from a list of
unique topics.
The purpose of this task is to validate input using GUI components (radio buttons, combo
boxes, check boxes etc.), exception handling and programming code with detailed error
messages. A description of the requirement of the task is included below:
1. Create a GUI to accept as input the following FOUR data types:
● Numeric
● Boolean
● String
● Date/Time
2. Select the most appropriate GUI component to eliminate incorrect input and provide
the first level of data validation.
3. Provide a further level of validation using programming code (and possibly exception
handling) to perform any FOUR of the following validation checks on one or more
fields.
Note that some fields may not require further validation checks as they may be
sufficiently validated using the appropriate GUI component.
Page 1 of 4 IT Grade 12: Data Validation Task - 2024
Validation Type How it Works Example
Format Check Check that data entered is in the A number place being ABC 999 GP
right format
Data Type Check Checks whether the data The value for the height of a person
entered is the correct data type is a real number
Range Check Checks whether the data The number of hours worked can
entered falls within a specified be between 0 and 50
range
Length Check Checks whether the length of A password having a minimum of
data entered is not too long or 10 characters
too short
Presence Check Checks that the data has been An ID number cannot be blank
entered in
Logic Check Checks whether the data A student in Grade 12 cannot have
entered is logically correct an age less that 16 or greater than
19
Check Digit Uses the last one or two digits in Bar Codes, ISBN numbers, Credit
a value to check that the other card numbers
digits in the value are correct
Lookup Table Checks whether the data There are only seven possible days
entered is in a list of acceptable in a week
values
4. The program must include a detailed error message for each and every error.
Incorrect values must be indicated by highlighting the field’s component and describing
the error in an adjacent label. If all fields are acceptable, then a label must display an
appropriate message.
5. Submit a Data Validation document as evidence of your task.
Your document must consist of the following:
a. Title page including the student’s name, examination number, centre details
and the title of the task
b. A table of contents, including page numbers
c. Interface Design with labelled input components
d. A table that describes:
● the name of each field to be input
● the data type for each field
● the GUI component chosen for each field
● the reason for the choice of GUI component for each field
● the type/s of data validation that is performed for each field
● the reason for the choice of data validation type/s for each field
e. A test plan for each data validation type using standard, extreme and
abnormal data
f. Evidence of testing (before and after screen shots)
g. A copy of all programming code
Page 2 of 4 IT Grade 12: Data Validation Task - 2024
STUDENT NAME: GRADE:
Possib
Criteria Actual
Description le
Mark
Mark
Interface Design Requirements (GUI): Use the four categories to allocate marks:
Screen is clearly laid out, with clear font, colour, size of font, and button to
perform validation (3) -1 for each error in each category up to
8
Fields aligned and clearly labelled (2) the maximum in each category
Screen has a title and centred on the screen (1)
Each input component has an associate label (2)
Variety of Data Types Used: -1 for each missing data type
4
Four Data Types present i.e. String, Numeric, Boolean and Date/Time
Choice of appropriate components for each data type: -1 for incorrect choice of component or
String, Numeric, Boolean and Date/Time missing component for each data type 4
Valid reason for choice of each component: -1 for incorrect or missing reason for
4
String, Numeric, Boolean and Date/Time choice of component for each data type
Naming Conventions: -1 for incorrect name, maximum of two
deductions 2
Fields and GUI components all correctly named according to conventions
Programming code with possible exception handling for FOUR of the 3 marks for each validation type:
validation types:
(Format Check, Data Type Check, Range Check, Length Check, Presence Check, Logic Check, Check Digit, Lookup Table)
-1 for each error in each validation type,
maximum of three deductions for each 12
Correct, working code for each of the four validation types chosen (2 X 4) type
Validation achieves what is described in the reason for the chosen validation
type (1 X 4)
Descriptive error message for each validation type: Use the three categories to allocate
An error message for each of the four types is provided with a detailed marks:
explanation (1 X 4)
8
Each error message is placed in a label next to the component with the -1 for each error in each category up to
incorrect data (2) the maximum in each category
A confirming message is displayed if all input is valid (2)
Testing for each validation type: Use the two categories to allocate marks: 8
Page 3 of 4 IT Grade 12: Data Validation Task - 2024
Choice of standard, extreme and abnormal data to test each validation type (4)
Evidence of testing (4) -1 for incorrect data for each validation
type, maximum of four deductions
-1 for lack of evidence of testing for each
validation type, maximum of four
deductions
TOTAL 50
Page 4 of 4 IT Grade 12: Data Validation Task - 2024