4.1 Boolean Logic Flashcards
What is a logical operator
Inside of each computer system are millions of transistors.
These are tiny switches that can either be turned on (represented in binary by the number 1) or turned off (represented by 0).
Logical operators are symbols used to represent circuits of transistors within a computer
What are the three common operators
. NOT
. AND
. OR
What is a Truth Table
A truth table is a visual way of displaying all possible outcomes of a logical operator.
The input and output values in a truth table must be a Boolean value - usually 0 or 1 but occasionally True or False
NOT
A NOT logical operator will produce an output which is the opposite of the input.
NOT is also known as Negation.
The symbol for NOT is ¬
AND
An AND logical operator will output 1 only if both inputs are also 1.
AND is also known as Conjunction.
The symbol for AND is ∧
OR
An OR logical operator will output 1 if either input is 1.
OR is also known as Disjunction.
The symbol for OR is ∨