Cambridge AS Level Computer Science 9618 · 3.2 Logic Gates and Logic Circuits

Q42 · 9618/11/O/N/21 Q3

Worked solution from the Hardware Paper 1 Theory Fundamentals booklet, Part 2 of 2.

Q429618/11/O/N/21original Q3Structured · 8 marks
Question 3 from 9618/11/O/N/21

Worked solution

(a)

Follow the circuit from the inputs: A and B go into an AND gate, its output and C go into an XOR gate, and that output goes into an OR gate with NOT B.

Write: A AND B [1]

Write: XOR C on that result [1]

Write the final OR with NOT B: X = ((A AND B) XOR C) OR NOT B [1]

(b)

Work out each stage:

ABCA AND B(A AND B) XOR CNOT BX
0000011
0010111
0100000
0110101
1000011
1010111
1101101
1111000

First four rows of X correct (1, 1, 0, 1) [1]

Last four rows of X correct (1, 1, 1, 0) [1]

(c)

The circuit uses AND, XOR, OR and NOT. Choose a gate it does not use, for example NOR.

Logic gate: NOR [1]

Symbol: an OR gate shape with a small circle at the output, two inputs A and B [1]

ABOutput
001
010
100
110

Truth table correct for the gate chosen [1]

NAND is also accepted: AND shape with a circle, output 1, 1, 1, 0.

KEY IDEAWrite the expression gate by gate from the inputs, then build the truth table with a working column for each stage.
TOTAL 8 marks

Official mark scheme

Mark scheme for 9618/11/O/N/21 question 3
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.