Revision Library

Boolean Algebra, Logic Gates and Karnaugh Maps - Worksheets, Questions and Revision

12 original exam-style questions - 7 pages of questions with a full mark scheme - free printable PDF.

Download PDFJump to mark scheme (page 8)Read the revision guide
« Previous: Computer Architecture, Assembly and the LMCNext: Databases, SQL and Normalisation »
Revision Library
revisionlibrary.co.uk
A-Level · Component 01: Computer Systems - Boolean algebra and logic circuits

A1.7 Boolean Algebra, Logic Gates and Karnaugh Maps

OCR H446 · Calculators not allowed · about 140 minutes
Total Marks
Name: _______________________________    Date: ____ / ____ / ______
Answer ALL questions. Show all your working.
1
This question is about basic logic gates and their truth tables.
(a)Complete the truth table for a 2-input AND gate, where Q is the output.
A BQ
0 0?
0 1?
1 0?
1 1?
(1)
(b)Complete the truth table for a 2-input XOR (exclusive OR) gate, where Q is the output.
A BQ
0 0?
0 1?
1 0?
1 1?
(2)
(c)A logic gate has the truth table below.
A BQ
0 01
0 11
1 01
1 10
Identify this gate.
(1)
(d)State the Boolean expression for a 2-input NOR gate with inputs A and B.(1)
(Total for Question 1 is 5 marks)
2
A logic circuit has three inputs, A, B and C. Inputs A and B feed a NAND gate. The output of the NAND gate and input C feed a 2-input OR gate, whose output is Q.
(a)Write the Boolean expression for Q in terms of A, B and C.(2)
(b)Complete the truth table for this circuit for all 8 combinations of A, B and C.
A B CA.BNOT(A.B)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???
(3)
(Total for Question 2 is 5 marks)
3
Simplify each of the following Boolean expressions using the laws of Boolean algebra, showing each law you use.
(a)Simplify Q = A.B + A.B'(2)
(b)Simplify Q = A + A.B(2)
(c)Simplify Q = (A+B).(A+B')(3)
(Total for Question 3 is 7 marks)
4
This question is about De Morgan's laws.
(a)State De Morgan's first law in Boolean notation.(1)
(b)State De Morgan's second law in Boolean notation.(1)
(c)Use De Morgan's laws and the laws of Boolean algebra to simplify Q = NOT(NOT A . NOT B) + A.B, showing each step of your working.(4)
(Total for Question 4 is 6 marks)
5
This question is about the half adder circuit.
(a)State the Boolean expression for the Sum output, S, of a half adder in terms of inputs A and B.(1)
(b)State the Boolean expression for the Carry output, C, of a half adder in terms of inputs A and B.(1)
(c)Complete the truth table for a half adder.
A BSC
0 0??
0 1??
1 0??
1 1??
(2)
(d)A half adder is built from a single XOR gate and a single AND gate. Explain why a half adder cannot, unmodified, add three single binary digits together (for example, two data bits plus a carry-in bit from a previous column).(2)
(Total for Question 5 is 6 marks)
6
This question is about the full adder circuit, which has three inputs: A, B and a carry-in, Cin.
(a)Determine the Boolean expression for the Sum output, S, of a full adder in terms of A, B and Cin.(2)
(b)Determine the Boolean expression for the Carry-out output, Cout, of a full adder in terms of A, B and Cin.(2)
(c)Explain how a full adder can be constructed from two half adders and one OR gate.(3)
(d)Complete the truth table for a full adder for all 8 combinations of A, B and Cin.
A B CinSCout
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)
(Total for Question 6 is 11 marks)
7
This question is about the D-type flip-flop.
(a)State the purpose of the clock (CLK) input on a D-type flip-flop.(1)
(b)A D-type flip-flop is described as negative-edge triggered. State what is meant by this.(1)
(c)The table below shows the D input value present at each rising clock edge of a positive-edge-triggered D-type flip-flop, whose output Q starts at 0. Complete the Q column, giving the output immediately after each rising edge.
CycleDQ
11?
21?
30?
40?
51?
(3)
(d)Explain why D-type flip-flops are used to build registers within a CPU.(2)
(Total for Question 7 is 7 marks)
8
A Boolean function Q depends on three inputs, A, B and C, given by the truth table below.
A B CQ
0 0 00
0 0 11
0 1 01
0 1 11
1 0 00
1 0 11
1 1 01
1 1 11
The corresponding Karnaugh map is shown below, with rows for A (0 then 1) and columns for BC in Gray-code order (00, 01, 11, 10).
BC=00 BC=01 BC=11 BC=10
A=0: 0 1 1 1
A=1: 0 1 1 1
(a)Identify two overlapping groups of four adjacent 1s in the Karnaugh map, stating which cells (in terms of BC values) are in each group.(2)
(b)Determine the simplified Boolean expression for Q from these two groupings.(2)
(c)Verify your simplified expression against the row of the original truth table where A=1, B=0, C=1.(2)
(Total for Question 8 is 6 marks)
9
A Boolean function Q depends on four inputs, A, B, C and D, and is defined by Q = (A.B) + (C.D).
(a)Complete the 4x4 Karnaugh map for this function, with AB as rows and CD as columns, both in Gray-code order (00, 01, 11, 10).
CD=00 CD=01 CD=11 CD=10
AB=00: ? ? ? ?
AB=01: ? ? ? ?
AB=11: ? ? ? ?
AB=10: ? ? ? ?
(4)
(b)Identify the two groups of four adjacent 1s in the map and state the Boolean term each one represents.(2)
(c)Hence state the minimised sum-of-products (SOP) expression for Q.(1)
(d)Using Boolean algebra (not the Karnaugh map), verify that your simplified expression from part (c) is equivalent to the original definition of Q by evaluating both for A=1, B=0, C=1, D=1.(2)
(Total for Question 9 is 9 marks)
10
This question is about NAND gates as a universal (functionally complete) logic gate.
(a)State what is meant by describing the NAND gate as 'functionally complete'.(1)
(b)Show how a single NAND gate can be used to produce the NOT function, describing the connection required.(1)
(c)Using only NAND gates, show how to construct an AND gate, describing the gates used and their connections.(2)
(d)A student claims an OR gate can also be built entirely from NAND gates, using De Morgan's law. Using Boolean algebra, show that NOT(NOT A . NOT B) is equivalent to A OR B, and hence describe how three NAND gates could be arranged to build an OR gate.(4)
(Total for Question 10 is 8 marks)
11
A 3-input majority function has output Q=1 whenever two or more of its inputs A, B and C are 1.
(a)Complete the truth table for this majority function.
A B CQ
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)
(b)Draw the Karnaugh map for this function (rows A=0/1, columns BC in Gray-code order 00, 01, 11, 10) and identify all groups of two adjacent 1s available (there is no larger group). State the product term each group represents.(3)
(c)Hence state the minimised Boolean expression for Q.(1)
(d)A 3-person voting circuit uses this majority function so that the group decision Q is 1 only when at least two of the three voters (A, B, C) vote 1. Using your answer to part (c), state the minimum number of 2-input AND gates and 2-input OR gates required to build this circuit, briefly justifying your answer.(2)
(Total for Question 11 is 8 marks)
12
This question is about simplifying a more complex Boolean expression and evaluating the benefit of doing so.
(a)Simplify Q = A.B.C + A.B.C' + A'.B.C + A.B'.C, showing each law you use.(4)
(b)State how many 2-input AND gates, 2-input OR gates and NOT gates are required to implement the original (unsimplified) expression from part (a) directly, compared with the simplified expression. Comment on the benefit of simplifying the expression before building the circuit.(3)
(Total for Question 12 is 7 marks)
Mark scheme · A1.7 Boolean Algebra, Logic Gates and Karnaugh Maps

Question 1

Question 2

Question 3

Question 4

Question 5

Question 6

Question 7

Question 8

Question 9

Question 10

Question 11

Question 12

Mark your answers

This checks your answers in your browser, stores nothing on a server and needs no account.

Question 1

5 marks
Did your answer earn the marks?

Question 2

5 marks
Did your answer earn the marks?

Question 3

7 marks
Did your answer earn the marks?

Question 4

6 marks
Did your answer earn the marks?

Question 5

6 marks
Did your answer earn the marks?

Question 6

11 marks
Did your answer earn the marks?

Question 7

7 marks
Did your answer earn the marks?

Question 8

6 marks
Did your answer earn the marks?

Question 9

9 marks
Did your answer earn the marks?

Question 10

8 marks
Did your answer earn the marks?

Question 11

8 marks
Did your answer earn the marks?

Question 12

7 marks
Did your answer earn the marks?
Mark my answers