Cambridge AS Level Computer Science 9618 · 3.2 Logic Gates and Logic Circuits

Q54 · 9618/13/O/N/23 Q4

Worked solution from the Hardware Paper 1 Theory Fundamentals booklet, Part 2 of 2.

Q549618/13/O/N/23original Q4Structured · 4 marks
Question 4 from 9618/13/O/N/23

Worked solution

(a)

Work out the two brackets, XOR them, then AND with NOT P.

PQRP AND Q(NOT Q) OR RXORY
0000111
0010111
0100000
0110111
1000110
1010110
1101010
1111100

First four rows of Y (1, 1, 0, 1) correct [1]

Last four rows of Y (0, 0, 0, 0) correct [1]

(b)

Draw: P and Q into an AND gate. Q into a NOT gate, then the NOT output and R into an OR gate.

Join the AND output and the OR output with an XOR gate. P goes into a NOT gate. The XOR output and the NOT P output go into a final AND gate. Its output is Y.

P AND Q and (NOT Q) OR R correct [1]

NOT gate, XOR gate and final AND gate correct [1]

KEY IDEABuild the circuit in the order of the brackets: inner gates first, then the XOR, then the final AND with NOT P.
TOTAL 4 marks

Official mark scheme

Mark scheme for 9618/13/O/N/23 question 4
VIDEO
▶ Starts at Q4 (29:28)

Starts at Q4 (29:28) · by Pseudocode Pro. 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.