2 - Logical Operators Flashcards
What does 1 represent?
TRUE
What does 0 represent?
FALSE
What does the operation OR do?
Takes two inputs and outputs 1 (true) if either is true
What does the operation AND do?
Takes two inputs and outputs 1 (true) if both are true
What does the operation NOT do?
Takes one input and outputs the opposite value
What does the operation XOR do?
Takes two inputs and outputs 1 if only one of the inputs is true
What is the Order of Precedence in boolean algebra? (Highest first)
Brackets
NOT
XOR
AND
OR
What does A + 0 simplify to?
A + 0 simplifies into just A
What does A + 1 simplify to?
A + 1 simplifies to just 1
What does A + A simplify to?
A + A simplifies to just A
What does A + Ā simplify to?
A + Ā will always = 1
What does A.0 simplify to?
A.0 simplifies to 0
What does A.1 simplify to?
A.1 simplifies to A
What does A.A simplify to?
A.A simplifies to A
What does A.Ā simplify to?
A.Ā simplifies to 0