2.4.1 Boolean Logic Flashcards
1
Q
What is the purpose of a truth table? [2]
A
To predict all possible outputs [1] from a program given all possible inputs [1]
2
Q
What are the three Boolean operators? [3]
A
AND [1] OR [1] NOT [1]
3
Q
What is the rule for an AND gate? [1]
A
Both inputs must be True / 1 [1]
4
Q
What is the rule for an OR gate? [1]
A
One or both inputs must be True / 1 [1]
5
Q
What is the rule for a NOT gate? [1]
A
Input must be False [1] (A NOT gate flips the input)
6
Q
Which gate is this? [1]
A
And [1]
7
Q
Which gate is this? [1]
A
NOT [1]
8
Q
Which gate is this? [1]
A
OR [1]
9
Q
What would be the outcome of this gate if A was 1 and B was 0?
A
1