Primary Operator Qs
Expression Form Questions
Algabraic Laws Questions
Boolean Logic AppletWeb Security
Boolean Logic - Primary Operators
In boolean logic, operators perform operations on arguments, returning some boolean value. Unary operators perform an operation on one argument, binary operators perfom an operation on two arguments. All operations in boolean logic can be written with only the primary operators: AND, OR, NOT.
Not is the only unary operator in boolean logic. It negates (or swaps) the value of its argument, also known as inverting.
Differrent NOT operator notation:
Truth table for the NOT operator:
AND is one of two primary binary operators in boolean logic, the other being OR.
Different AND operator notation:
Truth table for the AND operator:
OR is one of two primary binary operators in boolean logic, the other being AND. The OR operator is true if one or both of its arguments are true.
Different OR operator notation:
Truth table for the OR operator:
Operator precedence is the order in which operations are carried out. In boolean logic operator precedence goes: NOT, AND, OR. Here are some examples: