Boolean logic – IGCSE Computer Science (0478)
18 questions · page 1 of 2 · Clear filters
Question text
5
Consider the logic statement:
X = ((((B OR C) AND NOT C) NAND B) OR NOT A)
(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
[6]
(b) State the name of one logic gate that is not included in the given logic statement.
… [1]
(c) 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
NAND, OR and XOR are three types of logic gate.
(a) Four statements are shown about the logic gates.
Tick (✓) to show which statements apply to each logic gate. Some statements may apply to
more than one logic gate.
NAND
OR
XOR
Statement
(✓)
(✓)
(✓)
if both inputs are 1, the output is 1
if both inputs are different from each other, the output is 1
if both inputs are 0, the output is 0
if both inputs are the same as each other, the output is always 0
[4]
(b) NAND, OR, XOR, NOR and NOT are all examples of logic gates.
State the name of one other logic gate and complete its truth table.
Logic gate …
Truth table:
A
B
Output
0
0
0
1
1
0
1
1
[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 Cambridge Assessment. Cambridge Assessment is the brand name of the University of Cambridge
Question text
5
Consider the logic statement:
X = ((((B AND C) OR NOT C) NOR B) XOR NOT A)
(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
10 Consider the following logic statement:
X = (((A OR B) OR (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) State the name of a logic gate that does not appear in the logic statement and draw the
symbol for the logic gate.
Name of logic gate …
Logic gate symbol:
[2]
(c) 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
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
8
Consider the following logic statement:
X = (((A OR B) AND (NOT(B XOR C))) OR NOT 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
[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
4
Consider the given logic statement:
X = ((NOT (A NAND B)) OR (B NOR C))
(a) Draw a logic circuit to represent 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]
(c) The logic statement given has four different logic gates.
Identify two other logic gates and complete a truth table for each.
Logic gate
Truth table
A
B
X
0
0
…
0
1
1
0
1
1
Logic gate
Truth table
A
B
X
0
0
…
0
1
1
0
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]
Question text
10 Consider the following logic statement:
X = ((B AND NOT A) XOR (A 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]
Question text
7
A factory manufactures plastic pipes. It uses logic circuits to control the manufacturing process.
(a) Consider the logic gate:
Input A
Output
Input B
Complete the truth table for this logic gate.
Input A
Input B
Output
0
0
0
1
1
0
1
1
[1]
(b) Consider the truth table:
Input A
Input B
Output
0
0
0
0
1
1
1
0
1
1
1
0
State the single logic gate that produces the given output.
… [1]
(c) Plastic pipes of various sizes are manufactured by heating the plastic and using pressure.
The manufacturing system uses sensors to measure the pressure (P), temperature (T) and
speed (S) of production.
The inputs to the manufacturing system are:
Input
Binary value
Condition
1
pressure is > 5 bar
P
0
pressure is <= 5 bar
1
temperature is > 200 degrees Celsius
T
0
temperature is <= 200 degrees Celsius
1
speed is > 1 metre per second
S
0
speed is <= 1 metre per second
The system will sound an alarm (X) when certain conditions are detected.
The alarm will sound when:
Temperature is > 200 degrees Celsius and the pressure is <= 5 bar
or
Speed is > 1 metre per second and Temperature is <= 200 degrees Celsius
Draw a logic circuit to represent the above alarm system.
Logic gates used must have a maximum of two inputs.
P
T
X
S
[5]
(d) Give two benefits of using sensors to monitor the manufacture of plastic pipes.
1 …
…
2 …
…
[2]
Question text
8
Consider the logic circuit:
A
X
B
C
(a) Write a logic statement to match the given logic circuit.
… [3]
(b) 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]
Question text
4
A factory that manufactures cleaning products has a system that monitors conditions throughout
the manufacturing process.
The inputs to the system are:
Input
Binary value
Condition
1
pH > 7
A
0
pH < = 7
1
Temperature < 35 °C
T
0
Temperature > = 35 °C
1
Pressure > = 80 %
P
0
Pressure < 80 %
(a) The system will sound an alarm (X) when certain conditions are detected.
The alarm will sound when:
•
The pressure > = 80 % and the temperature > = 35 °C
or
•
The temperature < 35 °C and the pH > 7
Draw a logic circuit to represent the alarm system in the factory. Each logic gate must have a
maximum of two inputs.
A
T
X
P
[4]
(b) Complete the truth table for the given logic problem.
Working space
A
T
P
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 sensor and a microprocessor are used to monitor the pH of the cleaning products. The
system records each reading that is taken. If the reading is greater than 7 a warning message
is displayed on a monitor.
Explain how the sensor and microprocessor are used in the system.
…
…
…
…
…
…
…
…
…
…
…
… [6]
Question text
3
A logic circuit is shown:
A
X
B
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) Explain the difference between the functions of an AND gate and an OR gate.
…
…
…
…
…
… [3]
Question text
10 A logic circuit is shown:
A
X
B
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 the logic statement:
X = 1 if ((A is 1 AND B is 1) AND (A is 1 OR C is NOT 1)) OR (B is 1 AND C is NOT 1)
A
B
X
C
[6]
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]