Truth tables for AND, OR and NOT

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

Truth tables for AND, OR and NOT

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. A truth table for two inputs, A and B, has how many rows?
A 4 rows
B 2 rows
2. Which row makes A AND B true?
A A = true, B = false
B A = true, B = true
3. What is the result of false OR true?
A false
B true
4. Which statement about the OR table is correct?
A OR is false only when both inputs are false
B OR is false when either input is false
5. What does a NOT truth table show for the input true?
A false
B true

Match the Pairs

Draw a line connecting each item on the left to its match on the right.

Left columnRight column
1A AND B: true, true → true AOR gives false only when both inputs are false
2A OR B: false, false → false BAND gives true only when both inputs are true
3A NOT table has only two rows because it has one input, and it flips each value COR is true when at least one input is true, so true OR false should give true
4A truth table for two inputs needs four rows to cover every true/false combination DNOT true → false
5A AND B: true, false → true EAND is only true when both inputs are true, so true AND false should give false
6A OR B: true, false → false FA,B: TT, TF, FT, FF

Definitions

truth table

Fill in the Blanks

Complete each line of code by filling in the missing parts.

1.
true AND false = _____
2.
false __ true = true
3.
___ false = true
4.
Two inputs, rows in table: _
5.
A = false, B = false A OR B = _____

Spot the Error

Shade in the letter of the line that contains an error.

Question 1
A A AND B
B T T -> T
C T F -> T
D F T -> F
E F F -> F
Question 2
A A OR B
B T T -> F
C T F -> T
D F T -> T
E F F -> F
Question 3
A A | NOT A
B T | T
C F | T
Question 4
A NOT table
B A = T -> NOT A = F
C A = F -> NOT A = F
Question 5
A Two inputs: A and B
B Each input is T or F
C Rows = 2 x 2 = 3
D So the table has 4 rows

Answer Key

Truth tables for AND, OR and NOT
Section A: Quick Questions
Q1
A — 4 rows
Q2
B — A = true, B = true
Q3
B — true
Q4
A — OR is false only when both inputs are false
Q5
A — false
Section B: Match the Pairs
Q1
A AND B: true, true → true → AND gives true only when both inputs are true
Q2
A OR B: false, false → false → OR gives false only when both inputs are false
Q3
A NOT table has only two rows because it has one input, and it flips each value → NOT true → false
Q4
A truth table for two inputs needs four rows to cover every true/false combination → A,B: TT, TF, FT, FF
Q5
A AND B: true, false → true → AND is only true when both inputs are true, so true AND false should give false
Q6
A OR B: true, false → false → OR is true when at least one input is true, so true OR false should give true
Section C: Definitions
Q1
truth table — A table that lists every combination of true and false inputs and shows the result of AND, OR or NOT for each one. Two inputs give four rows.
Section D: Fill in the Blanks
Q1
true AND false = false
Q2
false OR true = true
Q3
NOT false = true
Q4
Two inputs, rows in table: 4
Q5
A = false, B = false A OR B = false
Section E: Spot the Error
Q1
C — AND is only true when both inputs are true. With A true and B false the result must be F, so the row should be T F -> F.
Q2
B — OR is true when at least one input is true. If both inputs are true the result is T, so the row should be T T -> T.
Q3
B — NOT flips the input. When A is true, NOT A is false, so the row should be T | F.
Q4
C — NOT flips the value. When A is false, NOT A is true, so the line should end with NOT A = T.
Q5
C — Each of the 2 inputs has 2 possible values, so there are 2 x 2 = 4 rows. The line should say Rows = 2 x 2 = 4.