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

Q34 · 9618/31/O/N/25 Q6

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

Q349618/31/O/N/25original Q6Structured · 9 marks
Question 6 from 9618/31/O/N/25

Worked solution

(a)

Work out P, Q, R and S gate by gate for each row, then Z (the output of the last AND gate).

ABCPQRSZ
00011110
00110100
01011111
01110111
10001110
10100010
11001111
11100111

Working columns P, Q, R and S all correct [1]

Z correct for the first four rows [1]

Z correct for the last four rows [1]

(b)(i)

Put a 1 in the cell for each product: 011, 010, 101, 110 (A, B, C). Columns are BC in Gray code order (00, 01, 11, 10).

A \ BC00011110
00011
10101

Row A = 0 correct [1]

Row A = 1 correct [1]

(b)(ii)

Loop the groups of 1s.

Loop 1: the two 1s in row A = 0, columns BC = 11 and BC = 10 [1]

Loop 2: the two 1s in column BC = 10 (both rows) [1]

Also circle the lone 1 at A = 1, BC = 01 on its own: it has no neighbour to join, and it gives the third term in part (iii).

(b)(iii)

Loop 1 has A = 0 and B = 1. Loop 2 has B = 1 and C = 0. The single 1 is A = 1, B = 0, C = 1.

NOT A . B + B . NOT C + A . NOT B . C

One correct term with a + sign [1]

All terms and operators correct and no other terms [1]

KEY IDEAWork through the circuit one gate at a time; in the K-map, loop neighbouring 1s and leave a lone 1 as a full three-input term.
TOTAL 9 marks

Official mark scheme

Mark scheme for 9618/31/O/N/25 question 6
VIDEO
▶ Whole paper

Video solution of the whole paper · by Zafar Ali Khan (ZAK). 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.