Menu Close

Boolean algebra and logic gates: UPSC Electrical Engineering Optional PYQ Solutions (1997–2023)

All 23 questions UPSC has asked on Boolean algebra and logic gates in the Electrical Engineering Optional (Paper I, Digital Electronics) from 1997 to 2023, solved step by step – latest first.

Try them yourself first: the same questions, without solutions, are on our Digital Electronics topic-wise PYQs page. Circuit diagrams have been redrawn from the question papers.

How we check these solutions

These are our own solutions, prepared with AI help. UPSC does not publish official answers. Every solution is checked a second way before it goes up, and says how:

  • ✓ Checked by computer the numbers were worked out again independently in code (SymPy and NumPy: circuit equations, power balance, matrices, integrals).
  • ✓ Proof checked step by step or ✓ Derivation checked step by step for “prove” and “derive” questions, every step was checked against the definitions and standard results.

Where a printed question is wrong, unclear or incomplete, we say so and solve the intended version.

Spotted a mistake or a neater method? Tell us in the comments below or through Report an error.

Jump to a question (year · question number):

2023 · 4b 2021 · 1e 2020 · 2c 2019 · 5b 2019 · 7d 2018 · 2a 2017 · 2a 2017 · 5a 2016 · 5a 2015 · 5e 2014 · 6b 2013 · 6a 2013 · 6c 2012 · 5b 2011 · 6a 2009 · 7a(i) 2007 · 5b(ii) 2006 · 6a(iii) 2002 · 3a 2001 · 1b 1999 · 5b(i) 1998 · 2c 1997 · 5a

Cover of the UPSC Prelims Topic-wise PYQ book with detailed explanations

From the Optional Province team

Preparing for Prelims too?

Our UPSC Prelims Topic-wise PYQ Book covers every Prelims question with detailed explanations, so you can see exactly where UPSC asks from. Now available as a hard copy and an eBook.

Buy Hard Copy on AmazonBuy eBook (PDF)

Download a free sample

Consider the control circuitry of a machine copier with four switches as shown below in the figure. These switches are at various points along the path of the machine. Each switch is normally open and closes only when the paper passes over it. Let there be a restriction that switch 1 and switch 4 cannot close simultaneously. Use Karnaugh map to design a logic circuit that produces a high output whenever two or more switches are closed at the same time.

+5 VSW1SW2SW3SW4LogiccircuitX
Figure redrawn from the question paper.

2023 · Paper I · Q4b · 20 marks

Solution

Note. Each input line is pulled up to 5 V and a closed switch connects it to ground. So a line reads 0 when its switch is closed (active-low). We first design in terms of “switch closed” variables and then translate to the line voltages A, B, C, D seen by the logic circuit.

Variables. Let P,Q,R,S=1 when SW1, SW2, SW3, SW4 is closed. Since SW1 and SW4 can never close together, every state with P=S=1 is a don’t care (×). The output is 1 when two or more switches are closed.

PQRS0001101100011011000101110×1×1×1×
Map in “switch closed” variables; × = SW1 and SW4 together (cannot occur).

Groups. Using the × cells, we get five quads: PQ, PR, QR, QS, RS. X=PQ+PR+QR+QS+RS=QR+(P+S)(Q+R).

In terms of the line voltages. With A=P‾, B=Q‾, C=R‾, D=S‾: X=B‾C‾+(A‾+D‾)(B‾+C‾)=B+C+AD⋅BC. So the circuit needs one NOR, two NANDs, one AND and one OR:

XBCADBC
X = (B+C)′ + (AD)′(BC)′ in terms of the line voltages.

✓ Checked by computer We checked the map, the don’t-cares and the final circuit against all 16 switch states in code.

↑ Back to the question list

Consider the four variables logic function defined as follows: F(A,B,C,D)=A¯C+A¯D+B¯C+B¯D+ABC¯D¯ Assuming input variables as A, B, C and D, propose a logic circuit using only three logic gates to implement the function.

2021 · Paper I · Q1e · 10 marks

Solution

Regrouping the function. F=A‾C+A‾D+B‾C+B‾D+ABC‾D‾=(A‾+B‾)(C+D)+ABC‾D‾. Write P=AB and Q=C+D. Then A‾+B‾=P‾ and C‾D‾=Q‾, so F=P‾Q+PQ‾=P⊕Q=(AB)⊕(C+D).

Three-gate circuit. One 2-input AND gives AB, one 2-input OR gives C+D, and one XOR combines them.

