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

Q48 · 9618/13/O/N/22 Q5

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

Q489618/13/O/N/22original Q5Structured · 5 marks
Question 5 from 9618/13/O/N/22

Worked solution

(a)

Split the expression into small gates. X = NOT (NOT (A AND B) OR NOT (B AND C)). Draw:

An AND gate with inputs A and B, then a NOT gate on its output: NOT (A AND B) [1]

An AND gate with inputs B and C, then a NOT gate on its output: NOT (B AND C) [1]

An OR gate taking both NOT outputs, then a NOT gate on its output. This output is X [1]

A NAND gate may be drawn in place of an AND gate followed by a NOT gate.

(b)

Y = (NOT P AND Q) OR (Q AND NOT R). The first bracket is 1 when P = 0 and Q = 1. The second is 1 when Q = 1 and R = 0.

PQRY
0000
0010
0101
0111
1000
1010
1101
1110

First four rows correct [1]

Last four rows correct [1]

KEY IDEABuild a circuit one bracket at a time, from the inside out.
TOTAL 5 marks

Official mark scheme

Mark scheme for 9618/13/O/N/22 question 5
VIDEO
▶ Topic lesson

A lesson on this topic · by ZAINEMATICS. 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.