Booleans and Binary Logic Tables - Class Notes
Booleans and Binary Logic Tables - Class Notes
Booleans are used to represent binary or logical states, where true typically
represents a positive or "yes" condition, and false represents a negative or "no"
condition.
It lists all the possible combinations of 0s and 1s and tells you what the computer
thinks (true or false) for each combination.
It helps us see how the computer makes decisions using binary input.
Example of the logic table
A simple logic table using a single binary input bit and its corresponding boolean
output:
In this table, when the input bit is 0, the output is False, and when the input bit is 1,
the output is True. This represents a basic logic operation where 0 typically
represents a "no" or "false" condition, and 1 represents a "yes" or "true" condition.
Further examples:
Here are logic tables for four fundamental logic operations: IS, NOT, AND, and
OR, using a single binary input bit (A) and their corresponding boolean outputs on
the following slides
NOTE: In these tables, the outputs are represented as TRUE or FALSE, where
TRUE corresponds to 1, and FALSE corresponds to 0.