Digital logic: gates, K-maps & flip-flops worksheet with answers

Free printable Digital logic: gates, K-maps & flip-flops worksheet: 6 problems from easy to exam level, with an answer key. Print it or save it as a PDF.

For teachers: free to print, copy and use in class. Every new worksheet has new values and its own answer key. A link to ExamProblems on your course page is appreciated.

Name: ____________________   Date: ____________

1.Easy
A = 1B = 0C = 0N1G1N2G2G3F

The inputs of the logic circuit are A = 1, B = 0 and C = 0. Exactly one of its gates has the output 1. Click that gate.

A = 1B = 0C = 0
  1. 1N1
  2. 2N2
  3. 3G1
  4. 4G2
  5. 5G3
2.Easy
BAF

NAND and NOR are universal gates: any logic function can be built from one of them alone. What is the minimum number N of 2-input NOR gates needed to build the XNOR function shown?

F = (A ⊕ B)′
N =
3.Medium
ABC000111100101324576

Simplify F = BC′ + ABC + A′C to its minimal sum-of-products form. How many literals L does the simplified expression contain?

F = BC′ + ABC + A′C
L =
4.Medium
MUX1I0​CI1​0I2​1I3​ABS1​S0​F

A 4-to-1 multiplexer has its select inputs S₁ = A and S₀ = B, and its data inputs tied to I₀ = 1, I₁ = C, I₂ = 0, I₃ = 1. For how many of the 8 combinations of A, B and C is the output F = 1? Find N.

I₀ = 1I₁ = CI₂ = 0I₃ = 1
N =
5.Hard
DQ3​Q3​DQ2​Q2​DQ1​Q1​DQ0​Q0​CLKSHIFT

A 4-bit shift register Q₃Q₂Q₁Q₀ holds 1011. At every clock edge the bits shift one place to the right (Q₃ → Q₂ → Q₁ → Q₀, Q₀ is lost) and the serial input enters Q₃. The serial input is 0, 1, 0, 0, 0 at the 5 edges. Give the final state Q = Q₃Q₂Q₁Q₀ as a decimal number.

Q₃Q₂Q₁Q₀ = 10110, 1, 0, 0, 0
Q =
6.Hard
ABCD0001111000011110X0X11302141507160121131151141819X11110

Find the minimal SOP form of F(A, B, C, D) = Σm(3, 4, 5, 6, 8, 9, 10, 13, 14, 15) + d(0, 1, 11), where d marks the don't-care conditions. How many product terms N does it have?

F(A, B, C, D) = Σm(3, 4, 5, 6, 8, 9, 10, 13, 14, 15) + d(0, 1, 11)
N =

Answer key

  1. 1. N1
  2. 2. N = 4
  3. 3. L = 3
  4. 4. N = 5
  5. 5. Q = 1
  6. 6. N = 5

Full step-by-step solutions: practise this topic on examproblems.com.