Boolean logic – IGCSE Computer Science (0478)
45 questions · page 3 of 3 · Clear filters
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
8
A logic circuit is shown below.
A
B
X
C
(a) Complete the truth table for the given 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 this logic statement:
X = 1 if (A is NOT 1) OR ((B is 1 OR C is 1) AND (B is NOT 1 OR A is NOT 1))
A
B
X
C
[6]
Question text
7
(a) For this logic circuit:
A
X
B
C
Complete the truth table.
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) For this logic statement:
X = 1 if (B is 1 OR C is NOT 1) AND ((A is NOT 1) AND (B is 1 OR C is 1))
Draw a logic circuit.
A
B
X
C
[6]
(c) Complete the truth table for the logic statement given in part (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
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
Draw a logic circuit to represent the logic statement:
X = 1 if (A is NOT 1 AND B is 1) AND (A is NOT 1 AND C is NOT 1) OR (B is 1 AND C is 1)
A
X
B
C
[7]
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
2
The diagram below shows five logic gate symbols and five names.
Draw a line between each logic gate symbol and its correct name.
Logic Gate Symbol
Name
AND
NOT
NOR
XOR
NAND
[4]
Question text
14 A system controls the flow of vehicles through a barrier based on three lights, A, B and C.
When a light is red, the signal is zero. When a light is green, the signal is one.
The barrier will open when the output X is one.
The barrier opens if either:
light A is red and lights B and C are both green
•
or
light A is green and lights B and C are both red
•
(a) Design a logic circuit for the system.
A
B
X
C
[5]
(b) Complete the truth table for the system given at the start of Question 14.
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]
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 International
Examinations Copyright Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download at www.cie.org.uk after
the live examination series.
Cambridge International Examinations is part of the Cambridge Assessment Group. Cambridge Assessment is the brand name of University of Cambridge Local
Question text
5
Three switches, A, B and C, each send values of 0 or 1 to a logic circuit. Value X is output from the
logic circuit.
Switch A
Logic circuit
Switch B
Output X
Switch C
Output X has a value of 1 depending on the following conditions:
Switch A sends value 1 AND Switch B sends value 0
OR
Switch B sends value 1 AND Switch C sends value 0
(a) Draw a logic circuit to represent the conditions above.
A
B
X
C
[5]
(b) Complete the truth table for the conditions given at the start of question 5.
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) A microprocessor regularly samples the output, X. Each sample value is stored in an 8-bit
register as shown below. One bit of this register is reserved as a parity bit.
Five consecutive output values of 1 indicate a fault condition.
Identify which of the following registers shows a fault condition.
Parity bit
1
1
1
1
1
0
0
1
Register Y
0
1
0
1
1
1
1
1
Register Z
Register … [1]
(d) When eight bytes of data have been collected, they are transmitted to a computer 100 km
away. Parity checks are carried out to identify if the data has been transmitted correctly. The
system uses even parity and column 1 is the parity bit.
The eight bytes of data are sent together with a ninth parity byte:
parity
column
column
column
column
column
column
column
bit
2
3
4
5
6
7
8
byte 1
1
0
0
0
0
1
0
0
byte 2
1
1
1
1
0
0
1
1
byte 3
0
1
0
0
1
0
0
0
byte 4
0
1
1
1
0
0
0
1
byte 5
1
0
0
0
1
1
1
1
byte 6
0
0
0
0
0
0
0
0
byte 7
1
1
1
0
1
0
0
0
byte 8
1
0
0
0
1
1
1
0
parity
1
0
1
1
0
1
1
1
byte
(i)
Identify which of the eight bytes contains an error.
byte … [1]
(ii)
Identify which column contains an error.
column … [1]
(iii)
The incorrect bit is indicated where the byte number and column cross.
Give the corrected byte.
[1]
(iv)
Calculate the denary value of the corrected byte.
…
… [1]
(v)
Considering the fault condition given in part (c), explain why it is very important that the
incorrect bit is located and corrected.
…
…
…
… [2]
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
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]