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

Q33 · 9618/33/M/J/25 Q3

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

Q339618/33/M/J/25original Q3Structured · 8 marks
Question 3 from 9618/33/M/J/25

Worked solution

(a)

Pick every row where Z = 1 and write a product for each (NOT for inputs that are 0).

Rows: 0010, 0011, 0100, 1010, 1011, 1100

Z = NOT A . NOT B . C . NOT D + NOT A . NOT B . C . D + NOT A . B . NOT C . NOT D + A . NOT B . C . NOT D + A . NOT B . C . D + A . B . NOT C . NOT D

Any four correct products [1]

All six correct products [1]

(b)(i)

Fill the K-map (Gray code order).

CD \ AB00011110
000110
010000
111001
101001

Rows CD = 00 and CD = 01 correct [1]

Rows CD = 11 and CD = 10 correct [1]

(b)(ii)

Loop the groups of 1s.

Loop 1: the two 1s in row CD = 00, columns AB = 01 and AB = 11 [1]

Loop 2: the four 1s in rows CD = 11 and CD = 10, columns AB = 00 and AB = 10 (wrapping round the edge) [1]

(b)(iii)

Loop 1 has B = 1, C = 0, D = 0. Loop 2 has B = 0 and C = 1.

Z = NOT B . C + B . NOT C . NOT D

One correct term [1]

Both terms with + and no other terms [1]

KEY IDEAEach loop gives one product term made of the inputs that stay the same across the loop.
TOTAL 8 marks

Official mark scheme

Mark scheme for 9618/33/M/J/25 question 3
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.