1.4.3 Organisation and structure of data: Data types Flashcards
The 6 types of data.
Integer, Character, String, Real Number, Date, Boolean
Define Integer.
A positive or negative whole number (e.g 1, -14, 69)
Define Character.
A single alphanumeric or non-alphanumeric character (e.g E, A, @, #)
Define String.
More than one character in an ordered sequence (e.g “I’m A string”, “Hello World”, “ABC123”)
Define Real Numbers.
A number with or without a fraction (e.g 42.0, 3276.8, -6.9, 3.1415)
Define Date.
A reference to the typical calendar date, typically in form DD/MM/YYYY (e.g 27/05/2022)
Define Boolean.
A true or false value.
Not relevant to the WJEC GCSE exam, but boolean values can also be represented as Yes/No, 1/0 or High/Low, depending on the language or scenario.
The 5 methods of validation.
Type check, Format check, Lengh check, Presence Check, Range check.
Define Type Check.
Checks the right type of data is being entered.
Define Format Check.
Checks the data being entered is in the right pattern.
Define Lengh Check.
Checks the data being entered is the right lengh or number of characters required.
Define Presence Check.
Checks data has been entered and not left blank.
Define Range Check.
Check sets boundaries to make sure that the data falls between an upper and lower value.
How does Validation and Verification differ?
Validation is performed by the computer, and automatically ensures the data entered is within set restrictions (e.g within required lengh, format etc.)
Whereas Verification is performed by the user, and ensures that the data entered is accurate to the required information (e.g double checking the bank card information when making an online purchase, or by entering a password twice when setting up).