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

Q28 · 9618/31/O/N/24 Q7

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

Q289618/31/O/N/24original Q7Structured · 10 marks
Question 7 from 9618/31/O/N/24

Worked solution

(a)

Pick every row where T = 1 and write one product (AND term) for each. Write NOT for any input that is 0 in that row. Join the products with OR (+).

Rows: 0001, 0011, 1001, 1011, 1101, 1111

T = NOT A . NOT B . NOT C . D + NOT A . NOT B . C . D + A . NOT B . NOT C . D + A . NOT B . C . D + A . B . NOT C . D + A . B . C . D

Each correct pair of products earns a mark. Products 1 and 2 [1]

Products 3 and 4 [1]

Products 5 and 6 [1]

(b)

Put each output into the K-map. The AB columns and CD rows use Gray code order (00, 01, 11, 10), so only one input changes between neighbours.

CD \ AB00011110
000000
011011
111011
100000

Rows CD = 00 and CD = 01 correct [1]

Rows CD = 11 and CD = 10 correct [1]

One error still scores one of the two marks.

(c)

Loop the largest groups of 1s (sizes 1, 2, 4, 8). Groups may wrap round the edges.

Loop 1: the four 1s in columns AB = 11 and AB = 10, rows CD = 01 and CD = 11 [1]

Loop 2: the four 1s in columns AB = 00 and AB = 10 (wrapping round the left and right edges), rows CD = 01 and CD = 11 [1]

(d)(i)

Loop 1 has A = 1 and D = 1 in every cell, so it gives A . D. Loop 2 has B = 0 and D = 1 in every cell, so it gives NOT B . D.

T = A . D + NOT B . D

One correct term [1]

Both terms with + and no other terms [1]

(d)(ii)

Take D out as a common factor.

T = D . (A + NOT B) [1]

KEY IDEAWrite a product for each 1 in the truth table, then loop groups of 1s in the K-map: the inputs that stay fixed across a loop make its term.
TOTAL 10 marks

Official mark scheme

Mark scheme for 9618/31/O/N/24 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.