Logic Gates
Logic Gates
A B C Working space 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]
0478/12/M/J/16
© UCLES 2016 [Turn over
(b) Draw a logic circuit corresponding to the following logic statement:
[5]
0478/12/M/J/16
© UCLES 2016
(c) Re-draw the following logic circuit using NAND gates only.
B X
[4]
0478/12/M/J/16
© UCLES 2016 [Turn over
10 For this logic statement
X = 1 if (( A is 1 AND B is 1 ) OR ( B is 1 AND C is NOT 1 ))
B X
[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]
0478/12/M/J/17
© UCLES 2017 [Turn over
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)
B X
[6]
(b) Complete the truth table for the given logic statement.
A B C Working space 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]
0478/12/M/J/18
© UCLES 2018 [Turn over
A
B
X
(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 X
[6]
(a) Identify the name and draw the single logic gate that can replace the given logic circuits.
(i)
A
X
B
[2]
(ii)
A
X
B
[2]
(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
0478/12/M/J/20
© UCLES 2020
Buy O / A Level & IGCSE Original Books, Solved Past Papers & Notes Online at Discounted Prices.
Home Delivery all over Pakistan Call / WhatsApp: (0331-9977798) Visit: www.TeachifyMe.com/Shop
Consider the given logic statement:
All logic gates must have a maximum of two inputs. Do not attempt to simplify the logic
statement.
B X
[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
0478/13/M/J/20
© UCLES 2020 [Turn over
Buy O / A Level & IGCSE Original Books, Solved Past Papers & Notes Online at Discounted Prices.
Home Delivery all over Pakistan Call / WhatsApp: (0331-9977798) Visit: www.TeachifyMe.com/Shop
(a) (i) Convert the following two hexadecimal numbers into binary:
FA7
D3E
FA7
D3E
[4]
(ii) Now perform the AND (logic) operation on each corresponding pair of binary bits in the
two numbers from part (i).
[2]
...........................................................................................................................................
...........................................................................................................................................
[2]
0478/12/O/N/15
© UCLES 2015
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
Switch B Logic circuit Output X
Switch C
OR
B X
[5]
0478/11/O/N/16
© UCLES 2016
(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.
1 1 1 1 1 0 0 1 Register Y
0 1 0 1 1 1 1 1 Register Z
Register .............................................[1]
0478/11/O/N/16
© UCLES 2016 [Turn over
(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:
column......................................................................................................................... [1]
(iii) The incorrect bit is indicated where the byte number and column cross.
[1]
...........................................................................................................................................
. .................................................................................................................................. [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]
0478/11/O/N/16
© UCLES 2016
7 (a) Complete the truth tables and name the single logic gate that could replace each logic circuit:
(i)
Working space
A A B X
X
B 0 0
0 1
1 0
1 1
(ii)
A Working space
A B X
X 0 0
0 1
B 1 0
1 1
0478/12/O/N/16
© UCLES 2016 [Turn over
8
(b) (i) Draw a logic circuit to represent the following logic statement:
B X
[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]
0478/12/O/N/16
© UCLES 2016
3 A logic circuit is shown:
X
B
(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]
0478/12/O/N/18
© UCLES 2018 [Turn over
6 A factory manufactures plastic pipes. It uses logic circuits to control the manufacturing process.
Input A
Output
Input B
0 0
0 1
1 0
1 1
[1]
0 0 0
0 1 1
1 0 1
1 1 0
State the single logic gate that produces the given output.
. .......................................................................................................................................... [1]
0478/11/O/N/19
© UCLES 2019 [Turn over
(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 system will sound an alarm (X) when certain conditions are detected.
Temperature is > 200 degrees Celsius and the pressure is <= 5 bar
or
Speed is > 1 metre per second and Temperature is <= 200 degrees Celsius
T X
[5]
0478/11/O/N/19
© UCLES 2019
8 Consider the logic circuit:
X
B
. .......................................................................................................................................... [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]
0478/12/O/N/19
© UCLES 2019 [Turn over
4 A factory that manufactures cleaning products has a system that monitors conditions throughout
the manufacturing process.
(a) The system will sound an alarm (X) when certain conditions are detected.
or
Draw a logic circuit to represent the alarm system in the factory. Each logic gate must have a
maximum of two inputs.
T X
[4]
0478/13/O/N/19
© UCLES 2019
9
(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]
0478/13/O/N/19
© UCLES 2019 [Turn over