Boolean logic – IGCSE Computer Science (0478)
45 questions · page 2 of 3 · Clear filters
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
2
Consider the logic statement:
X = (((A NAND B) OR (B XOR C)) AND NOT 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
[5]
(b) Complete the truth table to represent 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
(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
6
Consider the given logic statement:
X = (((A XOR B) AND C) OR NOT 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
6
(a) Complete the truth table for the given logic circuit.
Do not attempt to simplify the logic circuit.
A
B
X
C
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) A water control system uses a switch and two pressure sensors.
The outputs of the switch and sensors are shown in the table.
Sensor or Switch
Output of 1
Output of 0
Switch
On
Off
(S1)
Pressure Sensor
>= 3
< 3
(P1)
Pressure Sensor
>= 3
< 3
(P2)
Create a logic circuit that will produce an output (X) of 1 when:
The switch S1 is on
and
either P1 is less than 3 or P2 is less than 3, but not both.
All logic gates used must have a maximum of two inputs.
S1
P1
X
P2
[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
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
4
Consider the given logic circuit:
A
X
B
C
(a) Redraw the logic circuit using only 4 logic gates. Each logic gate used must have a maximum
of two inputs.
A
X
B
C
[4]
(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]
(c) Describe the purpose of a logic gate in a logic circuit.
…
…
…
… [2]
Question text
5
Consider the following logic statement:
X = 1 if ((A is 1 NAND C is 1) NOR A is NOT 1) OR (B is 1 AND C is NOT 1)
(a) Draw a logic circuit that represents the given logic statement. Your logic gates must have a
maximum of two inputs. Do not simplify the 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
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]