Computer Architecture - Boolean Logic - Answers
Computer Architecture - Boolean Logic - Answers
A B A OR B
0 0
0 1
1 0
1 1
Q2 Complete the truth table for the logic circuit shown in Figure 6. [3 marks]
A B X Y Z
0 0
0 1
1 0
1 1
• The automatic door has two sensors, one on either side of the door, sensor F and
sensor B. The door opens when either of these sensors is activated.
• The door system can also be turned on/off using a manual switch, S. The door will not
open unless S is on.
• The output from this logic circuit, for whether the door is open or not, is D.
Draw the logic circuit diagram for this system:
Q4 The logic diagram below (Fig. 2) shows a system made up of two connected logic [2 marks]
gates, please label them:
Q5 Complete the truth table below to show the output from this logic system. [4 marks]
A B Q
0 0
0 1
1 0
1 1
Q1
A B A OR B
0 0 0
0 1 1
1 0 1
1 1 1
Q2
A B X Y Z
0 0 0 0 1
0 1 0 0 1
1 0 0 0 1
1 1 1 1 0
Mark as follows:
1 mark for all X correct;
1 mark for all Y correct (allow follow on if X is incorrect but it correctly shows B AND X);
1 mark for all Z correct (allow follow on if complete negation of Y even if Y is incorrect);
Q3
Mark as follows:
1 mark if F and B are both inputs to an OR gate;
1 mark if S and the output of F and B (allowing for earlier errors) are inputs to an AND gate;
1 mark if the output of the gate that has S as one input, and the output of F and B as another
input, has its output connected to D;
Q4
0 0 1
0 1 1
1 0 1
1 1 0