Cambridge A2 Level Computer Science 9618 · 15.2 Boolean Algebra and Logic Circuits

Q23 · 9618/31/O/N/23 Q6

Worked solution from the Hardware and Virtual Machines Paper 3 Advanced Theory booklet, Part 2 of 2.

Q239618/31/O/N/23original Q6Structured · 6 marks
Question 6 from 9618/31/O/N/23

Worked solution

(a)

The three inputs A, B and C go into one NAND gate, giving P. P is 0 only when A, B and C are all 1. Then Q = P AND D, and Z = P XOR Q.

ABCDPQZ
0000101
0001110
0010101
0011110
0100101
0101110
0110101
0111110
1000101
1001110
1010101
1011110
1100101
1101110
1110000
1111000

Z correct for rows 0000 to 0100 [1]

Z correct for rows 0101 to 1001 [1]

Z correct for rows 1010 to 1111 [1]

(b)

Take NOT A . NOT D out of every term, then use B and C in all four combinations.

Y = NOT A . NOT D . (NOT B . NOT C + NOT B . C + B . NOT C + B . C) [1]

= NOT A . NOT D . (NOT B . (NOT C + C) + B . (NOT C + C))

= NOT A . NOT D . (NOT B . 1 + B . 1) using NOT C + C = 1 [1]

= NOT A . NOT D . (NOT B + B) = NOT A . NOT D . 1

Write: Y = NOT A . NOT D [1]

KEY IDEAFactor out what the terms share, then use the rule X + NOT X = 1 to remove inputs that do not matter.
TOTAL 6 marks

Official mark scheme

Mark scheme for 9618/31/O/N/23 question 6
VIDEO
▶ Topic lesson

A lesson on this topic · by Craig'n'Dave. 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.