FABCD
F = (AB) ⊕ (C + D): three gates.

✓ Checked by computer We checked the XOR form against the given function on all 16 inputs in code.

↑ Back to the question list

Design a combinational circuit to implement the minimal sum-of-products of the logic function F=ΣWXYZ(1,2,3,5,7,11,13).

2020 · Paper I · Q2c · 10 marks

Solution

Karnaugh map. The ones are at 1, 2, 3, 5, 7, 11, 13.

WXYZ00011011000110110111010100010100
Four essential groups.

Groups.

  • W‾Z (quad 1, 3, 5, 7).
  • W‾X‾Y (pair 2, 3): the only group covering 2.
  • X‾YZ (pair 3, 11): the only group covering 11.
  • XY‾Z (pair 5, 13): the only group covering 13.

All four are essential, so the minimal sum of products is F=W‾Z+W‾X‾Y+X‾YZ+XY‾Z.

Circuit. Inverters for W‾,X‾,Y‾, four AND gates and a 4-input OR.

FYWXZWYZXXZY
Minimal SOP realized as AND–OR.

✓ Checked by computer We found every minimum cover by exhaustive search in code.

↑ Back to the question list

Simplify the following expression using Boolean algebra: Y=AC+A(B+C)+C(B+C) and draw the logic diagram for reduced expression.

2019 · Paper I · Q5b · 10 marks

Solution

Simplification. Y=AC+A(B+C)+C(B+C)=AC+AB+AC+BC+C(C⋅C=C)=AB+C(A+B+1)=AB+C.

Logic diagram. One 2-input AND and one 2-input OR.

YCAB
Y = AB + C.

✓ Checked by computer We checked the reduced expression on all eight inputs in code.

↑ Back to the question list

Reduce the combinational logic circuit shown in Figure 7(d) to a minimum form.

ABCDX
Figure 7(d), redrawn from the question paper.

2019 · Paper I · Q7d · 10 marks

Solution

Reduction. The first AND gives A‾B‾C‾. After the inverter, the node carries N=A‾B‾C‾=A+B+C(De Morgan). The AND gate with a single input simply passes N. So the OR gate receives N, N and D: X=N+N+D=N+D=A+B+C+D.

Minimum form. The whole circuit is a single 4-input OR gate, X=A+B+C+D.

✓ Derivation checked step by step We checked the reduction step by step.

↑ Back to the question list

Convert the following logic equation to NAND logic and draw the circuit using NAND gates: Z=(A+B¯)C+A(B+C¯)

2018 · Paper I · Q2a · 20 marks

Solution

Simplify first. Z=(A+B‾)C+A(B+C‾)=AC+B‾C+AB+AC‾=A(C+C‾)+AB+B‾C=A+B‾C.

NAND form. Double inversion and De Morgan: Z=A+B‾C=A‾⋅B‾C. So Z is a NAND of A‾ and B‾C. The inverters are NAND gates with tied inputs.

ZAACBB
Z = (A′ · (B′C)′)′ with NAND gates only.

Four NAND gates in all: two as inverters (for A‾ and B‾), one for B‾C, and the output gate.

✓ Checked by computer We checked the reduced form and the NAND circuit on all inputs in code.

↑ Back to the question list

For the Boolean function F(W,X,Y,Z)=Σ(0,2,5,6,7,8,10,13) (i) find all the prime implicants; (ii) give minimal representation; (iii) find minimal two-level realization using NAND gates only.

2017 · Paper I · Q2a · 20 marks

Solution

(i) Prime implicants. The ones are at 0, 2, 5, 6, 7, 8, 10, 13.

WXYZ00011011000110111010011110100100
All five prime implicants.
Prime implicant Minterms
X‾Z‾ 0, 2, 8, 10
XY‾Z 5, 13
W‾XY 6, 7
W‾XZ 5, 7
W‾YZ‾ 2, 6

(ii) Minimal representation. X‾Z‾ (only cover of 0, 8, 10) and XY‾Z (only cover of 13) are essential. They leave 6 and 7, which W‾XY covers in one term: F=X‾Z‾+XY‾Z+W‾XY. This cover is unique.

(iii) Two-level NAND realization. An AND–OR sum of products becomes NAND–NAND directly: F=X‾Z‾⋅XY‾Z⋅W‾XY.

FXZXZYXYW
NAND–NAND realization.

✓ Checked by computer We listed the prime implicants and searched all covers in code.

↑ Back to the question list

