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

Q25 · 9618/31/M/J/24 Q6

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

Q259618/31/M/J/24original Q6Structured · 10 marks
Question 6 from 9618/31/M/J/24

Worked solution

(a)

Work out P (NOT B), Q, R and S for each row, then Z = Q OR R OR S.

ABCPQRSZ
00010011
00110011
01000000
01100000
10010000
10110101
11000011
11101011

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)

Write a product for each row where Z = 1 (rows 000, 001, 101, 110, 111). A 0 input gets NOT.

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

All five terms correct and no extra terms (any three correct terms scores [1]) [2]

(c)(i)

Put a 1 in the cell for each term in the expression.

A \ BC00011110
01100
11111

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

(c)(ii)

Loop 1: the whole bottom row (A = 1) of four 1s [1]

Loop 2: the 2 × 2 block with A = 0 or 1 and BC = 00 or 01 (four 1s) [1]

(c)(iii)

Bottom row: A = 1 stays the same, so the term is A. The 2 × 2 block: B = 0 stays the same, so the term is NOT B.

Write: Z = A + NOT B [1]

KEY IDEAWrite a product for each row where the output is 1, put those 1s on the K-map, and loop the biggest groups to get a short expression.
TOTAL 10 marks

Official mark scheme

Mark scheme for 9618/31/M/J/24 question 6
VIDEO
▶ Starts at Q6 (38:35)

Starts at Q6 (38:35) · by Pseudocode Pro. 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.