Cambridge O Level Computer Science 2210 · 10.2 Functions of logic gates

Q15 · 2210/23/O/N/23 Q6

Worked solution from the Boolean logic Paper 2 Algorithms, Programming and Logic booklet, Part 2 of 3.

Q152210/23/O/N/23original Q6Structured · 11 marks
Question 6 from 2210/23/O/N/23

Worked solution

(a)

Output is 1 only when both inputs are 1: this is an AND gate.

Write: AND [1]

ABX
000
010
100
111

Truth table correct [1]

(b)

Output is 1 only when the inputs are different: this is an XOR gate (also called EOR).

Write: XOR [1]

ABX
000
011
101
110

Truth table correct [1]

(c)

Output is 1 only when both inputs are 0: this is a NOR gate.

Write: NOR [1]

ABX
001
010
100
110

Truth table correct [1]

(d)

X = (NOT A OR NOT B) OR NOT C. Draw one gate for each operator, with two inputs at most.

NOT gate with input A [1]

NOT gate with input B [1]

OR gate with the outputs of the first two NOT gates as its inputs [1]

NOT gate with input C [1]

Final OR gate with the output of the first OR gate and the output of the NOT C gate as its inputs; its output is X [1]

KEY IDEALearn the output pattern of each gate: AND is 1 only for 1,1; XOR is 1 when inputs differ; NOR is 1 only for 0,0.
TOTAL 11 marks

Official mark scheme

Mark scheme for 2210/23/O/N/23 question 6
VIDEO
▶ Whole paper

Video solution of the whole paper · by O/Alevel CS by Wasiq. 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.