Boolean logic and logic circuits – O Level Computer Science (2210)
Quick quiz: 10 random questions from this topic. Answer them all, then open the Summary.
Question text
8
Consider the logic expression:
Z = (R OR NOT T) XOR (NOT S AND T)
(a) Draw a logic circuit for this logic expression.
Each logic gate must have a maximum of two inputs.
Do not simplify this logic expression.
R
S
Z
T
[5]
(b) Complete the truth table from the given logic expression.
Working space
R
S
T
Z
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
[4]
Question text
2
Rajesh creates a logic circuit.
He uses three different logic gates in his circuit. Each logic gate has a maximum of two inputs.
He describes the logic of each gate.
(a) “The only time the output will be 1 is when both inputs are 1.”
State the single logic gate …
Draw the single logic gate:
[2]
(b) “The only time the output will be 1 is when both inputs are 0.”
State the single logic gate …
Draw the single logic gate:
[2]
(c) “The only time the output will be 0 is when both inputs are 1.”
State the single logic gate …
Draw the single logic gate:
[2]
Question text
4
(a) Identify the name and draw the single logic gate that can replace the given logic circuits.
(i)
A
X
B
Name of gate: …
Drawing of gate:
[2]
(ii)
A
X
B
Name of gate: …
Drawing of gate:
[2]
(b) Complete the truth table for the given logic statement:
X = (((A OR C) AND (NOT A AND NOT C)) XOR B)
Working space
A
B
C
X
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
[4]
Question text
11
Consider the following logic statement:
X = (((A AND B) OR (NOT (B OR C))) NAND C)
(a) Draw a logic circuit to represent the given logic statement.
Do not attempt to simplify the logic statement. All logic gates must have a maximum of two
inputs.
A
B
X
C
[5]
(b) Complete the truth table for the given logic statement.
Working space
A
B
C
X
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
[4]
(c) Identify two logic gates that are not included in the given logic statement.
Logic gate 1 …
Logic gate 2 …
[2]
Permission to reproduce items where third-party owned material protected by copyright is included has been sought and cleared where possible. Every
publisher will be pleased to make amends at the earliest possible opportunity.
To avoid the issue of disclosure of answer-related information to candidates, all copyright acknowledgements are reproduced online in the Cambridge
Assessment International Education Copyright Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download
at www.cambridgeinternational.org after the live examination series.
Cambridge Assessment International Education is part of the Cambridge Assessment Group. Cambridge Assessment is the brand name of the University of
Question text
7
Consider the logic expression:
X = (A AND B) XOR (B OR NOT C)
(a) Draw a logic circuit for this logic expression.
Each logic gate must have a maximum of two inputs.
Do not simplify the logic expression.
A
B
X
C
[4]
(b) Complete the truth table for the given logic expression.
Working space
A
B
C
X
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
[4]
ĬÓĊ®Ġ´íÈõÏĪÅĊÝû¶þ×
Question text
5
(a) Draw a logic circuit for the logic statement:
X = 1 if ((A is 1 AND B is 1) OR (A is NOT 1 AND C is 1))
A
X
B
C
[4]
(b) Draw the symbol for an XOR gate and explain the function of this logic gate.
Explanation …
…
…
…
…
… [5]
Question text
7
(a) Complete the truth tables and name the single logic gate that could replace each logic circuit:
(i)
Working space
A
B
X
A
X
B
0
0
0
1
1
0
1
1
Single logic gate … [3]
(ii)
A
Working space
A
B
X
X
0
0
0
1
B
1
0
1
1
Single logic gate … [3]
(b) (i)
Draw a logic circuit to represent the following logic statement:
X = 1 if (A = 1 AND B = 1) OR ( (B = NOT 1) AND C = 1)
A
B
X
C
[4]
(ii)
Complete the truth table for the logic statement in part (b)(i).
Working space
A
B
C
X
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
[4]
Question text
7
(a)
$
;
%
&
Complete the truth table for this logic circuit.
Working space
A
B
C
X
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
[4]
(b) Draw a logic circuit corresponding to the following logic statement:
X = 1 if ( ( A is 1 OR B is 1 ) AND ( A is 1 AND B is 1 ) ) OR ( C is NOT 1 )
$
%
;
&
[5]
(c) Re-draw the following logic circuit using NAND gates only.
$
;
%
&
Logic circuit re-drawn:
$
%
;
&
[4]
Question text
8
A logic circuit is to be built to control the automatic opening of a window. The window W opens if
the temperature T is too high, the heater H is off, and the air conditioning A is off.
air conditioning off
0
air conditioning A
air conditioning on
1
not too high
0
temperature T
too high
1
heater off
0
heater H
heater on
1
window closed
0
window W
window open
1
Complete the truth table for this problem.
A
T
H
W
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
[4]
ĬÑĊ®Ġ´íÈõÏĪÅĊÞü¶þ×
Question text
4
Consider the logic statement:
X = (((A NAND B) NOR (B AND C)) OR C)
(a) Draw a logic circuit to match the given logic statement.
All logic gates must have a maximum of two inputs. Do not attempt to simplify the logic
statement.
A
B
X
C
[4]
(b) Complete the truth table for the given logic statement.
Working space
A
B
C
X
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
[4]