practice question_Unit 3
practice question_Unit 3
(10.25)10
Steps:
(i) To convert from decimal to binary, start dividing decimal number by 2, and whatever
the reminder getting, writing down from bottom to top, and that will be the binary
number representation of the decimal number
(ii) . The number contains fractional part, then multiply 2 in the fractional part.
Note- Keep multiplying the fractional part with 2 until decimal part 0.00 is obtained.
(0.25)10 = (0.01)2
Answer: (10.25)10 = (1010.01)2
(1010.01)2
Steps:
(i) To convert from binary to decimal, start multiplying the exponent of 2 with each
digit of the number in decreasing order.
(ii) If the number contains fractional part then will divide it by the exponent of 2.
= 8+0+2+0+0+0.25
= 10.25
Ans. (1010.01)2 = (10.25)10
3. Decimal to Octal Number System
Steps:
(i) To convert from decimal to octal, start dividing decimal number by 8, and whatever
the reminder getting, writing down from bottom to top, and that will be the octal
number representation of the decimal number.
(ii) The number contains fractional part, then multiply 8 in the fractional part.
(10.25)10
= (10)10 = (12)8
Fractional part:
= 0.25 x 8 = 2.00
Note: Keep multiplying the fractional part with 8 until decimal part .00 is obtained.
(.25)10 = (.2)8
Steps:
(i) To convert from octal to decimal, start multiplying the exponent of 8 with each digit of
the number in decreasing order.
(ii) If the number contains fractional part then will divide it by the exponent of 8.
(12.2)8
= 1 x 81 + 2 x 80 +2 x 8-1
= 8+2+0.25
= 10.25
(12.2)8 = (10.25)10
To convert from Hexadecimal to Binary, write the 4-bit binary equivalent of hexadecimal.
1. (3A)16
Binary of 3= 0011
Binary of A=1010
Ans. (3A)16= (00111010)2
1111011011
0011 1101 1011
(001111011011 )2 = (3DB)16
111101101
111 101 101
(111101101)2 = (755)8
Code Conversion
1.In the BCD numbering system, the given decimal number is segregated into chunks of
four bits for each decimal digit within the number.
2. Each decimal digit is converted into its direct binary form (usually represented in 4-
bits).
1. To convert a decimal number into excess-3, we write down the equivalent excess-3
codes for each decimal digit separately. To get the excess-3 codes for each digit,
2. We add 3 to each decimal digit individually, the maximum sum that can occur this way
is 9 +3 = 12.
3. We then write down the binary values in 4-bits for each obtained digit.
4. Alternatively, we can add 0011 to the BCD codes for each decimal digit directly.
(67.43)10 in excess-3 is given as: –
67.43 + 33.33 = (9) (10) . (7) (3) (Add 3 individually to each digit)
= (1001 1010. 0111 0011) (Each digit’s corresponding binary value is written)
The gray code for a number can be obtained from its binary number using the following steps: –
2. The first digit (MSB) of binary is copied as the first digit of gray code.
3. The next bits can be obtained by performing XOR operations between the neighbouring
binary digits going from MSB to LSB.
4. This is done till we perform XOR operation between the two last binary digits.
Note-All the arrows shown in red denote XOR operation in the right direction between
binary digits.
(1011) in gray code is written as: –
The next gray digit is (1 XOR 0) as 1 is the MSB of binary and 0 is its right
neighbouring bit. Thus,
1 XOR 0 = 1
The binary code can be obtained from gray code by using XOR operations in the reverse direction.
The steps to follow for converting a gray number into binary are: –
Write the MSB of gray code as the MSB of the binary number directly.
The next digits of the binary number are obtained by performing XOR operations with the
obtained binary digit and the next gray digit right to the MSB.
The process is repeated to its right till the last gray digit is XORed with
Then we XOR this obtained binary digit with the next gray digit.
(1 XOR1) = 0
Representation of Boolean expression can be primarily done in two ways. They are as follows:
If the number of input variables are n, then the total number of combinations in Boolean algebra is
2n.
X (SOP) = Σ m(1, 3, 6)
= A’.B’.C + A’.B.C + A.B.C’
The term A̅B is missing input C. So we will multiply A̅B with (C+C̅) because (C+C̅ = 1). The term B̅C is
missing input A. so it will be multiplied with (A+A̅)
Standard SOP expression can be converted into standard POS (product of sum) expression. For
example, the function given above is in canonical SOP form
A B C y
0 0 0 0
0 0 1 1
0 1 0 1
0 1 1 1
1 0 0 0
1 0 1 1
1 1 0 0
1 1 1 0
The remaining terms of this function are maxterms for which output is false. These max terms are
M0,M4,M6,M7. These Max terms will be used in POS expression as the product of these max terms.
The Symbol of Product is ∏.
F = (A+B+C)(A̅+B+C)(A̅+B̅+C)(A̅+B̅+C̅)
X (POS) = Π M(0, 2, 4, 5, 7)
= (A+B+C).(A+B'+C).(A'+B+C).(A'+B+C').(A'+B'+C')
F = (A̅+B̅) (B+C)
(A̅+B̅) term is missing C input so we will add (CC̅) with it. (B+C) term is missing A input so we will
add (AA̅) with it.
F = (A̅+B̅+CC̅) (B+C+AA̅)
F = (A̅+B̅+C)(A̅+B̅+C̅)(A+B+C)(A̅+B+C)
F = (A+B+C)(A̅+B+C)(A̅+B̅+C)(A̅+B̅+C̅)
In canonical form each sum term is a max term so it can also be written as:
F = ∏(M0,M4,M6,M7)
The remaining combinations of inputs are minterms of the function for which its output is true. To
convert it into SOP expression first we will change the symbol to summation (∑) and use the
remaining minterm.
F = ∑ (m1,m2,m3,m5)
Now we will expand the summation sign to form canonical SOP expression.
F = A̅B̅C + A̅BC̅ + A̅BC + AB̅C
Min terms are complement of Max terms for the same combination of inputs
K-map of 3 variables
A B C y
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 1
1 0 0 0
1 0 1 0
1 1 0 1
1 1 1 1
From red group we get product term— A’C
Ans.
A B C D Y
0 0 0 0 1
0 0 0 1 0
0 0 1 0 1
0 0 1 1 0
0 1 0 0 0
0 1 0 1 1
0 1 1 0 0
0 1 1 1 1
1 0 0 0 1
1 0 0 1 0
1 0 1 0 1
1 0 1 1 0
1 1 0 0 0
1 1 0 1 1
1 1 1 0 0
1 1 1 1 1
If we sum these product terms, then we will get this final expression (BD + B’D’)
POS FORM
3 variables K-map
F (A, B, C) = π(0,3,6,7)
Solution:
A B C y
0 0 0 0
0 0 1 1
0 1 0 1
0 1 1 0
1 0 0 1
1 0 1 1
1 1 0 0
1 1 1 0
If we take the product of these three terms, then we will get this final expression –
4 variables K-map
Ans.
A B C D Y
0 0 0 0 1
0 0 0 1 1
0 0 1 0 1
0 0 1 1 0
0 1 0 0 1
0 1 0 1 0
0 1 1 0 1
0 1 1 1 0
1 0 0 0 0
1 0 0 1 1
1 0 1 0 0
1 0 1 1 0
1 1 0 0 0
1 1 0 1 0
1 1 1 0 1
1 1 1 1 1
From the blue group, the terms would be R’ S Q
Finally, we will express these in the form of the product – (R + S’+ Q’).(R’ + S’+A).(P’+ R + S).(P’+ Q +
R’)
1. Minimize the following function in SOP minimal form using K-Maps: f = m(1, 5, 6, 11, 12,
13, 14) + d(4) and implement using Universal gate like NAND gate.
Solution:
Solution:
The SOP K-map for the given expression is: f = AC'D' + A'D + A'C + AB
3. Minimize the following function in POS minimal form using K-Maps: f=M(2,3,6,7,8,9,12,13)
and implement using Universal gate like NOR gate.
Solution:
4. Simplify the boolean function Y(A, B, C, D) = Π M (2, 3, 8, 9, 11, 13, 15) and implement
using universal NOR gate.
MCQ questions
A) 11000
B) 11001
C) 10101
D) 10011
Answer: C) 10101
A) 24
B) 26
C) 18
D) 20
Answer: B) 26
A) 59
B) 63
C) 56
D) 55
Answer: A) 59
A) 16
B) 15
C) 17
D) 14
Answer: C) 17
A) E
B) D
C) F
D) B
Answer: C) F
A) 01111111
B) 11111110
C) 11111000
D) 10011111
Answer: A) 01111111
A) 1101011
B) 1010111
C) 1011111
D) 1111111
Answer: D) 1111111
A) 31
B) 25
C) 19
D) 23
Answer: C) 19
9. Which of these is the binary equivalent of hexadecimal C?
A) 1010
B) 1100
C) 1001
D) 1110
Answer: B) 1100
A) 59
B) 60
C) 58
D) 61
Answer: A) 59
A) 101100
B) 110100
C) 110011
D) 111000
Answer: B) 110100
A) AE
B) AC
C) BE
D) CE
Answer: A) AE
A) 11001111
B) 11111111
C) 10111111
D) 10011111
Answer: B) 11111111
A) 0010 0101
B) 1010 0101
C) 0001 1001
D) 0100 1010
Answer: A) 1011
A) 1011
B) 1001
C) 1111
D) 1100
Answer: B) 1001
A) 1111
B) 1001
C) 1011
D) 1100
Answer: C) 1011
A) 1001 0100
B) 1010 0011
C) 1001 0011
D) 1111 0011
A) 0101
B) 1000
C) 0110
D) 1010
Answer: C) 1000
A) 1011
B) 1000
C) 1110
D) 1010
Answer: B) 1000
A) 9
B) 11
C) 7
D) 3
Answer: B) 11
A) AB
B) A+BA
C) A
D) B
Answer: C) A
23. Which logic gate produces an output of 1 only if all inputs are 1?
A) AND
B) OR
C) XOR
D) NOR
Answer: A) AND
A) 2
B) 3
C) 4
D) 1
Answer: B) 3
26. The logic gate represented by the Boolean expression A⋅B‾\overline{A \cdot B}A⋅B is:
A) NOR
B) NAND
C) XOR
D) AND
Answer: B) NAND
A) AND
B) OR
C) NAND
D) XOR
Answer: C) NAND
A) CMOS is faster
B) CMOS has lower power consumption
C) CMOS gates are smaller
D) CMOS is easier to fabricate
a) 8
b) 18
c) 16
d) 12
Answer – (c) 16
34. The don’t care condition could be used in order to simplify the Boolean expressions in the
___________.
a) Latches
b) K-maps
c) Terms
d) Registers
35. Logic gates can be widely used in the _______________ design and are therefore available in
the IC form.
a) Digital
b) Sampling
c) Systems
d) Analog
36. Every product term of the group, a’.b.c’ and a.c, represents the ____________ in that particular
group:
a) Sum of Maxterms
b) Sum of Minterms
c) POS
d) Input
37. Consider the Boolean function F(A,B,C) represented by the following Karnaugh Map:
Ans. b) B′C+AC
41. Which of the following Boolean functions represents the 3-variable K-map below?
Ans. a) B⊕C
42. What is the minimized Boolean expression for the 3-variable K-map where all cells are 1 except
the cell at (A=1,B=1,C=0)?
a) 1+A⋅B⋅C’
b) A⋅B’+C’
c) 1+A’⋅B’⋅C
d) A+B+C
Answer: d) A+B+C
a) B′⋅A
b) A+B′
c) B′⋅C
d) B′
Answer: d) B′
44. What is the minimized expression for a K-map with 1s at cells corresponding to A ′B ′C?, AB ′C ′,
and ABC?
a) A+C
b) AB′C′+A′C
c) AC+AB′
d) AB+BC+AC
Answer: b) AB′C′+A′C
45. What is the minimized Boolean expression for a 3-variable K-map with 1s in all corners?
a) A′B′+AB
b) B′C′+BC
c) A′C+AC
d) C⊕B
Answer: b) B′C′+BC
46. Which of the following represents a valid grouping for simplification in a 3-variable K-map?
a) 3 cells
b) 5 cells
c) 8 cells
d) 7 cells
Answer: c) 8 cells