Prove that A¯B+B¯C+A¯C=A¯B+B¯C.

2017 · Paper I · Q5a · 10 marks

Solution

To prove: A‾B+B‾C+A‾C=A‾B+B‾C.

Proof. Multiply the third term by (B+B‾)=1: A‾B+B‾C+A‾C=A‾B+B‾C+A‾C(B+B‾)=A‾B+B‾C+A‾BC+A‾B‾C=A‾B(1+C)+B‾C(1+A‾)=A‾B+B‾C. since 1+C=1 and 1+A‾=1. ◼

This is the consensus theorem: A‾C is the consensus of A‾B and B‾C, so it is redundant.

✓ Proof checked step by step We checked the proof step by step.

↑ Back to the question list

Minimize the SOP terms given for a Boolean function f(A,B,C,D)=Σm(2,3,8,10,11,12,14,15) Implement the minimized function using NAND gates alone.

2016 · Paper I · Q5a · 10 marks

Solution

Karnaugh map. The ones are at 2, 3, 8, 10, 11, 12, 14, 15.

ABCD00011011000110110011000010111011
Three essential quads.

Groups.

  • AC: 10, 11, 14, 15.
  • AD‾: 8, 10, 12, 14.
  • B‾C: 2, 3, 10, 11.

All three quads are essential: f=AC+AD‾+B‾C.

NAND-only circuit (two levels). f=AC⋅AD‾⋅B‾C. The inverters for D‾ and B‾ are NAND gates with their inputs tied.

fACADCB
f with NAND gates only.

✓ Checked by computer We checked the minimum cover by exhaustive search in code.

↑ Back to the question list

Obtain all the possible minimal functions for: F=Σ(0,2,3,4,5,7).

2015 · Paper I · Q5e · 10 marks

Solution

Note. The function has minterms up to 7, so we take three variables A, B, C (A most significant).

Prime implicants. The ones are at 0, 2, 3, 4, 5, 7. Every 1 has exactly two neighbouring ones, so the ones form a ring and there are six prime implicants (all pairs): A‾B (2, 3), A‾C‾ (0, 2), AB‾ (4, 5), AC (5, 7), B‾C‾ (0, 4), BC (3, 7).

None is essential: each minterm is covered by two of them. We need three pairs to cover six minterms, and there are exactly two ways to do it:

ABC000110110110111101ABC000110110110111101
Left: A′B + AC + B′C′. Right: A′C′ + AB′ + BC.

F=A‾B+AC+B‾C‾orF=A‾C‾+AB‾+BC.

Both use three 2-literal terms and are equally minimal.

✓ Checked by computer We listed all prime implicants and all minimum covers in code.

↑ Back to the question list

(i) Find 2’s complement of the following numbers: (1) 10010010 (2) 11011000 (ii) Convert the logical equation Y=(A+BC)(B+C¯A) into product-of-sums (POS) form and design circuits using (1) OR and AND gates and (2) NOR gates. (iii) Explain the function of Schottky diode connected between the collector and base of transistors of TTL gate.

2014 · Paper I · Q6b · 20 marks

Solution

(i) 2’s complements (invert all bits and add 1):

Number 1’s complement 2’s complement
10010010 01101101 01101110
11011000 00100111 00101000

(ii) Simplify, then the POS form. Y=(A+BC)(B+AC‾)=AB+AC‾+BC+ABCC‾=AB+AC‾+BC. AB is the consensus of AC‾ and BC, so Y=AC‾+BC. For the POS form, use xy+x‾z=(x+z)(x‾+y) with x=C: Y=(A+C)(B+C‾). Check: (A+C)(B+C‾)=AB+AC‾+BC, which equals AC‾+BC.

(1) With OR and AND gates.

YACBC
Y = (A + C)(B + C′) with OR and AND gates.

(2) With NOR gates only. POS maps directly onto NOR–NOR: Y=A+C+B+C‾.

YACBC
The same function with NOR gates only.

The inverter for C‾ can itself be a NOR gate with its inputs tied, so the circuit uses NOR gates only.

(iii) Schottky diode between base and collector (Schottky TTL). The Schottky diode has a forward drop of about 0.3 V, against 0.7 V for the base–collector junction. When the transistor is driven hard, the excess base current is diverted through the diode into the collector, so the collector–base junction is clamped at about 0.3 V and never becomes strongly forward biased. The transistor never enters deep saturation, so no excess charge is stored in the base. The storage time disappears and the turn-off delay drops sharply. This is why 74S and 74LS gates are much faster than standard 74-series TTL (about 3 ns against 10 ns propagation delay), at the cost of a slightly higher VOL.

