Cambridge O Level Computer Science 2210 · 10.3 Logic circuits, truth tables and logic expressions

Q24 · 2210/22/M/J/25 Q8

Worked solution from the Boolean logic Paper 2 Algorithms, Programming and Logic booklet, Part 3 of 3.

Q242210/22/M/J/25original Q8Structured · 8 marks
Question 8 from 2210/22/M/J/25

Worked solution

(a)

The XOR symbol is the OR shape (curved back, pointed front) with an extra curved line just before the two inputs. Draw it with two inputs on the left and one output on the right.

Correct XOR gate symbol [1]

XOR gives 1 only when the two inputs are different:

ABX
000
011
101
110

Truth table correct [1]

(b)(i)

The crane moves when the operator is present (A = 1) AND either the ignition key is present (B = 0, so NOT B) OR the code is correct (C = 0, so NOT C).

Write: X = A AND (NOT B OR NOT C)

A AND [1]

(NOT B OR NOT C) [1]

Other correct forms also score, for example A AND NOT (B AND C), A AND (B NAND C), or (A AND NOT B) OR (A AND NOT C).

(b)(ii)

Use X = A AND (NOT B OR NOT C).

ABCNOT BNOT CNOT B OR NOT CX
0001110
0011010
0100110
0110000
1001111
1011011
1100111
1110000

Outputs for the first two rows correct [1]

Outputs for the third and fourth rows correct [1]

Outputs for the fifth and sixth rows correct [1]

Outputs for the last two rows correct [1]

Marks are given by how many of the 8 outputs are right: 8 correct = 4 marks, 6 or 7 = 3, 4 or 5 = 2, 2 or 3 = 1.

KEY IDEACareful with inputs that are 0 when the thing is present: they need NOT in the expression.
TOTAL 8 marks

Official mark scheme

Mark scheme for 2210/22/M/J/25 question 8
VIDEO
▶ Topic lesson

A lesson on this topic · by Mr Bulmer's Learning Zone. Tap the picture to open it on YouTube.

Solutions follow the official Cambridge mark schemes; marks are shown in grey. Videos are from other YouTube channels. Paper codes read component / series / year: M/J = May/June, O/N = October/November. Past-paper questions © UCLES, reproduced for classroom practice.