Question 1
2 marksThe truth table shows the output P of a logic circuit with inputs A and B.
Write a logic expression for P using AND, OR and NOT.
Model answer
P = A AND NOT B
Explanation
P is 1 in only one row, where A = 1 and B = 0. To get 1 from that row alone, B must be reversed with NOT (so it becomes 1) and then ANDed with A. Check every row: A AND NOT B gives 0, 0, 1, 0, which matches the table.
Mark scheme
-
1 mark
NOT B
Accept other valid notation (¬B, B with a bar) and lower-case letters, with or without 'P ='. Accept any logically equivalent expression for both marks, e.g. NOT (NOT A OR B). A description in words ('P is 1 when A is 1 and B is 0') is not an expression and scores 0.
-
1 mark
A joined to the B part with AND: P = A AND NOT B
P = A AND B scores this mark but not the first.