2.4 Logic and Languages Flashcards
1
Q
What are the three Boolean operators?
A
- AND
- OR
- NOT
2
Q
What is a truth table?
A
- Lists outputs for logic gates
- For all possible inputs
3
Q
What is the shape of the AND operator?
A
=D-
4
Q
What is the shape of the OR operator?
A
=)>-
5
Q
What is the shape of the NOT operator?
A
=>o-
6
Q
What is data validation?
A
- Ensure the data entered is the correct format
7
Q
What is a range check?
A
- Number is within sensible range
8
Q
What is type check?
A
- Data is right type
- E.g integer, letter
9
Q
What is a length check?
A
- Text isn’t too long or short
10
Q
What is presence check?
A
- Checks data has been entered
11
Q
What is format check?
A
- Checks format is correct
12
Q
A