SECTION 05 / 5

How to Solve Week 4 Exam Questions

13 min read
On this page 17 headings
PAST-PAPER PRACTICE

Choose a paper

20 of 20 questions shown

Start here Week 4 (decoders, encoders, multiplexers) gives sure marks in every paper: true/false facts, delay, “read this MUX circuit”, “read this decoder circuit”, “minimum number of MUXes” and priority encoders. This page teaches each method from zero, then solves every Week 4 question from the 11 past papers, each with the paper it came from. Two answer keys were wrong. Those are marked.

How to read this page: each grey “Asked in” box is a real past-paper question. Below it, How to solve shows every step.


Type 1: True/false facts (1 mark each)

Method

Learn the method

These sentences come back again and again. Learn the answers.

Asked in
2025 T2 End-term (AN)Q152, 2025 T2 End-term (FN)Q120, 2026 T2 End-termQ5

Question: “In a decoder, at any point, exactly one of the outputs is 1 and all the rest are 0s.”

Answer: TRUE

Show solution
  1. a decoder turns each input pattern into exactly one active output line. For 2 inputs = 10, only D2=1D_{2} = 1.

Asked in
2025 T2 Quiz 2Q126, 2026 T2 Quiz 2Q3, 2025 T3 End-term (AN and FN)Q2

Question: “A multiplexer selects one of several input signals and forwards it to a single output line.”

Answer: TRUE

Show solution
  1. this is the definition of a MUX. Many inputs, one output, and the select lines choose which input gets through.

Asked in
2025 T3 End-term (AN and FN)Q5

Question: “A decoder performs the inverse operation of a multiplexer.”

Answer: TRUE (official key)

Show solution
  1. a MUX takes many lines → one line. A decoder with an enable input works as a demultiplexer: one line → many lines, the reverse. Strictly, a decoder is the inverse of an encoder, but the exam’s answer is True.


Type 2: Delay of a MUX or decoder

Method

Learn the method

  1. Find the longest chain of gates from any input to the output.
  2. Add the delays of the gates in that chain. Gates side by side don’t add up; only gates one after another do.
In a 2:1 MUX the select line goes NOT → AND → OR. That’s the longest chain.
In a 2:1 MUX the select line goes NOT → AND → OR. That’s the longest chain.
Open image ↗
Finding the longest path
Block Longest chain
2:1MUX⁡(Y=S‾⋅I0+S⋅I1)2 : 1 \operatorname{MUX} \left(Y = \overline{S} \cdot I_{0} + S \cdot I_{1}\right) NOT → AND → OR
n:2nn : 2^{n} decoder with n-input ANDs NOT → AND
3:8 decoder from 2-input ANDs NOT → AND → AND (a 3-input AND needs two 2-input ANDs in a row)

Past paper questions

Asked in
2025 T2 Quiz 1Q1043 marks

Question: NOT has a delay of 1 ns, and 2-input AND/OR have 2 ns. Maximum delay of a2×1MUX⁡a 2 \times 1 \operatorname{MUX}?

Answer: 5

Show solution
  1. Chain: S → NOT → AND → OR → Y
  2. Add:1+2+2=A d d : 1 + 2 + 2 = 5 ns ✔
Asked in
2025 T3 End-term (AN)Q11 and 2025 T3 End-term (FN)Q103 marks

Question: NOT and 2-input AND/OR all have a delay of 1 ns. Maximum delay of a2×1MUX⁡a 2 \times 1 \operatorname{MUX}?

Answer: 3

Show solution
  1. same chain NOT⁡→AND⁡→OR⁡=1+1+1=\operatorname{NOT} \to \operatorname{AND} \to \operatorname{OR} = 1 + 1 + 1 = 3 ns ✔

Asked in
2025 T3 Quiz 1Q1713 marks

Question: NOT and 2-input AND/OR all have 1 ns delay. Maximum delay of a3×8a 3 \times 8 decoder?

Answer: 3

Show solution
  1. Each output is a 3-input AND, like A‾⋅B⋅C‾\overline{A} \cdot B \cdot \overline{C}. With 2-input ANDs: AND⁡(AND⁡(A‾,B),C‾)→\operatorname{AND} \left(\operatorname{AND} \left(\overline{A} , B\right) , \overline{C}\right) \to 2 ANDs in a row.
  2. Before that, the input goes through a NOT.
  3. Chain: NOT⁡→AND⁡→AND⁡=1+1+1=\operatorname{NOT} \to \operatorname{AND} \to \operatorname{AND} = 1 + 1 + 1 = 3 ns ✔
