Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1Name | Data type | Format | Description | Example | Validation | AOne complete data dictionary row that documents the studentAge variable | |
| 2studentAge | Integer | 2 digits | Age in years | 15 | Whole number from 12 to 19 | BThe column headings of a data dictionary, with one row for each variable or field | |
| 3The data type column tells the programmer how to declare and store the value (text, whole number, decimal, date or Boolean) | CThe example value is a decimal, but the data type is Integer. The example must match the data type, for example 3. | |
| 4The validation column gives a rule that supports testing, because testers can build test data that passes and fails it | DName: ticketPrice | Data type: Floating point | |
| 5Name: x | Data type: Text | Description: (blank) | EThe name is vague and the description is missing, so other developers cannot tell what the data element is for. Use a meaningful name like studentName and write a clear description. | |
| 6Name: quantity | Data type: Integer | Example: 2.5 | FValidation: Range 0 to 100 | Test with 0, 100, -1, 101 |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
data dictionary — A table listing each data element with its name, data type, size or format, description and validation rule, so everyone uses the data the same way when coding and testing.Name | Data type | Example | ValidationName: studentAge
Data type: Integer
Validation: range 12 to 18Name: dateOfBirth
Format: DD/MM/YYYY
Example: 25/03/2008Name: password
Data type: String
Validation: length >= 8Name: postcode
Size: 4 characters
Example: 3000