What if we were to decide that a 0-bit represented FALSE and a 1-bit represented TRUE?

This would allow us to manipulate bits using Boolean operations (named for a guy named George Boole who worked a branch of math called logic in the 1800s).

There are four basic Boolean operations that are used to manipulate bits:

ANDDr. Rita is short AND Dr. Rita is a nerdBinary Operator
ORDr. Rita is short OR Dr. Rita is a nerdBinary Operator
XOREither Dr. Rita is short OR Dr. Rita is a nerd but not bothBinary Operator
NOTNOT (Dr. Rita is short)Unary Operator

Gate: A device that produces the output of a Boolean operation

Let's complete these truth tables together!


Converting from Decimal to Binary: Two Methods