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

Q29 · 9618/32/O/N/24 Q6

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

Q299618/32/O/N/24original Q6Structured · 9 marks
Question 6 from 9618/32/O/N/24

Worked solution

(a)

Pick every row where X = 1 and write a product for each (NOT for inputs that are 0).

Rows: 0001, 0010, 0101, 0110, 1001, 1010, 1101, 1110

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

Three or four correct products [1]

Five, six or seven correct products [1]

All eight correct products and no extra products [1]

(b)

Fill the K-map from the truth table (Gray code order 00, 01, 11, 10).

CD \ AB00011110
000000
011111
110000
101111

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

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

(c)

Loop the two rows of 1s.

Loop 1: the whole row CD = 01 (four cells) [1]

Loop 2: the whole row CD = 10 (four cells) [1]

(d)

In row CD = 01, C = 0 and D = 1. In row CD = 10, C = 1 and D = 0. A and B do not matter.

X = NOT C . D + C . NOT D

One correct term [1]

Both terms joined with + and no other terms [1]

KEY IDEAA loop only keeps the inputs that do not change inside it, so a whole row of the K-map depends only on C and D.
TOTAL 9 marks

Official mark scheme

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