Asked in
2026 T2 Quiz 1Q73 marks

Question: A4×16A 4 \times 1 6 decoder uses NOT gates (1 ns) and 4-input AND gates (2 ns). Maximum delay?

Answer: 3

Show solution
  1. each output is one 4-input AND. Chain: NOT⁡→AND⁡=1+2=\operatorname{NOT} \to \operatorname{AND} = 1 + 2 = 3 ns ✔


Type 3: “What is F?” for a MUX circuit

Method

Learn the method

  1. Make a table with one row for each select pattern.
  2. In each row, write which signal reaches the output.
  3. Look for the pattern, then test every option with numbers.

Level 1: 2:1MUX⁡,S=A,I0=0,I1=B2 : 1 \operatorname{MUX} , S = A , I_{0} = 0 , I_{1} = B. A=0→0A = 0 \to 0; A=1→BA = 1 \to B. So F=F = AB.

Fill one row per select pattern. Here the output only follows Z, so F=X⊕ZF = X \oplus Z.
Fill one row per select pattern. Here the output only follows Z, so F=X⊕ZF = X \oplus Z.
Open image ↗
Reading a MUX circuit

Past paper questions

Asked in
2025 T2 Quiz 1Q995 marks. The official key is wrong.Key issue

Question: 4×1MUX⁡:I0=X,I1=X‾,I2=X,I3=X‾4 \times 1 \operatorname{MUX} : I_{0} = X , I_{1} = \overline{X} , I_{2} = X , I_{3} = \overline{X}. S1=Y,S0=ZS_{1} = Y , S_{0} = Z. What is F? Options: X(Z‾+YZ)+X‾⋅Y⋅Z/X(Z‾+YZ)+X‾⋅Y‾⋅Z/X(Z+YZ)+X‾⋅Y‾⋅Z/X(Z‾+YZ)+X⋅Y‾⋅ZX \left(\overline{Z} + Y Z\right) + \overline{X} \cdot Y \cdot Z / X \left(\overline{Z} + Y Z\right) + \overline{X} \cdot \overline{Y} \cdot Z / X \left(Z + Y Z\right) + \overline{X} \cdot \overline{Y} \cdot Z / X \left(\overline{Z} + Y Z\right) + X \cdot \overline{Y} \cdot Z / None of these

Question figure (redrawn exactly from the paper)
Question figure

Answer (key): X(Z‾+YZ)+X‾⋅Y‾⋅Z⋅X \left(\overline{Z} + Y Z\right) + \overline{X} \cdot \overline{Y} \cdot Z \cdot Correct answer: None of these

Show solution
  1. Table:
Y(S1)Y \left(S_{1}\right) Z(S0)Z \left(S_{0}\right) Input chosen F
0 0 I0I_{0} X
0 1 I1I_{1} X‾\overline{X}
1 0 I2I_{2} X
1 1 I3I_{3} X‾\overline{X}
  1. Z=0→F=XZ = 0 \to F = X. Z=1→F=X‾Z = 1 \to F = \overline{X}. Y doesn’t matter. So F=X⊕ZF = X \oplus Z.
  2. Test the keyed option at X=1,Y=1,Z=1:X(Z‾+YZ)+X‾Y‾Z=1⋅(0+1)+0=X = 1 , Y = 1 , Z = 1 : X \left(\overline{Z} + Y Z\right) + \overline{X} \overline{Y} Z = 1 \cdot \left(0 + 1\right) + 0 = 1. The circuit gives I3=X‾=I_{3} = \overline{X} = 0 ✗
  3. No option equals X⊕Z→X \oplus Z \to None of these. (We checked all 8 rows by computer.)
Asked in
2025 T3 Quiz 1Q1695 marks. The official key is wrong.Key issue

Question: The same MUX circuit (I0=X,I1=X‾,I2=X,I3=X‾,S1=Y,S0=Z)\left(I_{0} = X , I_{1} = \overline{X} , I_{2} = X , I_{3} = \overline{X} , S_{1} = Y , S_{0} = Z\right). What is F? Options: X⊕Y/X⊙Y/X+Y/XYX \oplus Y / X \odot Y / X + Y / X Y / None of these

Question figure (redrawn exactly from the paper)
Question figure

Answer (key): X⊕YX \oplus Y

Correct answer: None of these (F=X⊕Z)\left(F = X \oplus Z\right)

Show solution
  1. Same table as above → F=X⊕ZF = X \oplus Z
  2. The key says X⊕YX \oplus Y. Test X=0,Y=1,Z=0:X⊕Y=1X = 0 , Y = 1 , Z = 0 : X \oplus Y = 1, but the circuit picks I2=X=I_{2} = X = 0 ✗
  3. F depends on Z (S0)\left(S_{0}\right), not Y. None of the options is X⊕Z→X \oplus Z \to None of these.

Type 4: Decoder + OR circuits

Method

Learn the method

  1. Every decoder output Dₖ is minterm k. If Dₖ goes into the OR, then k is in Σm\Sigma m.
  2. Follow each wire carefully. A wire can bend and join another line.
  3. Simplify, then answer what is asked.

Past paper questions

Asked in
2026 T2 Quiz 1Q25 marks

Question: A 3:8 decoder (A, B, C) has D2,D3,D5,D6D_{2} , D_{3} , D_{5} , D_{6} wired into an OR → Y. Using only 2:1 MUXes, minimum number needed?

Question figure (redrawn exactly from the paper)
Question figure

Answer: 3

Show solution
  1. Y=Σm(2,3,5,6)=010,011,101,110Y = \Sigma m \left(2 , 3 , 5 , 6\right) = 0 1 0 , 0 1 1 , 1 0 1 , 1 1 0
  2. Split on A:
    • A=0A = 0 (rows 0–3): Y = 0, 0, 1, 1 → Y=BY = B
    • A=1A = 1 (rows 4–7): Y = 0, 1, 1, 0 → Y=B⊕CY = B \oplus C
  3. So Y=A‾⋅B+A⋅(B⊕C)=Y = \overline{A} \cdot B + A \cdot \left(B \oplus C\right) = B⊕ACB \oplus A C
  4. Build with MUXes (NOT costs a MUX):
    • M1 = MUX⁡(S=A,I0=0,I1=C)=\operatorname{MUX} \left(S = A , I_{0} = 0 , I_{1} = C\right) = AC
    • M2 = MUX⁡\operatorname{MUX}(S = M1, I₀ = 1, I₁ = 0) = NOT(AC)
    • Y=MUX⁡Y = \operatorname{MUX}(S = B, I₀ = M1, I1=I_{1} = M2) = B⊕ACB \oplus A C
  5. Total 3 ✔ (a computer search confirmed 2 is impossible)
Asked in
2025 T2 Quiz 1Q1064 marks

Question: The same decoder circuit. Using 2-input XOR gates plus NAND gates, minimum number of NAND gates?

Question figure (redrawn exactly from the paper)
Question figure

Answer: 2

Show solution
  1. Y=B⊕ACY = B \oplus A C (from above)
  2. The XOR is free (XOR gates are given). We only need AC from NANDs.
  3. AND from NAND⁡=\operatorname{NAND} = 2: G1 = NAND(A, C), G2 = NAND(G1, G1) = AC ✔
Asked in
2025 T3 Quiz 1Q1745 marks

Question: The same decoder circuit. Using only 4:1 MUXes, minimum number?

Question figure (redrawn exactly from the paper)
Question figure

Answer: 1

Show solution
  1. Put A, B on the select lines (S1=A,S0=B)\left(S_{1} = A , S_{0} = B\right). Each input is then a function of C alone:
A B Rows Y Input
00 0, 1 0, 0 I0=I_{0} = 0
01 2, 3 1, 1 I1=I_{1} = 1
10 4, 5 0, 1 I2=I_{2} = C
11 6, 7 1, 0 I3=I_{3} = C‾\overline{C}
  1. One 4:1 MUX does it → 1 ✔
  2. Note: this assumes C‾\overline{C} is available. With only MUXes, C‾\overline{C} would need one more.

Type 5: Minimum number of 2:1 MUXes

Method

Learn the method

Rules the papers use: the variables and 0, 1 are free. A NOT costs one MUX: A‾=MUX⁡(S=A,I0=1,I1=0)\overline{A} = \operatorname{MUX} \left(S = A , I_{0} = 1 , I_{1} = 0\right).

Splitting on one variable: F=A‾F = \overline{A}·(F when A = 0) + A·(F when A = 1) = MUX(S = A, I₀ = F|A=0,I1=FA = 0 , I_{1} = F|A=1A = 1)

