What is a logical expression?
A BOOLEAN expression where the result is True or False.
What do logical operators do?
They join together logical expressions.
Name 4 logical operators.
What is a truth table?
A method of showing the inputs and outputs of a logical operator.
What represents true and false in a truth table?
True: 1
False: 0
How does OR work? (2)
How does XOR work? (2)
How does NOT work? (2)
What is the order presence of the
these operators?
NOT → AND → OR
How are logical operators used in computing?
How are logical operators used in clearing registers?
A register can be cleared using an AND operation.
How are logical operators used in masking? (2)
What are Boolean laws for?
Simplifying Boolean expressions.
What is the commutative law?
Order is not important on either side of an operator.
What is the identity law?
Gets rid of redundant data.
What is the associative law?
The order of multiple consecutive AND or OR operators are unimportant.
What is the distributive law?
This is how elements outside the brackets are distributed within the brackets.
What is the complement law?
If one side of an OR operator contains the content of the other side, the more complex side can be removed.