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

Q17 · 9618/31/O/N/21 Q7

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

Q179618/31/O/N/21original Q7Structured · 10 marks
Question 7 from 9618/31/O/N/21

Worked solution

(a)

Pick the rows where Z = 1 and write one product for each row. NOT is written before a letter.

Rows with Z = 1 are ABCD = 1001, 1011, 1100, 1101, 1110 and 1111.

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

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

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

One mark for each two correct products.

(b)(i)

Put each Z value in the cell for its AB column and CD row. Columns and rows go in Gray code order (00, 01, 11, 10).

CD \ AB00011110
000010
010011
110011
100010

Two columns correct (for example AB = 00 and 01) [1]

The other two columns correct (AB = 11 and 10) [1]

(b)(ii)

Make the biggest groups of 1s (sizes 1, 2, 4, 8) that you can.

Loop the whole AB = 11 column (four 1s) [1]

Loop the four 1s in the block AB = 11 and 10 with CD = 01 and 11 [1]

(b)(iii)

The AB = 11 column: A and B stay the same, C and D change, so the term is A . B.

The block: A stays 1 and D stays 1, so the term is A . D.

Term A . B [1]

Term A . D, joined with + and no other terms: Z = A . B + A . D [1]

(b)(iv)

Take out the common A: Z = A . (B + D) [1]

KEY IDEAA K-map groups neighbouring 1s so a sum-of-products shrinks, and a common letter can then be factored out.
TOTAL 10 marks

Official mark scheme

Mark scheme for 9618/31/O/N/21 question 7
VIDEO
▶ Whole paper

Video solution of the whole paper · by qiphyedu. 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.