Function 2:1 MUXes How
A⋅BA \cdot B 1 MUX⁡(S=A,I0=0,I1=B)\operatorname{MUX} \left(S = A , I_{0} = 0 , I_{1} = B\right)
A+BA + B 1 MUX⁡(S=A,I0=B,I1=1)\operatorname{MUX} \left(S = A , I_{0} = B , I_{1} = 1\right)
A‾\overline{A} 1 MUX⁡(S=A,I0=1,I1=0)\operatorname{MUX} \left(S = A , I_{0} = 1 , I_{1} = 0\right)
A⊕BA \oplus B 2 B‾\overline{B} first, then MUX⁡(S=A,I0=B,I1=B‾)\operatorname{MUX} \left(S = A , I_{0} = B , I_{1} = \overline{B}\right)
A⊙BA \odot B 2 B‾\overline{B} first, then MUX⁡(S=A,I0=B‾,I1=B)\operatorname{MUX} \left(S = A , I_{0} = \overline{B} , I_{1} = B\right)
AND, OR and NOT need 1 MUX. XOR and XNOR need 2.
AND, OR and NOT need 1 MUX. XOR and XNOR need 2.
Open image ↗
Gates made from 2:1 MUXes

Past paper questions

Asked in
2025 T2 End-term (AN)Q158, 2026 T2 End-termQ113 marks each

Question: Minimum 2:1 MUXes for A⊙B(XNOR⁡)A \odot B \left(\operatorname{XNOR}\right)?

Answer: 2

Show solution
  1. Split on A:A=0→F=B‾A : A = 0 \to F = \overline{B}; A=1→F=BA = 1 \to F = B
  2. We need B‾→\overline{B} \to one MUX: M1 = MUX⁡(S=B,I0=1,I1=0)\operatorname{MUX} \left(S = B , I_{0} = 1 , I_{1} = 0\right)
  3. F=MUX⁡F = \operatorname{MUX}(S = A, I₀ = M1, I₁ = B) → total 2 ✔
Asked in
2025 T2 End-term (FN)Q1263 marks

Question: Minimum 2:1 MUXes for A⊕B(XOR⁡)A \oplus B \left(\operatorname{XOR}\right)?

Answer: 2

Show solution
  1. split on A:A=0→B,A=1→B‾A : A = 0 \to B , A = 1 \to \overline{B}. Make B‾(1MUX⁡)+\overline{B} \left(1 \operatorname{MUX}\right) + the final MUX⁡(1)=\operatorname{MUX} \left(1\right) = 2.

Asked in
2025 T3 Quiz 1Q1735 marks

Question: Minimum 2:1 MUXes for F(X,Y)=Π(0,3)F \left(X , Y\right) = \Pi \left(0 , 3\right)?

Answer: 2

Show solution
  1. F=0F = 0 in rows 0 (00) and 3(11)→F=13 \left(1 1\right) \to F = 1 in rows 01, 10 → F=X⊕YF = X \oplus Y
  2. XOR⁡=\operatorname{XOR} = 2 MUXes ✔
Asked in
2026 T2 Quiz 1Q45 marks

Question: Minimum 2:1 MUXes for F(X,Y,Z)=Π(0,4)F \left(X , Y , Z\right) = \Pi \left(0 , 4\right)?

Answer: 1

Show solution
  1. F=0F = 0 in rows 000 and 100→F=01 0 0 \to F = 0 only when Y=0Y = 0 and Z=0→Z = 0 \to F=Y+ZF = Y + Z
  2. OR⁡=\operatorname{OR} = 1 MUX⁡:MUX⁡(S=Y,I0=Z,I1=1)\operatorname{MUX} : \operatorname{MUX} \left(S = Y , I_{0} = Z , I_{1} = 1\right) ✔
Asked in
2025 T2 Quiz 2Q1393 marks

Question: Minimum 2:1 MUXes for F=Σ(0,2,8,10)F = \Sigma \left(0 , 2 , 8 , 1 0\right)?

Answer: 2

Show solution
  1. F=B‾⋅D‾F = \overline{B} \cdot \overline{D} (B = 0 and D=0D = 0 in all four rows)
  2. Split on B:B=0→D‾B : B = 0 \to \overline{D}; B=1→0B = 1 \to 0
  3. Make D‾(1MUX⁡)\overline{D} \left(1 \operatorname{MUX}\right), then MUX⁡(S=B,I0=D‾,I1=0)(1MUX⁡)→\operatorname{MUX} \left(S = B , I_{0} = \overline{D} , I_{1} = 0\right) \left(1 \operatorname{MUX}\right) \to 2 ✔
Asked in
2026 T2 Quiz 2Q133 marks

Question: Minimum 2:1 MUXes for F=Σ(0,1,2,3,4,5,7)F = \Sigma \left(0 , 1 , 2 , 3 , 4 , 5 , 7\right)?

