Input And Output (Ch6) (M2) Flashcards
If you input something incorrectly, what will happen to the output?
If you input something wrong, it will be processed and be outputted as something wrong.
This is known as Garbage In, Garbage Out (GIGO)
Simply, if you input wrong information, you will get wrong information back.
What is validation? What doesn’t it check?
Validation is an automatic computer check to ensure that the data entered is sensible and reasonable. It doesn’t check the accuracy of data.
Give three types of validation checks
Types of validation checks:
Prescence check, Range check, Length check, Format check, Spell check
What does a range check check for?
A range check checks that the input falls within a specified range.
This is usually applied to numbers and dates, but can apply to characters.
For example, when making a payment to someone, the amount to be entered might be set to be greater than zero and not greater than the funds available.
What does a length check check for?
Checks that the input is not too long or short.
For example, a surname will require at least one letter, but is unlikely to require more than 40.
What does a prescence check check for?
A prescence check checks that a data value has been entered. For example, entering a quantity when placing an order.
What does a format check check for?
A format check checks that the data is in the correct format, such as entering a date in the format DD/MM/YYYY.
What does a type check check for?
A type check checks that the data must be of a specified data type, such as an integer when specifying a quantity.
What is the purpose of data sanitisation?
The purpose of data sanitisation is to hide or protect data so it can’t be seen or disclosed.
Give two examples of data sanitisation
Two examples of data sanitisation: masking and input sanitisation.
What does masking do?
Masking hides visible data by replacing it with something else
What does input sanitisation do?
Input sanitisation checks that data is entered and removes anything that might be potentially dangerous
What is 2 factor authentication?
Two factor authentication is where the user enters in their username and password. An authentication code is then sent to the user’s mobile device. The user then has to enter their authentication code to log into the application.
Give an example of a service/company that uses 2 factor authentication
Google drive, amazon, apple all use 2 factor authentication
What is a lookup table?
A lookup table is a table of acceptable entries
What is authentication?
Authentication is a technique used to prove online identity
It is a process where a user is confirming that they are who they say they are on a computer system.
A user provides a login and password which is stored in a system. What is the problem with this?
This does not prove the actual person is entering this data, as might be the case with identity theft.
What does single factor authentication include?
Single factor authentication includes inputting:
Username and password