You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
Truth tables are a systematic way to enumerate every possible combination of inputs and determine the resulting output for a Boolean expression or logic circuit. They are an essential tool for analysing, verifying, and comparing logic circuits and Boolean expressions in OCR H446.
Truth tables allow you to:
The number of rows in a truth table depends on the number of input variables:
| Variables | Rows (2^n) |
|---|---|
| 1 | 2 |
| 2 | 4 |
| 3 | 8 |
| 4 | 16 |
| 5 | 32 |
Key Term: For n input variables, a truth table has 2^n rows. Each row represents a unique combination of 0s and 1s.
Inputs should be listed in a standard binary counting pattern. For three variables A, B, C:
| A | B | C |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 0 | 1 |
| 0 | 1 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 0 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
| 1 | 1 | 1 |
This is simply counting from 0 (000) to 7 (111) in binary.
Exam Tip: Always use this standard ordering. Examiners expect it and it makes your work easier to check.
When evaluating Boolean expressions, operations have a specific precedence (priority):
| Priority | Operation | Symbol |
|---|---|---|
| 1 (highest) | NOT | NOT, bar, ' |
| 2 | AND | AND, ., * |
| 3 (lowest) | OR | OR, + |
Brackets override precedence, just as in normal arithmetic.
Example: Evaluate A OR B AND NOT C
This is equivalent to A OR (B AND (NOT C)) — NOT binds tightest, then AND, then OR.
Expression: Q = (A OR B) AND NOT(A AND B)
Step 1: Identify the number of variables. Here: A, B (2 variables = 4 rows).
Step 2: List all input combinations.
Step 3: Break the expression into sub-expressions and create intermediate columns:
| A | B | A OR B | A AND B | NOT(A AND B) | Q |
|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 1 | 0 |
| 0 | 1 | 1 | 0 | 1 | 1 |
| 1 | 0 | 1 | 0 | 1 | 1 |
| 1 | 1 | 1 | 1 | 0 | 0 |
Notice: Q = 1 when exactly one input is 1. This is the same as A XOR B. The truth table proves that (A OR B) AND NOT(A AND B) is equivalent to A XOR B.
When given a circuit diagram, you trace the signals through the gates:
Worked Example:
Suppose a circuit has:
The overall expression is Q = (A AND B) OR (NOT C).
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.