CPSC120A
Fundamentals of Computer Science I

Activity 14

Exploring Logic and Boolean Arithmetic through truth tables.

Truth Tables

A truth table is a very quick and easy mechanism to check to make sure your logical expressions align with your intent. They can also be used to determine if two logical expressions are directly equivalent.


Fill in the truth tables below, and determine which expressions (if any) are equivalent.

p q p and q p or q not p not q p or p
TT
TF
FT
FF
p q not (p and q) (not p) or (not q) p or (not q) (p or q) and not p (p or q) and not (p and q)
TT
TF
FT
FF

For the following expressions, create a truth table to determine the final truth value. Create columns for all intermediary values.

  1. (p and q) or (not p)
  2. not (p and (not q))
  3. (not p) or q