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

Q32 · 9618/32/M/J/25 Q7

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

Q329618/32/M/J/25original Q7Structured · 8 marks
Question 7 from 9618/32/M/J/25

Worked solution

(a)

Work out each gate one at a time (P, Q, R, S), then Z, for every row. P is NOT C, and Z is the final output.

ABCDPQRSZ
000010010
000110010
001001010
001101010
010010010
010110010
011000001
011100100
100010010
100110010
101000001
101100001
110010010
110110010
111000001
111100100

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

Z correct for the first eight rows [1]

Z correct for the last eight rows [1]

(b)

Write a product for each row where Z = 1 (rows 0110, 1010, 1011, 1110).

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

The terms may be in any order.

(c)

The expression is NOT(A + B) . (NOT(A . B) + NOT(B . C)). Apply De Morgan's law to each bar, then tidy up, one law per line.

NOT(A + B) . (NOT(A . B) + NOT(B . C))
(NOT A . NOT B) . (NOT A + NOT B + NOT B + NOT C)
(NOT A . NOT B) . (NOT A + NOT B + NOT C)
(NOT A . NOT A + NOT A . NOT B + NOT A . NOT C) . (NOT B . NOT A + NOT B . NOT B + NOT B . NOT C)
(NOT A + NOT A . NOT B + NOT A . NOT C) . (NOT A . NOT B + NOT B + NOT B . NOT C)
(NOT A + NOT A . NOT C) . (NOT B + NOT B . NOT C)
NOT A . NOT B

Line 2 uses De Morgan's laws on each bar [1]

Line 3 uses the idempotent law (NOT B + NOT B = NOT B), or line 4 the distributive law: one correct step [1]

Lines 5 and 6 use the idempotent and absorption laws: a second correct step [1]

Final answer NOT A . NOT B (also accepted: NOT(A + B)) [1]

KEY IDEABreak each bar with De Morgan's law, then tidy with idempotent, distributive and absorption laws until nothing more can be removed.
TOTAL 8 marks

Official mark scheme

Mark scheme for 9618/32/M/J/25 question 7
VIDEO
▶ Topic lesson

A lesson on this topic · by Craig'n'Dave. 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.