✓ Checked by computer We checked the complements and both circuits against the given expression in code.

↑ Back to the question list

Cover of the UPSC Mains Topic-wise and Year-wise PYQs book (2013–2026)

From the Optional Province team

Strengthen your GS papers

Our UPSC Mains Topic-wise & Year-wise PYQ Book (2013–2026) maps every GS question to the syllabus, so you know what UPSC asks and how often. Now available as a hard copy and an eBook.

Buy Hard Copy on AmazonBuy eBook (PDF)

Download a free sample

Determine the MSP form of the switching function F(uvwxyz)=Σ(0,1,4–6,11,14–17,20–22,30,32,33,36,37,48,49,52,53,59,63) using 6-variable Karnaugh map.

2013 · Paper I · Q6a · 20 marks

Solution

Arrangement. We take u as the most significant variable and z as the least. A 6-variable map is four 4-variable maps (in w, x, y, z), one for each value of uv, laid out so that side-by-side and one-above-the-other maps differ in only u or v. Cells in the same position on such neighbouring maps are adjacent.

wxyz00011011000110111100111000010011uv = 00wxyz00011011000110111100111000000010uv = 01wxyz00011011000110111100110000000000uv = 10wxyz00011011000110111100110000010001uv = 11
6-variable map: w′y′ (teal), u′xyz′ (red), u′v′wyz (gold), uvwyz (purple).

Groups.

  • w‾y‾ (teal): cells wxyz=0000,0001,0100,0101 on all four maps, a group of 16 (0, 1, 4, 5, 16, 17, 20, 21, 32, 33, 36, 37, 48, 49, 52, 53).
  • u‾xyz‾ (red): cells 0110 and 1110 on the uv = 00 and 01 maps (6, 14, 22, 30).
  • u‾v‾wyz (gold): cells 1011 and 1111 on the uv = 00 map (11, 15).
  • uvwyz (purple): cells 1011 and 1111 on the uv = 11 map (59, 63).

Each group is essential, and together they cover all 24 minterms. The minimum sum of products is F=w‾y‾+u‾xyz‾+u‾v‾wyz+uvwyz.

✓ Checked by computer We found every minimum cover of the 24 minterms by exhaustive search in code.

↑ Back to the question list

Assuming that logic 0 is available, show that the INCLUSION gate is a universal building block.

2013 · Paper I · Q6c · 10 marks

Solution

Note. We read the INCLUSION gate as the implication gate, f(A,B)=A‾+B (output 0 only for A=1,B=0; “A is included in B”).

A set of gates is universal if it can make NOT, AND and OR. With logic 0 available:

NOT. f(A,0)=A‾+0=A‾.

OR. f(A‾,B)=A‾+B=A+B, so A+B=f(f(A,0),B).

AND. By De Morgan, AB=A‾+B‾. Now f(A,B‾)=A‾+B‾, so AB=f(f(A,f(B,0)),0).

A B f(A,0) f(f(A,0),B) f(f(A,f(B,0)),0)
0 0 1 0 0
0 1 1 1 0
1 0 0 1 0
1 1 0 1 1

NOT, OR and AND all come from the inclusion gate and the constant 0, so it is a universal building block. (Without the constant 0, NOT cannot be made: f(A,A)=1.)

✓ Checked by computer We checked each derived gate against its truth table in code.

↑ Back to the question list

Convert decimal 65,535 to its hexadecimal and binary.

2012 · Paper I · Q5b · 12 marks

Solution

Hexadecimal. Divide repeatedly by 16: 65535=16×4095+15,4095=16×255+15,255=16×15+15,15=16×0+15. All four remainders are 15 (F), so 6553510=FFFF16.

Binary. Each hex F is 1111: 6553510=11111111111111112. Check: 65535=216−1, the largest 16-bit number, which is sixteen ones.

✓ Checked by computer We checked both conversions in code.

↑ Back to the question list

Convert decimal number 40 into binary and hexadecimal numbers.

2011 · Paper I · Q6a · 20 marks

Solution

Binary. Divide repeatedly by 2 and read the remainders upwards:

Division Quotient Remainder
40 ÷ 2 20 0
20 ÷ 2 10 0
10 ÷ 2 5 0
5 ÷ 2 2 1
2 ÷ 2 1 0
1 ÷ 2 0 1

4010=1010002.

Hexadecimal. Group the bits in fours from the right: 00101000=2816. Check: 2×16+8=40. 4010=2816.

✓ Checked by computer We checked both conversions in code.

↑ Back to the question list

Design a combinational logic circuit which produces an output equal to ‘1’ if the input variables have more 1’s in the sequence than 0’s. The output is zero otherwise. Design the circuit for three variable inputs. Draw the realization.

2009 · Paper I · Q7a(i) · 10 marks

Solution

Truth table. With three inputs, “more 1s than 0s” means two or three 1s (a majority circuit).

A B C F
0 0 0 0
0 0 1 0
0 1 0 0
0 1 1 1
1 0 0 0
1 0 1 1
1 1 0 1
1 1 1 1

Simplification. F=Σm(3,5,6,7). On a map, minterm 7 pairs with each of 3, 5 and 6: F=AB+BC+CA.

Realization. Three 2-input AND gates and one 3-input OR.

FABBCAC
Three-input majority circuit.

✓ Checked by computer We checked the circuit on all eight inputs in code.

↑ Back to the question list

Implement an OR gate with AND and NOT gates.

2007 · Paper I · Q5b(ii) · 5 marks

Solution

Using De Morgan’s theorem. A+B=A+B=A‾⋅B‾. So we invert A and B, AND them, and invert the result. This needs one AND gate and three NOT gates.

A+BAB
OR from AND and NOT.
A B A‾B‾ output
0 0 1 0
0 1 0 1
1 0 0 1
1 1 0 1

✓ Derivation checked step by step We checked the derivation step by step.

↑ Back to the question list

Minimize and implement the following multiple-output functions f1(A,B,C,D)=Σ(1,2,3,6,8,12,14,15) f2(A,B,C,D)=Σ(1,2,3,5,6,7,8,12,13)

2006 · Paper I · Q6a(iii) · 10 marks

Solution

Maps.

ABCD00011011000110110111001010001011ABCD00011011000110110111011110001100f₁f₂
Teal and gold groups are shared by f₁ and f₂.

Separate minimization. f1=ABC+AC‾D‾+A‾CD‾+A‾B‾D,f2=A‾C+A‾D+BC‾D+AC‾D‾. This needs 7 distinct AND gates (AC‾D‾ is already common).

Shared minimization. We look for products that can serve both functions. AC‾D‾ (8, 12) and A‾B‾D (1, 3) are implicants of both. If f2 uses A‾B‾D (for 1, 3) in place of A‾D, minterm 5 is still covered by BC‾D and 7 by A‾C. The two functions then share two gates: f1=AC‾D‾+A‾B‾D+A‾CD‾+ABC,f2=AC‾D‾+A‾B‾D+A‾C+BC‾D. Now only 6 AND gates are needed: AC‾D‾, A‾B‾D, A‾CD‾, ABC, A‾C, BC‾D, plus two 4-input OR gates. This is the minimum (our search found no 5-gate solution; 6-gate alternatives exist with the same cost).

Implementation. The two shared AND outputs each feed both OR gates; the other four feed one OR each.

✓ Checked by computer We searched all shared and separate covers for the fewest gates in code.

↑ Back to the question list

A locker can be opened by A and B when they are both there, as the locker has 2 keys, one of which is with A and the other with B. C has both the keys, but he is permitted to open the locker only when B is not there. Show that the locker can be opened always if both A and C are there. Give the Boolean identity that symbolisms this situation.

2002 · Paper I · Q3a · 20 marks

Solution

Variables. A,B,C=1 when that person is present; L=1 when the locker can be opened.

Conditions.

  • A and B together can open it: term AB.
  • C can open it only when B is absent: term B‾C.

L=AB+B‾C.

A and C both present. Put A=C=1: L=B+B‾=1. So the locker can always be opened when A and C are both there, whether B is present or not: if B is there, A and B open it; if B is away, C opens it.

Boolean identity. Adding the term AC does not change L: AB+B‾C+AC=AB+B‾C. This is the consensus theorem. Proof: AC=AC(B+B‾)=ABC+AB‾C, which is absorbed by AB and B‾C.

✓ Checked by computer We checked the locker function and the identity on all eight inputs in code.

↑ Back to the question list

A farmer (F) has two sheds (N1 & S1) in his farm to keep his farm produce and belongings. He keeps vegetables (V) as farm produce, a goat (G) which can eat the vegetables and a dog (D) that can bite the goat in the absence of the farmer. The farmer along has to manage both sheds without loosing either vegetables or the goat. Suggest a logic circuit that can alarm him under any catastrophic condition by means of a buzzer.