Answer: 2

Show solution
  1. F=0F = 0 only in row 6(110)→F=A‾+B‾+C6 \left(1 1 0\right) \to F = \overline{A} + \overline{B} + C
  2. Split on A:A=0→A : A = 0 \to 1. A=1→B‾+CA = 1 \to \overline{B} + C.
  3. B‾+C\overline{B} + C, split on B:B=0→1,B=1→C→MUX⁡(S=B,I0=1,I1=C)B : B = 0 \to 1 , B = 1 \to C \to \operatorname{MUX} \left(S = B , I_{0} = 1 , I_{1} = C\right), with no NOT needed.
  4. F=MUX⁡F = \operatorname{MUX}(S = A, I₀ = 1, I₁ = that MUX) → total 2 ✔
Asked in
2025 T2 Quiz 1Q1015 marks. Flawed question.Key issue

Question: Minimum 2:1 MUXes for F(X,Y,Z)=(4,5,6,7)F \left(X , Y , Z\right) = \left(4 , 5 , 6 , 7\right)?

Answer (key): 2

Show solution
  1. The paper forgot to write Σ or Π.
  2. IfΣ:F=1I f \Sigma : F = 1 in rows 100–111 → F=XF = X → 0 MUXes (just a wire).
  3. IfΠ:F=0I f \Pi : F = 0 in rows 4–7 → F=X‾F = \overline{X} → 1 MUX.
  4. Neither gives 2. The question is faulty. If it comes again, read the symbol carefully.

Type 6: Priority encoder output

Method

Learn the method

  1. Find the highest-numbered input that is 1. It wins.
  2. Write its number in binary. Done.
  3. Optional check: put the values into the given equations.
Asked in
2026 T2 End-termQ93 marks

Question: A 4-to-2 priority encoder: L3L_{3} has the highest priority, L0L_{0} the lowest. Y1=L3+L2Y_{1} = L_{3} + L_{2} and Y0=L3+L2‾L1Y_{0} = L_{3} + \overline{L_{2}} L_{1}. Output for (L3,L2,L1,L0)=(0,1,1,1)\left(L_{3} , L_{2} , L_{1} , L_{0}\right) = \left(0 , 1 , 1 , 1\right)?

Answer: 10

Show solution
  1. The highest input that is 1 is L2L_{2} → 2 → binary 10
  2. Check: Y1=0+1=Y_{1} = 0 + 1 = 1; Y0=0+(L2‾=0)⋅1=Y_{0} = 0 + \left(\overline{L_{2}} = 0\right) \cdot 1 = 0 → 10 ✔

Practice set

  1. NOT⁡=2\operatorname{NOT} = 2 ns, AND⁡=OR⁡=3\operatorname{AND} = \operatorname{OR} = 3 ns. Delay of a 2:1 MUX?
2 + 3 + 3 = 8 ns.
  1. 4:1 MUX with I0=0,I1=1,I2=1,I3=0I_{0} = 0 , I_{1} = 1 , I_{2} = 1 , I_{3} = 0 and S1=A,S0=BS_{1} = A , S_{0} = B. F?
Rows 00→0,01→1,10→1,11→0→F=A⊕B0 0 \to 0 , 0 1 \to 1 , 1 0 \to 1 , 1 1 \to 0 \to F = A \oplus B.
  1. A 3:8 decoder with D1,D2,D4,D7D_{1} , D_{2} , D_{4} , D_{7} into an OR. F?
Σm(1,2,4,7)=A⊕B⊕C\Sigma m \left(1 , 2 , 4 , 7\right) = A \oplus B \oplus C.
  1. Minimum 2:1 MUXes for F=A⋅B‾F = A \cdot \overline{B}?
1:MUX⁡(S=B,I0=A,I1=0)1 : \operatorname{MUX} \left(S = B , I_{0} = A , I_{1} = 0\right).
  1. Priority encoder input (L3,L2,L1,L0)=(1,0,0,1)\left(L_{3} , L_{2} , L_{1} , L_{0}\right) = \left(1 , 0 , 0 , 1\right). Output?
L3L_{3} wins → 11.

In one line: Learn the true/false facts, add delays along the longest chain, read MUX/decoder circuits row by row, split on one variable to count MUXes (NOT costs one), and for a priority encoder just find the highest 1. Exam words: decoder, encoder, priority encoder, multiplexer, select line, propagation delay, Σm\Sigma m, minimum MUX count.

YOUR STUDY PROGRESS

Finished this section? Save your progress.

Back to top ↑