ALL Boolean Algebra
ALL Boolean Algebra
Complete and use the Karnaugh map below to simplify the expression above.
Simplified expression:
[4]
2(a) An XOR gate is shown below. Complete the truth table for XOR.
A B Q
1 1
1 0
0 1
0 0
[2]
A B Cin S Cout
1 1 1
1 1 0
1 0 1
1 0 0
0 1 1
0 1 0
0 0 1
0 0 0
[4]
(ii) Explain what the circuit does. You should refer to A, B, Cin, S and Cout in your answer.
(c)
[1]
[2]
[1]
[1]
(iii) Use the expressions for S and C to draw a single logic circuit for the truth table.
[2]
[4]
4 Burger House is a fast food restaurant which wants to encourage healthy eating amongst its younger
diners.
(a)
(i) Shown below in Fig.2 is the Burger House children’s menu.
Children receive a free toy when they select a meal (i.e. one burger, one side dish and one
Let g be a Boolean value for if a child has chosen a grilled chicken burger.
Let s be a Boolean value for if a child has chosen salad.
Let c be a Boolean value for if a child has chosen carrot sticks.
Let f be a Boolean value for if a child has chosen fruit salad.
Let t be a Boolean value for whether a child receives a toy.
Write an expression using Boolean algebra to determine whether a child receives a toy when
they select a meal.
t=
[3]
(b)
(ii) Burger House wants to add this logic into its till system.
Complete the code below assuming that g,s,c,f and t are Boolean variables with the same
meaning as part (i).
[2]
State the Boolean expression represented by the Karnaugh map in Fig. 9.1, in its smallest form.
[4]
(i) ¬ ¬A
[1]
[1]
[1]
6(a) A cinema offers discounted tickets, but only under one of the following conditions:
• Customer is under 18 and has a student card.
• Customer is over 60 and has ID which proves this.
Let:
A be Customer is under 18
C be Customer is over 60
D be Customer has ID
The cinema has a voucher which promises free popcorn when the voucher is produced whilst buying a
soft drink or bottle of water.
Let:
E be Voucher is shown
R ≡ (E⋀F) ⋁ (E⋀G)
[4]
(E⋀F) ⋁ (E⋀G)
[2]
Most films are now distributed to cinemas digitally. A studio allows cinemas to download its latest film
5 days before the release date via a private download. It wants to ensure that no cinema shows it
before the release date.
Q≡ [3]
A B Sum Carry
1 1 0 1
1 0 1 0
0 1 1 0
0 0 0 0
[3]
[4]
Q≡¬A⋁B
[2]
(b) Find the Boolean expression represented in the Karnaugh Map below. Show your working.
[5]
Q ≡ ¬ (A Λ B) V C
A B C Q
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
[2]
The device, when placed in a room, listens out for the phrase “Hey Bertie”. When someone says that
phrase it then listens to the question that follows and tries to give a relevant answer.
Bertie Butler’s circuitry is designed to only listen out for “Hey Bertie” under certain circumstances,
which are:
The privacy button (P) must be off and the microphone must generate a signal (S) to say a sound has
been heard.
(i) Complete the truth table for whether the device is listening (L).
P S L
False False
False True
True False
True True
[2]
[3]
Fig. 4
Complete the truth table below for the logic circuit shown in Fig. 4.
A B C D 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]
[3]
(ii) Use the Karnaugh map to find a simplified Boolean expression that is equivalent to (¬ A ∧ ¬ B) ∨ (
A ∧ ¬ B)
[2]
[2]
(ii) Describe the inputs and outputs used by a D-type flip-flop circuit, explaining how the inputs are
used to control the outputs.
[4]
Let:
B be a Boolean value for if a user enters a password that matches their username
C be a Boolean value for if a user is able to respond to an email containing a secret code
D be a Boolean value for if a user is able to respond to a text message containing a secret code
Q≡
(i) Simplify this Boolean expression so that it does not include any negation. You must explain which
Boolean algebra rule(s) you are using at each step.
[2]
(c)
S≡
C≡
[2]
A B S C
0 0
0 1
1 0
1 1
(iii) Describe how this logic circuit can be adapted to add together two 4-bit binary numbers.
[4]
[1]
(b) Explain the difference in the function of OR and XOR gates.
[2]
A B C D Output
1 1 1 1
1 1 1 0
1 1 0 1
1 1 0 0
1 0 1 1
1 0 1 0
1 0 0 1
1 0 0 0
0 1 1 1
≡ Output
[2]
Complete the Karnaugh Map below to simplify this expression. Show your working.
Simplified expression:
[4]
Q = ¬(A ∧ B) ∨ (C ∧¬ D)
[3]
Fig. 6
(i) Give the Boolean expression that represents the logic circuit shown in Fig. 6. Do not attempt to
simplify the expression.
[2]
(ii) Complete the truth table for the logic circuit shown in Fig. 6.
A B C P
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
[3]
Use this Karnaugh map to find the simplified expression for this circuit.
You should highlight the map as appropriate and write the expression here.
[4]