Professional Documents
Culture Documents
www.digcademy.com digcademy@gmail.com
Logic Gates & Boolean Algebra DIGITAL ELECTRONICS 2
= ABC
ABC
ABC
ABC
ABC
7 6 5 4 1
F = m1 + m4 + m5 + m6 + m7
F = (1, 4, 5, 6, 7)
(b) Maxterm Form :
If each term in POS form contain all the variables of the function then each term is called maxterm or
standard sum and function is called Maxterm form. The Maxterm is representated by “M”. The main prop-
erty of maxterm is that it possesses ‘0’ value only for one combination of input variables. The canonical
product of sum can also be expressed as the product of decimal codes corresponding to the maxterm as in
following example.
Note : For ‘n’ variable, maximum number of Distinct Maxterms = 2 n
Note : All the term missing in min term of SOP form is called as max term of POS form
Maxterm and Minterm table
Variables Minterm (m) Maxterm (M)
ABC
0 0 0 ABC m 0 A + B + C = M0
0 0 1 ABC m1 A B C M1
0 10 ABC m 2 A B C M2
0 1 1 ABC m3 A B C M3
1 0 0 ABC m 4 A B C M4
1 0 1 ABC m5 A B C M5
1 1 0 ABC m6 A B C M6
1 1 1 ABC m 7 A B C M7
Note : Each maxterm is complement of corresponding minterm. For example maxterm corresponding to minterm
A BC is A BC which is equivalent to A + B + C.
Example :
(A B C) (A B C) (A B C) (A B C)
F (A, B, C) =
M3 M1 M0 M2
www.digcademy.com digcademy@gmail.com
Logic Gates & Boolean Algebra DIGITAL ELECTRONICS 3
= ( x y zz ) ( z y xx )( x yy z )
= ( x y z ) ( x y z )( x y z )
( x y z) ( x y z) ( x y z)
x y z) ( x y z ) ( x y z) ( x y z)
= (
M4 M5 M0 M2
F = M0 . M2 . M4 . M5
F = (0, 2, 4, 5) = (0, 2, 4, 5)
3.3 Conversion of Canonical Forms
3.3.1 SOP to POS Conversion
The compliment of a function expressed is the sum of minterms equals the sum of maxterms missing from the
original function. The conversion from canonical SOP to canonical POS is illustrated in example below.
Example :
Consider a functions F given in canonical SOP form. It can be converted to canonical POS as under,
F(A, B, C) = (1, 2, 3, 5)
Then F(A, B, C) = (0, 4, 6, 7)
or F(A, B, C) = m0 + m4 + m6 + m7
or F(A, B, C) = (m0 m4 m6 m7 )
= m0 . m4 . m6 . m7
F(A, B, C) = M0. M4 . M6. M7
F(A, B, C) = (0, 4, 6, 7) – Maxterms
3.3.2 POS to SOP Conversion
The compliment of a function expressed in canonical POS is equal to POS of minterms missing from original
function.
If F (x, y, z) = (0, 2, 4, 5) – Maxterms
then F(x, y, z) = (1, 3, 6, 7) – Minterms
3.3.3 SOP and POS expressions from truth table
SOP expression is obtained by adding all product terms of truth table for which value of output is ‘1’. Similarly
POS expressions is obtained by all POS term for which function value is zero. In sum term the input variable
appears in a uncomplimented form if it has the value ‘0’ and in the complimented form if it has the value ‘1’.
The conversion of canonical POS and SOP is illustrated in table given below,
www.digcademy.com digcademy@gmail.com
Logic Gates & Boolean Algebra DIGITAL ELECTRONICS 4
y = A B C A B C A BC ABC
= (1, 4,5,7)
The expression in POS form,
y = (A B C) (A B C) (A B C) (A B C)
= (0, 2, 3, 6)
3.4 Realization of Boolean Functions given in POS and SOP forms
Case I : AND-OR realization of function given in SOP form:
In SOP expression each product term indicates AND operation and sum of product terms indicates OR
operation.
Each Product Term AND operation
Sum OR operation.
Example :
F = A BC ABC
A. AND-OR Realization
A
B BC
C
– ––
A Y=A+B C+AB C
–
B ––
– AB C
C
F = A.BC.ABC
B BC
C F
–
A
–
B
– –––
C ABC
C. NOR-NOR :
F = A BC ABC
F = A.BC.(ABC)
F = A.(B C) (A B C)
F = A (B C) (A B C)
F = A (B C) (A B C)
www.digcademy.com digcademy@gmail.com
Logic Gates & Boolean Algebra DIGITAL ELECTRONICS 5
–
A
–
B
– F
C
A
B
C
Example : 2
Realize the following function :
F = (A + B) (C + D) E
A. Using AND-OR
A A+ B
B
C
F
D C+D
E
B. Using NAND gates
F = AB.CD.E
–
A AB
B
C CD F = A B C D·E
D
E F =AB C D E
F = (A B) (C D) E
A A+ B
B
C C+D
F
D
www.digcademy.com digcademy@gmail.com
Logic Gates & Boolean Algebra DIGITAL ELECTRONICS 6
CD CD CD CD CD
(LSB) 00 01 11 10
(MSB) AB
AB 00 A B C D 0 A B C D 1 ABC D 3 ABC D 2
AB 01 A B C D 4 A B C D 5 ABC D 7 ABC D 6
AB 11 A B C D 12 A B C D 13 A B C D 15 A B C D 14
AB 10 ABC D 8 ABCD 9 A B C D 11 A B C D 10
A= 0
DE
BC 00 01 11 10
0 1 3 2
00
4 5 7 6
01
12 13 15 14
11
8 9 11 10
10
A= 1
CE
BC 00 01 11 10
00 16 17 19 18
01
20 21 23 22
11 30
28 29 31
10 26
24 25 27
www.digcademy.com digcademy@gmail.com
Logic Gates & Boolean Algebra DIGITAL ELECTRONICS 7
F = A C A B A BC BC
Solution :
BC – – – –
A BC BC BC BC
–
A 1 1 1
A 1 1
F = C AB
Example : 2
Minimize the following function
F(A, B, C, D) = ABCD ABCD ACD ABD AD A BC
Solution :
CD
AB –– – –
CD CD CD CD
–– 1
AB
0 4 12 8
– 1 1
AB
1 5 13 9
AB 1 1
3 7 15 11
– 1 1 1
AB 2 6 10
14
F = (B C) (A B) (A B)
Example : 4
Simplify the following function using K-map.
F (A, B, C, D) = (A B C D) (A C D)
(A B C D) (B D) (A B)
Solution :
CD – – – –
AB C+D C+D C+D C+D
A+B 0 4
012 8
– 0 0 0 0
A+B 1 5 13 9
– – 0 0
A+B 3 11
7 15
– 0
A+B
2 6 14 10
www.digcademy.com digcademy@gmail.com
Logic Gates & Boolean Algebra DIGITAL ELECTRONICS 8
F = (A B) (C D) (A B D)
A1 4 5 7 6
1 1
F = A B AC
Example : 2
Simplify the following function using K-map,
F(A, B, C, D) = M(4, 6, 10, 12, 13, 15)
C+D
A+B
0+0 0+1 1+1 1+0
0 1 3 2
0+0
4 5 7 6
0+1
0 0
12 13 15 14
1+1
0
8 9 11 10
1+0
0 0 0
F = (A B)(A B D)(A C D)
3.6.3 Don’t care condition
In some digital systems some combinations of input variables never occur, such combinations are called
don’t care conditions. The don’t care conditions can be paired with 1’s in case SOP and with 0’s in case of
POS expression.
Example : 3
Minimize the following :
F(A, B, C, D) = m (1, 3, 7, 11, 15) + d (0, 2, 5)
Solution :
CD
AB 00 01 11
10
0 1 3 2
00 d 1 1 d
4 5 7 6
01 d 1
12 13 15 14
11 1
8 9 11 10
10 1
––
F = AB + CD
Example : 4
Simplify the following function using K-map :
F(A, B, C, D) = M(4, 5, 6, 7, 8, 12).d(1, 2, 3, 9, 11, 14)
Solution :
www.digcademy.com digcademy@gmail.com
Logic Gates & Boolean Algebra DIGITAL ELECTRONICS 9
CD
AB 00 01 11 10
0 1 3 2
00 d d d
4 5 7 6
01 0 0 0 0
12 13 15 14
11 0 d
8 9 11 10
10 0 d d
F = (A B) (A C D)
Note : Minimized terms are called prime implicants and term consisting of all variable of function in minimized form
is called essential prime implicant.
1 1
Y=A B
ii)
BC
A 00 01 11 10
0 1 3 2
0 1 1
41 5 71 6
1
Y=A B C
iii)
CD
AB 00 01 11 10
0 1 3 2
00 1 1
4 5 7 6
01 1 1
12 13 15 14
11 1 1
8 9 11 10
10 1 1
Y=A B C D
B. Ex-NOR Simplification :
i)
B
A 0 1
0 1
1 1
Y=A B
ii)
www.digcademy.com digcademy@gmail.com
Logic Gates & Boolean Algebra DIGITAL ELECTRONICS 10
BC
A 00 01 11 10
0 1 1
1 1 1
Y=A B C
iii)
CD
AB 00 01 11 10
00 1 1
01 1 1
11 1 1
10 1 1
Y=A B C D
www.digcademy.com digcademy@gmail.com
Boolean Functions & K-map DIGITAL ELECTRONICS 11
Objective Questions
C
B
(a) AB + AC + BC (b) A + BC
(c) A + B (d) A + B + C
Q.3 The switching circuit given in the figure an be expressed in binary logic notation as
(a) L = (A + B) (C + D) E (b) L = AB + CD + E
(c) L = E + (A + B) (C + D) (d) L = (AB + CD) E
IES (EE)
Q.4 The Venn diagram representing the Boolean expression A + ( A . B) is
IES (E & T)
Q.5 The Boolean expression for the shaded area in the given venn diagram is]
(a) AB + BC + CA (b) ABC ABC ABC
(c) ABC A B C (d) C B A A B C
www.digcademy.com digcademy@gmail.com
Boolean Functions & K-map DIGITAL ELECTRONICS 12
IES (E & T)
Q.6 The expression for shaded area shown below is ;
(a) A B B C (b) ABC A BC
(c) A B C A B C (d) None of the above.
IES (E & T)
Q.7 Consider the folloing logic circuit:
What is the required input condition (A,B,C) to make the output X=1, for the above logic circuit?
(a) (1,0,1) (b) (0,0,1)
(c) (1,1,1) (d) (0,1,1)
IES (E & T)
Q.8
Which one of the following circuits is the minimised logic circuit for the circuit shown in Figure -1 ?
IES (E & T)
Q.10 The output X of the logic circuit shown in the figure is
www.digcademy.com digcademy@gmail.com
Boolean Functions & K-map DIGITAL ELECTRONICS 13
(a) A + BC (b) BC
(c) AB (d) AB + C
IES (E & T)
Q.11 The logic circuit shown in the given figure can be minimized to
IES (E & T)
Q.12
IES (E & T)
Q.13 The output X of the circuit shown in the figure will be
(a) A B (b) A B
(c) A B (d) A B
IES (E & T)
Q.14 Which one of the following is the truth table of the given logic circuit?
www.digcademy.com digcademy@gmail.com
Boolean Functions & K-map DIGITAL ELECTRONICS 14
X Y Z X Y Z
0 0 1 0 0 0
(a ) 0 1 1 b bg 0 1 1
1 0 1 1 0 1
1 1 1 1 1 1
X Y Z X Y Z
0 0 1 0 0 0
bc g 0 1 0 bd g 0 1 1
1 0 0 1 0 1
1 1 0 1 1 0
IES (E & T)
Q.15 In Fig. the LED
b gc
(c) AB AC BC A B . A C . B C hb g
www.digcademy.com digcademy@gmail.com
Boolean Functions & K-map DIGITAL ELECTRONICS 15
b gc hb g
(c) AB AC BC A B . A C . B C
c
(c) X X Y X Y h c
(d) X XY Z X Y Z XYZ h
IES (E & T)
Q.22 What is dual of A + [B (A + C)] + D
(a) A + [(B(A + C)] + D (b) A [B + AC] D
(c) A + [B(A + C)] D (d) A [ B (A + C ) ] D
IES (E & T)
Q.23 With 4 Boolean variables, how many Boolean expressions can be formed ?
(a) 16 (b) 256
(c) 1024 (1K) (d) 64 K (64 1024)
IES (E & T)
Q.24 The number of switching function of 3 variables is
(a) 8 (b) 64
(c) 128 (d) 256
IES (E & T)
Q.25 The number of Boolean functions which can be generated with four variables is
(a) 4 (b) 16
(c) 256 (d) 65,536
IES (E & T)
Q.26 The number of Boolean functions that can be generated by n variables, is equal to
n
(a) 2n (b) 2 2
(c) 2n – 1 (d) 2n
GATE (E & T)
Q.27 c h
For the product-of-sums expression L = (X+Y) X Z , the equivalent sum-of-products expression will be
www.digcademy.com digcademy@gmail.com
Boolean Functions & K-map DIGITAL ELECTRONICS 16
(a) XY X Z (b) X Y XZ
(c) XY XZ (d) XY XZ
(IAS)
Q.28 The Boolean expression for the output Y in the logic circuit is
IES (E & T)
Q.33 The minimum number of 2-input NAND gates required to implement the Booleam function Z ABC ,
assuming that A, B and C are available, is
(a) two (b) three
(c) five (d) six
GATE (E & T)
Q.34 Match List-I (Boolean function) with List-II (Minimum number of two-input NAND gates) and select the
correct answer using the codes given below the Lists:
List-I List-II
A. Y ABC ABC 1. Five
B. Y A B AB C 2. Four
www.digcademy.com digcademy@gmail.com
Boolean Functions & K-map DIGITAL ELECTRONICS 17
C. Y AB AB ABC 3. Six
Codes:
A B C
(a) 3 1 2
(b) 1 3 2
(c) 2 1 3
(d) 1 2 3
(IAS)
Q.35 A, B and C are three Boolean variables. Which one of the following Boolean expressions cannot be minimized
any further?
(a) Z A. B . C A. B. C A. B. C. A. B . C
(b) Z A. B . C A. B. C A. B. C A. B . C
(c) Z A. B . C A. B . C A. B. C. A . B. C
(d) Z A. B. C A. B. C A. B. C A. B . C
IES (E & T)
Q.36
www.digcademy.com digcademy@gmail.com
Boolean Functions & K-map DIGITAL ELECTRONICS 18
(a) C B BD CD (b) AB CB BC
(c) CB AC BC (d) CB CD CB
IES (E & T)
Q.43 The product -of sum expression for given truth table is :
X Y Z
0 0 1
0 1 0
1 0 1
1 1 0
(a) c X Y hb X Y g (b) c X Y hc X Y h
(c) c X Y hc X Y h (d) None of the above
IES (E & T)
Q.44 The term AB + AC + C B reduce to
(a) AB + CA (b) AC + BC
(c) AC + B C (d) AB + B C
(a) AB (b) AB
(c) AB (d) AB BC
IES (EE)
Q.46 A combinational circuit has input A,B and C and its Karanaugh Map is a as shown. The output of the circuit
is given by
www.digcademy.com digcademy@gmail.com
Boolean Functions & K-map DIGITAL ELECTRONICS 19
(a) c A B A B hC (b) c AB A B hC
(c) A B C (d) A B C
IES (EE)
Q.47 The Boolean expression AC BC is equivalent to
(a) AC BC AC
(b) BC AC BC ACB
(c) AC BC BC ABC
(d) ABC ABC ABC ABC
GATE (E & T)
Q.48 If the functions W,X,Y and Z are as follows
W R PQ RS
X PQR S P Q R S PQ R S
Y RS PR PQ P Q
Z R S PQ P Q R P Q S
Then
(a) W Z , X Z (b) W=Z, X=Y
(c) W = Y (d) W Y Z
GATE (E & T)
Q.49 The minimal product-of-sums function described by the K-map given in.
AB
C 00 01 11 10
0 1 1 0
1 0 0 0
www.digcademy.com digcademy@gmail.com
Boolean Functions & K-map DIGITAL ELECTRONICS 20
AB
CD 00 01 11 10
00 1 0 0 1
01 1 1 1 1
11 0 0 0 0
10 1 0 0 1
The minimized expression for the K-map shown in the above figure is
(a) A BC D ABCD A BC ABC BC D
(b) CD + ABC + ABC + ABCD + ABCD
(c) BCD + BCD + CD
(d) B D C D
(IAS)
Q.52 Consider following gate network
(a) x1 x2 x3 (b) x1 x2 x3
(c) x1 x2 x3 x1 x2 x3 x1 x2 x3 (d) x1 x2 x1 x3 x2 x3
IES (EE)
Q.54 There are four Boolean variables x1, x2, x3 and x4. The following functions are defined on sets of them:
b g b3,4,5g
f x3 , x2 , x1
g b x , x , x g b1,6,7g
4 3 2
h b x , x , x x g fg.
4 3 2 1
Then h b x , x , x , x g is
4 3 2 1
www.digcademy.com digcademy@gmail.com
Boolean Functions & K-map DIGITAL ELECTRONICS 21
(c) c A Bh . C (d) cA Bh .C
(UPPCS)
Q.56 The number of rows in the truth table for 4-input OR gate is:
(a) 16 (b) 8
(c) 4 (d) 2
(MPPCS)
Q.57 The logic circuit shown below, is equivalent to a:
(a) (A + B) (C + D) (b) A B C D
(c) b A B g bC Dg (d) b A B g b C Dg
(RAS)
Q.62 The minimum number of NAND gates required to implement the Boolean functions A + AB + ABC is equal
to:
(a) Zero (b) One
(c) Four (d) Seven
(MPPCS
Q.63 In the fig. below if x1, x2, x3, x4 and x5 signals are 1, then the output is:
www.digcademy.com digcademy@gmail.com
Boolean Functions & K-map DIGITAL ELECTRONICS 22
(a) 1 (b) 0
(c) 1 + 0 (d) either (A) or (B)
(MPPCS)
Q.64 The Karnaugh map for a four variable Boolean function is given in Fig. The correct Boolean sum of product
is
D 1 1
1 1 1
c
(a) AB AB C h (b) c AB AB h C
(c) A B C (d) A B C
GATE (INST)
Q.67 The Boolean expression
X ( P,Q,R) = ( 0,5 )
Is to be realized using only two 2 - input gates. Which are these gates?
(a) AND and OR (b) NAND and OR
(c) AND and XOR (d) OR and XOR
Q.68
The circuit shown above is to be used to implement the function Z= f (A, B) = A + B. What values are to se
selected for I and J ?
(a) I = 0, J = B (b) I = 1, J = B
www.digcademy.com digcademy@gmail.com
Boolean Functions & K-map DIGITAL ELECTRONICS 23
(c) I = B , J = 1 (d) I = B , J = 0
IES (E & T)
Q.69 The Boolean expressionY (A,B,C) = A + BC
Is to be realized using 2-input gates of only one type. What is the minimum number of gates required for the
realization?
(a) 1 (b) 2
(c) 3 (d) 4 or more
IES (E & T)
Q.70
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 0
1 1 0 1
1 1 1 0
What is the Boolean expression for the truth table shown above ?
(a) B( A C)( A C ) (b) B( A C )( A C )
(c) B ( A C )( A C ) (d) B( A C )( A C )
IES (E & T)
Q.71
Which one of the following logic operations is performed by the digital circuit shown above ?
(a) NOR (b) NAND
(c) EX - OR (d) OR
IES (E & T)
Q.72
f1
f2
f
f3= ?
Consider the logic circuit shown in the figure given above. The functions f1, f2 and f (in canonical sum of
products form in decimal notation) are:
f1 (w,x,y,z) = 8,9,10
f2 (w,x,y,z) = 7,8,12,13,14,15
f (w,x,y,z) = 8,9
Which one of the following is the function f 3?
(a) 9,10 (b) 9
(c) 1,8,9 (d) 8,10,15
www.digcademy.com digcademy@gmail.com
Boolean Functions & K-map DIGITAL ELECTRONICS 24
(IAS)
Q.73 Four logical expressions are given below:
1. A. B . C . D . E . F . G . H
2. AB. CD. EF . GH
3. A B C D E F G H
4. c A B hcC D hc E F hcG H h
Two of these expressions are equal. They are
(a) 1 and 2 (b) 3 and 4
(c) 1 and 3 (d) 2 and 4
Q.74 Min - term (Sum of Products) expression for a Boolean function is given as follows)
f ( A,B,C) = m ( 0,1,2,3,5,6)
Where A is the MSB and C is the LSB. The minimized expression for the function is
(a) A + (B C ) (b) ( A B ) C
(c) A ( B C ) (d) ABC
GATE (INST)
Q.75 The Boolen expression
F A. B. C A. B . C A. B . C A. B. C
after simplification yields the value of F as:
(a) A.B.C (b) A+B+C
(c) A+B (d) A
(UPPCS)
Q.76 Which of the following statements is not corrent?
(a) X + X Y = X (b) X ( X + Y) = X Y
(c) X + X Y = X (d) Z X + Z X Y = Z X + Z Y
IES (EE)
Q.77 AB + A C = (A + C) ( A + B).....
Which one of the following is the dual form of the Boolean identity given above ?
(a) AB + A C = AC + A B
(b) (A + B) ( A +C) = (A + C) ( A + B)
(c) (A + B) ( A + C) = AC + A B
(d) AB + A C = AB + A C + BC
IES (E & T)
Q.78
For the circuit shown above, the Boolean expression for the output Y in terms of inputs P, Q, R and S is
(a) P’ + Q’ + R’ + S’ (b) P + Q + R + S
(c) (P’ + Q’) (R’ + S’) (d) (P + Q)(R + S)
(IAS)
Q.79
www.digcademy.com digcademy@gmail.com
Boolean Functions & K-map DIGITAL ELECTRONICS 25
If the input to the digital circuit consisting of a cascde of 20 XOR gates is X, then the output Y is equal to
(a) X’ (b) X
(c) 0 (d) 1
(IAS)
Q.80 The logic circuit shown converts y1.y2 into:
www.digcademy.com digcademy@gmail.com
Boolean Functions & K-map DIGITAL ELECTRONICS 26
(a) (b)
(c) (d)
IES (E & T)
www.digcademy.com digcademy@gmail.com
Boolean Functions & K-map DIGITAL ELECTRONICS 27
C E
out
Switches in series : When switches are in series combination in electrical sense, they are said to be in AND
operation logically.
Switches in Parallel : When switches are in parallel combination in electrical sense, they are said to be in
OR operation logically.
In the given figure, B and C are in parallel so logically they result in (B + C)
Similarly D and E results in (D + E)
Now (B+C) and (D+E) are in series, so the resultant is (B+C) · (D+E).
Now this resultant (B+C) · (D+E) is in parallel to F so the resultant is F + (B + C) · (D + E)
Again this resultant {F + (B + C) · (D + E)} is in series with A
So the net logical resultant is [A ·{F (B C)·(D E)}]
Q.2 Ans. (d)
d i c
then F A. B C A . B A B . Ch
F = AB AC AB AC CB
F = c A AhB AcC Ch CB
F = B A CB A b B C gc B B h
F = A BC
Q.3 Ans. (a)
A C L
E
~ B D
(A+B) E
(C+D)
= ~
(A+B) · (C+D) · E
= ~
Q.4 Ans. (a)
www.digcademy.com digcademy@gmail.com
Boolean Functions & K-map DIGITAL ELECTRONICS 28
F = A AB (A A)(A B) A B
Figure a represents A + B
A B
A
A
AA = S
2) A. B :– The area which is common to both A and B.
A·B
A B
A B
A.B.C
A B
C
A.B.C ABC
www.digcademy.com digcademy@gmail.com
Boolean Functions & K-map DIGITAL ELECTRONICS 29
A ·B·C
A B
A ·B·C
C
A·B (X)
A B = AB AB
B C = BC BC
X = (AB AB)·(BC BC)·C
= (AB AB)·(B·C·C BCC)
= (AB AB)·(B·C 0)
www.digcademy.com digcademy@gmail.com
Boolean Functions & K-map DIGITAL ELECTRONICS 30
A
A
A·B
B
B
A
A
A·B
B
B
Y = A·B· A·B
= A ·B A·B
= A·B A·B
This expression represents an Ex-OR gate
Q.9 Ans. (c)
A
B F
F = A C A BC
= ACABC
F = A BC
= A BC
A
B F = A+ B + C
C
(A + B) · (B + C)
(B + C)
B X
B
C
X = (A B)·(B C)·B
X = [AB AC BC]B
= AB + ABC
= AB (1 + C)
X = AB
Q.11 Ans. (d)
Q.12 Ans. (a)
www.digcademy.com digcademy@gmail.com
Boolean Functions & K-map DIGITAL ELECTRONICS 31
x x
x.y.z F
y
z z
F = x x·y·z z
= x (x y z) z
= xxyzz
= xyz
x
x+y+z
y
z
Which is equivalent to
x
F
y
z
A+B
X = [A B]·[A B]
X = [AB AB] [A·B]
X = AB 0
= AB
Q.14 Ans. (a)
X
XY
Y Z
(X + Y)
Then Z = XYXY
Z = 1
The output is always 1 for all the possible combination of the inputs.
Q.15 Ans.(d)
www.digcademy.com digcademy@gmail.com
Boolean Functions & K-map DIGITAL ELECTRONICS 32
+VCC
1K 1K
1K
LED
1
3
1K
S1 S2
2
LED will emit ligth only when the output of gate 3 is zero.
Case-1 :– When S1 and S2 both are open then
+VCC
1
1
1 1
1
3
1
2
0
1
The output of gate 3 will be 1 and LED will not emit light
Case-II :– When S1 is open and S2 is close
+VCC
LED
1
0
1
1
3
1K
2
1
1
again the output of gate 3 is logic 1 so, LED will not emit light
Case-III :– When S1 is close and S2 is open.
+VCC
LED
0
0
1 1
1 1
3
1 1K
2
0
1
www.digcademy.com digcademy@gmail.com
Boolean Functions & K-map DIGITAL ELECTRONICS 33
+VCC
LED
0
0
1
0
0 1
3
0 1K
2
1
1
the LED will not emit light. Thus, we can say that for any state of the suitable the LED will not emit light.
Q.16 Ans. (c)
A
A ·B
C
C ·D Y
E
E ·F
C
Y
Y = AB + CD + EF
Q.17 Ans. (a)
The bulb is controlled by two switches A and B such that the bulb glows only when either switch A or switch
B is ON then truth table will be
A B Output
0 0 0
0 1 1
1 0 1
1 1 0
output = A B A B
Q.18 Ans. (a)
AB A C + BC = AB A C
to find out the dual of any Boolean expression we just replace AND opeation by OR and OR operation by
www.digcademy.com digcademy@gmail.com
Boolean Functions & K-map DIGITAL ELECTRONICS 34
L = ( X Z) (X XY)
= X Y ZX X Y Z
L = X Y(1 Z) ZX
= X Y ZX
Q.28 Ans. (b)
www.digcademy.com digcademy@gmail.com
Boolean Functions & K-map DIGITAL ELECTRONICS 35
A
A
B Y
A C
Y = A·(A A)·B·C
= ABC
Q.29 Ans. (c)
* Any Boolean expression which is given in the SOP form can be realized by the two level AND-OR gates
or using two-level NAND implementation.
* Any Boolean expression given in the POS form can be realized by two level OR-AND gates or NOR
implementation.
* NOR is dual of NAND gate. Consider an example
F = AB + CD (say)
A
B
F
C
D
C
D
F´ = (A B) (C D)
F´ = (A + B) · (C + D)
Now finding the dual of F
F D = (A + B) · (C + D)
So, FD F
Q.30 Ans. (a)
F = A AB ABC
F = A[1 B BC]
FA
There is no need of any NAND gate to realize A since it is given input
Q.31 Ans. (d)
A two level AND-OR gate network can be easily converted to a NAND-NAND gate network.
(a)
www.digcademy.com digcademy@gmail.com
Boolean Functions & K-map DIGITAL ELECTRONICS 36
(b)
(c)
C C ·D
F
D
www.digcademy.com digcademy@gmail.com
Boolean Functions & K-map DIGITAL ELECTRONICS 37
A A ·B
C C ·D
F
D
C
F
D
= AC·B
Z = AC B
A
C
A
1 2
C
Z
4 5
B 3
1 4 Y
5 6
B 3
A3
B) Y = (A B AB) C
= (A B A B) C
www.digcademy.com digcademy@gmail.com
Boolean Functions & K-map DIGITAL ELECTRONICS 38
Y = (A B) C
= (A B)·C
A
2
1 4
B 3
Y
C 5
B 1
C) Y = AB AB ABC
Y = AB (1 C) AB
Y = AB AB
= AB
Minimum four gates are reguired.
C2
Q.35 Ans. (c)
A) Z = A·BC ABC ABC A BC
BC
A BC BC BC BC
A 1
A 1 1 1
Z = BC AB
(It can be minimized)
B) Z = ABC ABC ABC ABC
BC
A BC BC BC BC
A 1
A 1 1 1
Z = ABC AC AB
It can also be minimized
C) Z = ABC ABC ABC ABC
BC
A BC BC BC BC
A 1 1
A 1 1
www.digcademy.com digcademy@gmail.com
Boolean Functions & K-map DIGITAL ELECTRONICS 39
AB A B AB AB AB
CD 00 01 11 10
CD 00 0 0 1 1
CD 01 0 X X 1
CD 11 X X 1 X
CD 10 1 0 1 1
X = A CB
Q.37 Ans. (a)
x x
yz 0 1 z
00 1 1
01 1
11 1 1 y
10 1 1
x
K map gives the expression
xyz
Now the expression given in alternative (a)
x y z yz
= x y (z z)(z y)
= xyzy
= (x y) (y y) z
= xyz
Hence alternative (a) is correct
Q.38 Ans. (c)
A K-Map is used to simplify the expressions thus it minimizes the number of gates of a digital circuit. The fan-
in of a gate is the number of inputs connected to the gate without any degradation in the voltage levels.
thus K Map minimizes the number of gates and fan-in of a digital circuit.
Q.39 Ans. (d)
y = f (A, B)
= M (0, 1, 2, 3)
A
B 0 1
0 0 0
y=0
1 0 0
www.digcademy.com digcademy@gmail.com
Boolean Functions & K-map DIGITAL ELECTRONICS 40
xyz
vw 000 001 011 010 110 111 101 100
00 0 1 0 0 1 1 1 1
01 0 1 0 0 1 1 1 1
11 0 1 0 0 1 1 1 1
10 0 1 0 0 1 1 1 1
00 1 1
01 1 X
11 1 1 X X
10 1 X X
F = BC BC CD
Q.43 Ans. (b)
X Y Z
0 0 1
0 1 0
1 0 1
1 1 0
Now draw the 2-variable K-map in POS form
Y Y Y
X 0 1
X 0 1 0
X 1 1 0
* We do not have to minimize it. We have to write the function in the POS form
then F = (X Y) (X Y)
Q.44 Ans. (c)
F = AB AC CB
BC
A 00 01 11 10
0 0 0 0 1
1 0 1 1 1
F = AC BC
www.digcademy.com digcademy@gmail.com
Boolean Functions & K-map DIGITAL ELECTRONICS 41
F = A B C A(B C)
F = A B C{A B·C}
F = AB AC [A BC]
F = AB
Q.46 Ans. (d)
BC
C 00 01 11 10
0 1 1
1 1 1
F = AC(B B) BC(A A)
F = ABC ABC ABC ABC
Q.48 Ans. (a)
W = R PQ RS , draw K-map
RS
00 01 11 10
PQ
00 0 1 1 1
01 1 1 1 1
11 0 1 1 1
10 0 1 1 1
Fig. (a)
X = PQ RS PQ RS PQRS ,
draw K-map
www.digcademy.com digcademy@gmail.com
Boolean Functions & K-map DIGITAL ELECTRONICS 42
RS
00 01 11 10
PQ
00 1 1 0 0
01 0 1 0 0
11 1 1 0 0
10 1 1 0 0
Fig. (b)
Y = RS PR PQ PQ
Y = RS PR Q (P P)
Y = RS PR Q
Y = RS PR ·Q
Y = RS (P R) Q
RS
00 01 11 10
PQ
00 0 0 1 0
01 1 1 1 1
11 1 1 1 0
10 0 0 1 0
Fig. (c)
Z = R S PQ PQR PQS
Z = R S PQ·(PQR)·(PQS)
Z = R S (P Q) (P Q R) (P Q S)
Z = R S (P Q R) (P QS)
Z = R S P Q , draw K-map
RS
00 01 11 10
PQ
00 0 1 1 1
01 1 1 1 1
11 1 1 1 1
10 0 1 1 1
Fig. (d)
www.digcademy.com digcademy@gmail.com
Boolean Functions & K-map DIGITAL ELECTRONICS 43
C 0 1 1 0
C 1 0 0 0
We have to find out the minimized Boolean expression in POS form. So, we will combine the zero.
F = (C)·(A)
= C·A
Q.50 Ans. (d)
(1)
CD
00 01 11 10
AB
00 0 1 0 1
01 1 0 1 0
11 0 1 0 1
10 1 0 1 0
This is equivalent to Y A B C D
(2)
CD
00 01 11 10
AB
00 0 0 1 0
01 0 1 1 0
11 1 1 0 1
10 0 0 1 1
00 0 1 0 1
01 1 0 1 0
11 0 1 0 1
10 1 0 1 0
www.digcademy.com digcademy@gmail.com
Boolean Functions & K-map DIGITAL ELECTRONICS 44
AB
CD 00 01 11 10
00 1 0 0 1
01 1 1 1 1
11 0 0 0 0
10 1 0 0 1
X = C D BD
Q.52 Ans. (b)
W
W 1
WX output
2 4
X
5
Y 3
Z XYZ
Output = W WX XYZ
Output = W(1 X) XYZ
= W XYZ
So, we can say that gate number 2 is redundant.
Q.53 Ans. (c)
x1 x2
00 01 11 10
x3 x4
00 1 d d
01 1 d 1
11 d 1
10 1 d d
f = x 2 x 4 x 2 x 4 x1 x 3
Q.54 Ans. (b)
f (X3, X2, X1) = (3, 4,5)
x2 x1
x3 00 01 11 10
0 0 0 1 0
1 1 1 0 0
F = X 3 ·X 2 X 3 X 2 ·X1
www.digcademy.com digcademy@gmail.com
Boolean Functions & K-map DIGITAL ELECTRONICS 45
x3 x2
x4 00 01 11 10
0 0 1 0 0
1 0 0 1 1
g = x 4 ·x 3 x 4 x 3 ·x 2
f · g = X 3 ·X 2 X 3 X 2 ·X1 )
X 3 ·X 2 X 3 X 2 ·X1 )
f · g = (X 4 X 3 X 2 X 4 X 3 X 2 X1 )
h(X4, X3, X2, X1) = f · g
x 2 x1
x4 x3 00 01 11 10
00 0 0 1 0
01 0 0 0 0
11 1 1 0 0
10 0 0 0 0
= (A B)·(A B A C C B CC)
= (A B)·(A B A C C B C)
[CC C]
= (A B)·{(AB (A B 1)C}
[ 1 A B 1]
= (A B)·{AB C}
= (A B)·(A·B) (A B)C
= A·(AB) B(A·B) (A B)C
= 0 0 (A B) C
= (A B) C
Q.56 Ans. (a)
The Truth table of 4 input OR gate will be as follows
www.digcademy.com digcademy@gmail.com
Boolean Functions & K-map DIGITAL ELECTRONICS 46
A B C D Y
0 0 0 0 0
0 0 0 1 1
0 0 1 0 1
0 0 1 1 1
0 1 0 0 1
0 1 0 1 1
0 1 1 0 1
0 1 1 1 1
1 0 0 0 1
1 0 0 1 1
1 0 1 0 1
1 0 1 1 1
1 1 0 0 1
1 1 0 1 1
1 1 1 0 1
1 1 1 1 1
B
B
Y = A·B
= AB
= A+B
Thus the logic circuit shown behaves as OR gate
Note :–
Bubbled NAND = OR
www.digcademy.com digcademy@gmail.com
Boolean Functions & K-map DIGITAL ELECTRONICS 47
= A + AB + B
= A [1 + B] + B
= A+B
AA A
BB B
AB BA AB
Q.60 Ans. (b)
A
A
B
B
Y = A·B
= AB
= A+B
Q.61 Ans. (b)
A (A + B)
OR
B
NAND Z
A (C + D)
OR
B
Z = (A B)·(C D)
= (A B) (C D)
= A·B C·D
HINT :– [By using Demorgan’s theorem]
Q.62 Ans. (a)
Y = A + AB + ABC
= A [1 + B + B · C]
= A
Y = A
There is no need of any NAND gate to implement A since it is already available input.
Q.63 Ans. (a)
The output of an X-OR gate is 1 only when inputs are not all same.
If all inputs of an X-OR gate are same its output is 0.
XOR
x1 P1
1 XOR
x2
P2
2 XOR
x3
P3
3
XOR
x4
P4
4
x5
www.digcademy.com digcademy@gmail.com
Boolean Functions & K-map DIGITAL ELECTRONICS 48
P1 = 0
Now for XOR gate (2)
P 1 = 0,
x3 = 1
P2 = 1
Now for XOR gate (3)
P 2 = 1,
x4 = 1
P3 = 0
Now for XOR gate (4)
P 3 = 0,
x5 = 1
y =1
Q.64 Ans. (b)
PQ
RS 00 01 11 10
00 0 0 0 01
01 1 0 0 1
11 1 0 0 1
10 0 1 0 0
Y = QS P Q RS
Q.65 Ans. (b)
Q.66 Ans. (c)
AB
C 00 01 11 10
0 1 1
1 1 1
0 0
1 0
Y = (P Q R) (P Q R)
= PP PQ PR QP QQ QR RP RQ RR
= Q(P P) Q PR QR RP RQ
www.digcademy.com digcademy@gmail.com
Boolean Functions & K-map DIGITAL ELECTRONICS 49
= Q P P RR PR PR
= Q PR PR
= Q P R
Hence we need OR gate and XOR gate
Q.68 Ans. (b)
Q.69 Ans. (d)
Q.70 Ans. (a)
AB
C 00 01 11 10
0 0 0 1 0
1 0 1 0 0
Y = (A C) (C A)B
Q.71 Ans. (d)
A
A A
A
Y
A
B
AB
Y = A AB
= (A A)(A B)
= A+B
Q.72 Ans. (b)
Q.73 Ans. (d)
= A B B
= A
Q.76 Ans. (a)
a) X XY = X YX X
= X+Y
Hence (a) is not correct
www.digcademy.com digcademy@gmail.com
Boolean Functions & K-map DIGITAL ELECTRONICS 50
b) X XY = XX XY
= XY
(b) is correct
c) X XY = X 1 Y
= X
(c) is correct
d) ZX ZXY = Z X XY
= Z X X X Y
= Z [X + Y]
= ZX + ZY
(d) is correct
Q.77 Ans. (c)
To find out the dual of any Boolean expression we just replace AND opeation by OR and OR operation by
AND operation
A B A C = (A C)·(A B)
then we have to find out its dual
(A B) (A C) = A·C A·B
Q.78 Ans. (b)
P
P
(P · Q)
Q (P · Q) = P · Q
Q
Y
R
R (R · S)
(R · S) = R · S
S
S
www.digcademy.com digcademy@gmail.com
Boolean Functions & K-map DIGITAL ELECTRONICS 51
y2 y2 y1
x2
y1 y2
y1 x1
clearly x 1 = y1
x2 = y1 y 2
This circuit shows a binary to Gray code conversion
Point : Binary to Gray code conversion
1. MSB of Gray code is the same as MSB of binary number
2. The second bit of Gray code equals the exclusive-OR of the first (MSB) and second bits of the binary
number
3. The third Gray code bit equals the exclusive-OR of the second and third bits of the binary number and so
on.
Q.81 Ans. (d)
www.digcademy.com digcademy@gmail.com
Boolean Functions & K-map DIGITAL ELECTRONICS 52
www.digcademy.com digcademy@gmail.com