You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
A Boolean expression is an algebraic expression that uses Boolean operators (AND, OR, NOT) to describe the output of a logic circuit or condition. In GCSE Computer Science, you need to be able to write, interpret and simplify Boolean expressions.
| Operation | Common Notations | Example |
|---|---|---|
| NOT | ¬A, A̅, NOT A | ¬A |
| AND | A ∧ B, A · B, A AND B | A ∧ B |
| OR | A ∨ B, A + B, A OR B | A ∨ B |
| XOR | A ⊕ B, A XOR B | A ⊕ B |
Just like in mathematics where multiplication is done before addition, Boolean algebra has an order of operations:
So the expression A ∨ B ∧ C is evaluated as A ∨ (B ∧ C) — the AND is done before the OR.
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.