Boolean logic and logic circuits – O Level Computer Science (2210)
14 questions · Clear filters
Question text
8
Consider the following logic statement:
X = (((A AND NOT B) OR (NOT (B NOR C))) AND 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
X
B
C
[6]
(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]
Question text
5
Consider the following logic statement:
X = ((A OR B) AND (NOT (B XOR C)) AND 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]
Question text
6
Consider the logic statement:
X = (((A AND B) OR (C AND NOT B)) XOR NOT C)
(a) Draw a logic circuit to represent the given logic statement.
Do not attempt to simplify the statement. All logic gates must have a maximum of two inputs.
A
B
X
C
[6]
(b) Consider the completed truth table for the given logic statement.
Row
Working space
A
B
C
X
number
0
1
0
0
0
1
2
0
0
1
0
3
0
1
0
1
4
0
1
1
0
5
1
0
0
1
6
1
0
1
0
7
1
1
0
1
8
1
1
1
There are four errors in the truth table in the output (X) column.
Identify the four incorrect outputs.
Write the row number to identify each incorrect output.
Row …
Row …
Row …
Row …
[4]
Question text
3
Consider the logic statement:
X = ((((NOT A AND B) OR C) AND B) NOR (B OR C))
(a) Draw a logic circuit to represent the given logic statement.
Do not attempt to simplify the statement. All logic gates must have a maximum of two inputs.
A
B
X
C
[6]
(b) Consider the completed truth table for the given logic statement.
Row
Working space
A
B
C
X
number
1
1
0
0
0
1
2
0
0
1
1
3
0
1
0
0
4
0
1
1
1
5
1
0
0
0
6
1
0
1
1
7
1
1
0
1
8
1
1
1
There are four errors in the truth table in the output (X) column.
Identify the four incorrect outputs.
Write the row number to identify each incorrect output.
Row …
Row …
Row …
Row …
[4]
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
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
8
Consider the logic statement:
X = 1 if ((A is 1 NOR C is 1) AND (B is NOT 1 NOR C is 1)) OR (A is 1 AND B is 1)
(a) Draw a logic circuit to match the given logic statement. Each logic gate used must have a
maximum of two inputs. Do not attempt to simplify the logic statement.
A
X
B
C
[6]
(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]
Question text
6
Consider the logic statement:
X = 1 if ((A is NOT 1 OR B is 1) NOR C is 1) NAND ((A is 1 AND C is 1) NOR B is 1)
(a) Draw a logic circuit to represent the given logic statement.
A
B
X
C
[6]
(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]
Question text
7
Consider the logic statement:
X = 1 if ((A is 1 AND B is NOT 1) NAND C is 1) XOR ((A is 1 AND C is 1) OR B is 1)
(a) Draw a logic circuit to represent the given logic statement.
A
B
X
C
[6]
(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]
Question text
10 (a) Complete the truth table for the NOR gate.
A
X
B
A
B
Output (X)
0
0
0
1
1
0
1
1
[1]
(b) Write a logic statement that corresponds with the following logic circuit.
A
B
X
C
X = … [3]
Question text
6
Airline boarding passes can be read from a smartphone instead of a printout.
Boarding Pass
Back
A
TSA Pre
Passenger Webb / Alan
B 15
Boarding
Boarding
Position
Group
Flight 683
JFK – LAX
Date
Thursday, November 10, 2016
Departs 8.15 pm
Gate
C4
Time, gate and terminals may change - check monitors
Conf# BC123D
Fly Rewards
Fly Rewards# 12345678
Identify what type of barcode A is an example of. Explain how the data stored in this type of
barcode is read.
����������������������������������������������������������������������������������������������������������������������������������������������������������
����������������������������������������������������������������������������������������������������������������������������������������������������������
����������������������������������������������������������������������������������������������������������������������������������������������������������
����������������������������������������������������������������������������������������������������������������������������������������������������������
����������������������������������������������������������������������������������������������������������������������������������������������������������
����������������������������������������������������������������������������������������������������������������������������������������������������������
����������������������������������������������������������������������������������������������������������������������������������������������������������
������������������������������������������������������������������������������������������������������������������������������������������������������[4]
Question text
10 For this logic statement:
X = 1 if (( A is 1 AND B is 1 ) OR ( B is 1 AND C is NOT 1 ))
(a) Draw the logic circuit.
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]
Question text
5
A computer-controlled machine produces plastic sheets. The thickness of each sheet must be
within a certain tolerance. The sheets are kept below 50 °C as they move over rollers at 10 metres
per second.
Three parameters need to be monitored all the time.
Binary
Parameter
Description
Conditions
value
1
thickness of sheet in tolerance
D
sheet thickness
0
thickness of sheet out of tolerance
1
roller speed = 10 metres/second
S
roller speed
0
roller speed <> 10 metres/second
1
temperature < 50 °C
T
temperature
0
temperature >= 50 °C
An alarm, X, will sound if:
thickness is in tolerance AND (roller speed <> 10 metres/second OR temperature >= 50 °C)
OR
roller speed = 10 metres/second AND temperature >= 50 °C
(a) Draw a logic circuit to represent the above monitoring system.
D
S
X
T
[6]
(b) Complete the truth table for the monitoring system.
Working Space
D
S
T
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]