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

Q35 · 9618/32/O/N/25 Q6

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

Q359618/32/O/N/25original Q6Structured · 9 marks
Question 6 from 9618/32/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 OR gate).

ABCPQRSZ
00011001
00111111
01000101
01100000
10010001
10110101
11001101
11101000

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: 001, 011, 101, 110 (A, B, C). Columns are BC in Gray code order (00, 01, 11, 10).

A \ BC00011110
00110
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 = 01 and BC = 11 [1]

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

Also circle the lone 1 at A = 1, BC = 10 on its own: it gives the third term in part (iii).

(b)(iii)

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

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

One correct term with a + sign [1]

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

KEY IDEAA lone 1 in a K-map that touches no other 1 stays as a full product term.
TOTAL 9 marks

Official mark scheme

Mark scheme for 9618/32/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.