Find Q = (A AND B) OR NOT C when A = 1, B = 0, C = 0.
- A AND B = 0.
- NOT C = 1.
- 0 OR 1 = 1.
Answer Q = 1
A-level Computer Science revision · Boolean algebra and logic
Logic gates process Boolean inputs. AND outputs 1 only if both inputs are 1; OR if either is 1; NOT inverts; XOR if exactly one input is 1. A truth table lists the output for every input combination; n inputs give 2ⁿ rows. Boolean notation: ∧ (AND), ∨ (OR), ¬ (NOT), ⊻ (XOR).
Watch out XOR is 0 when both inputs are 1; OR is 1.
Find Q = (A AND B) OR NOT C when A = 1, B = 0, C = 0.
Answer Q = 1
How many rows does a truth table with 4 inputs need?
Which gate outputs 1 when exactly one of its two inputs is 1?
A = 1, B = 1. What is NOT(A AND B)?
A-level Computer Science Pro, OCR H446
£119 once
Price rises to £199 on 1 January. Save £80 by joining before then.
At least 12 months of access
No VAT is charged.