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

Q22 · 9618/32/M/J/23 Q9

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

Q229618/32/M/J/23original Q9Structured · 10 marks
Question 9 from 9618/32/M/J/23

Worked solution

(a)

Pick every row where Z = 1 (rows 0000, 0001, 0010, 0011, 0110 and 0111) and write one product for each. Where an input is 0, write NOT in front of it.

Z = NOT A . NOT B . NOT C . NOT D + NOT A . NOT B . NOT C . D [1]

+ NOT A . NOT B . C . NOT D + NOT A . NOT B . C . D [1]

+ NOT A . B . C . NOT D + NOT A . B . C . D [1]

(b)

Put a 1 in each cell whose row has Z = 1. Columns are AB, rows are CD (Gray code order).

CD \ AB00011110
001000
011000
111100
101100

All 16 cells correct (one error scores 1 mark) [2]

(c)

Loop the biggest groups of 1s. Groups must be 1, 2, 4, 8 or 16 cells in a rectangle.

Loop 1: the whole AB = 00 column (four 1s) [1]

Loop 2: the 2 × 2 block where AB = 00 or 01 and CD = 11 or 10 (four 1s) [1]

(d)

Loop 1: A = 0 and B = 0 stay the same, C and D change, so the term is NOT A . NOT B [1]

Loop 2: A = 0 and C = 1 stay the same, B and D change, so the term is NOT A . C [1]

Write: Z = NOT A . NOT B + NOT A . C

(e)

Take NOT A out as a common factor.

Write: Z = NOT A . (NOT B + C) [1]

KEY IDEALoop groups of 1s in the K-map, keep the inputs that do not change inside each loop, then factorise if you can.
TOTAL 10 marks

Official mark scheme

Mark scheme for 9618/32/M/J/23 question 9
VIDEO
▶ Whole paper

Video solution of the whole paper · by qiphyedu. 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.