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

Q26 · 9618/32/M/J/24 Q6

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

Q269618/32/M/J/24original Q6Structured · 10 marks
Question 6 from 9618/32/M/J/24

Worked solution

(a)

P, Q and R are NOT A, NOT B and NOT C. S is the OR gate output and T is the AND gate output. Then Z = S XOR T.

ABCPQRSTZ
000111110
001110101
010101101
011100101
100011000
101010101
110001101
111000101

Working columns P, Q, R, S and T 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 001, 010, 011, 101, 110, 111). A 0 input gets NOT.

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

All six terms correct and no others (any three correct terms scores [1]) [2]

(c)(i)

Put a 1 in the cell for each term in the expression (the cells in the BC = 01 column are 0).

A \ BC00011110
01011
11011

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

(c)(ii)

Loop 1: the 2 × 2 block in columns BC = 11 and 10 (four 1s) [1]

Loop 2: the 2 × 2 block in columns BC = 00 and 10 (four 1s, wrapping round the edge of the map) [1]

(c)(iii)

First loop: B = 1 stays the same, so the term is B. Second loop: C = 0 stays the same, so the term is NOT C.

Write: Z = B + NOT C [1]

KEY IDEALoops on a K-map may wrap round the edges, and each loop keeps only the inputs that stay the same inside it.
TOTAL 10 marks

Official mark scheme

Mark scheme for 9618/32/M/J/24 question 6
VIDEO
▶ Starts at Q6 (37:50)

Starts at Q6 (37:50) · 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.