2001 · Paper I · Q1b · 20 marks

Solution

Note. The question is open-ended. We take each of F, V, G, D as a variable that is 1 when it is in shed N1 and 0 when it is in shed S1. A catastrophe is the goat left with the vegetables, or the dog left with the goat, in a shed where the farmer is not.

Danger conditions.

  • Goat and vegetables together without the farmer: G=V and F≠G.
  • Dog and goat together without the farmer: G=D and F≠G.

Buzzer=(F⊕G)[(G⊙V)+(G⊙D)].

Expanded form. For F=0,G=1 (goat in N1, farmer in S1), danger if V=1 or D=1. For F=1,G=0, danger if V=0 or D=0: Buzzer=F‾GV+F‾GD+FG‾V‾+FG‾D‾. In the order (F, V, G, D), the alarm states are minterms 3, 6, 7, 8, 9, 12.

Circuit. One XOR, two XNORs, one OR and one AND.

BuzzerFGGVGD
Alarm circuit (1 = in shed N1).

✓ Checked by computer We checked the alarm function against all 16 placements in code.

↑ Back to the question list

Simplify the Boolean function Z=(A+B¯)¯.B.(A+C¯) and realise it using NAND gates.

1999 · Paper I · Q5b(i) · 10 marks

Solution

Simplification. Z=(A+B‾)⋅B⋅(A+C‾)=A‾B⋅B⋅(A+C‾)=A‾B(A+C‾)=A‾AB+A‾BC‾=A‾BC‾.

NAND realization. Z=A‾BC‾: a 3-input NAND of A‾, B, C‾, followed by a NAND used as an inverter. A‾ and C‾ come from NAND gates with tied inputs.

ACBZ
Z = A′BC′ with NAND gates only.

✓ Checked by computer We checked the simplified form and the NAND circuit on all inputs in code.

↑ Back to the question list

Reduce the following four variable function using Karnaugh map and implement it in NAND logic, F=Σm(0,4,12,8,13,7,15)

1998 · Paper I · Q2c · 20 marks

Solution

Karnaugh map. The ones are at 0, 4, 7, 8, 12, 13, 15.

ABCD00011011000110111000100110001101
C′D′, BCD and ABC′.

Groups.

  • C‾D‾: 0, 4, 8, 12 (the whole top row).
  • BCD: 7, 15 (the only group for 7).
  • ABC‾: 12, 13 (covers 13).

F=C‾D‾+BCD+ABC‾. (13 can equally be paired with 15 as ABD, giving the other minimum F=C‾D‾+BCD+ABD.)

NAND implementation. F=C‾D‾⋅BCD⋅ABC‾.

FCDBCDABC
NAND realization.

✓ Checked by computer We found every minimum cover by exhaustive search in code.

↑ Back to the question list

Minimize the following logic functions using Karnaugh maps and realize them using NAND gates. (i) f(A,B,C,D)=Σm(2,3,6,7,8,9,10,11,12,13,14,15,) (ii) f(A,B,C,D)=ΠM(0,1,2,3,4,5,6,7,8,9,10,12,13)

1997 · Paper I · Q5a · 20 marks

Solution

Maps.

ABCD00011011000110110011001111111111ABCD00011011000110110000000000010011(i)(ii)
(i) f = A + C. (ii) f = ABC + ACD.

(i) The ones are at 2, 3, 6, 7 and 8–15. The bottom half (A = 1) is a group of 8 and the two lower rows (C = 1) are another: f=A+C. NAND form: f=A‾⋅C‾, a NAND gate fed by A‾ and C‾ (two NANDs as inverters).

(ii) The maxterms listed are 0–10, 12, 13, so the function is 1 only at 11, 14 and 15: f=ACD+ABC=AC(B+D). NAND form: f=ABC⋅ACD.

fABCACD
Part (ii) with NAND gates.

✓ Checked by computer We checked both minimal forms on all 16 inputs in code.

↑ Back to the question list

More on Digital Electronics

Questions: UPSC Civil Services (Main) Examination, Electrical Engineering Paper I, 1997–2023. Solutions: Optional Province. Found an error? Tell us.

Spotted an error? Tell us.

We classify every PYQ with care, but mistakes can slip in. If a question is in the wrong topic, has a typo, the wrong year, or is missing, let us know. We review every report and update the page.

Report an Error
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted