Logic Circuit Design
Logic Circuit Design
A. 178543
B. 172101
C. 171661
D. 171541
A. 201
B. 202₁₀
C. 203₁₀
D. 204₁₀
3) The excess-3 code of decimal 7 is:
A. 1001
B. 1100
C. 1011
D. 1010
A. +37
B. -31
C. +27
D. -27
5) (E7F6)₁₆ = ( )₁₀
A. 59382
B. 60000
C. 9362
D. 382
6) (1100110)₂ = ( )₈
A. 242
B. 446
C. 146
D. 58
A. msb always 1
B. msb 0 stands for the positive numbers
C. msb 0 stands for the negative numbers
D. msb 1 stand for the positive numbers
9) Which of the following is the smallest 4-bit negative number stored in its 2's complement
representation?
A. 1000
B. 0000
C. 1111
D. 0111
10) The 1's complement of the binary number (101100)2 is:
A. (001100)2
B. (010011)2
C. (101101)2
D. (110011)2
11) The code used to reduce the error due to ambiguity in reading of a binary optical encoder is
A. Octal code
B. Excess-3 code
C. Gray code
D. BCD code
12) Which of the following is the Excess-3 code form of decimal (215)?
14) A 7-bit message has even parity. Which of the following messages contains an error?
A. 1010110
B. 1101001
C. 0110100
D. 1111110
A. 11101110
B. 11110010
C. 10010010
D. 11010010
16)What is the result of rounding the floating-point number 3.14159 to 4 decimal places?
A. 3.1416
B. 3.1415
C. 3.1414
D. 3.1413
17) How many parity bits are required to detect and correct 1-bit errors in an 8-bit data word
using Hamming Code?
A. 3
B. 4
C. 5
D. 6
18) A 7-bit data word needs odd parity. What parity bit should be added to 1011001?
A. 1
B. 0
C. 10
D. None of the above
19)The binary equivalent of (3A7)₁₆ is:
A. 111010011
B. 101101111
C. 111010111
D. 110101111
A. 32
B. 64
C. 96
D. 128
A. NOT
B. NAND,
C. Ex-Nor
D. AND.
22. A.A’____?
A. 0
B. 1
C. A
D. A
23.if A and Bare the Boolean variables, then what is (A+B)(A+B bar)?
A. B,
B. A
C. A-B
D. AB
24.Which law indicates AB + BC + A’C = AB + A’C.
A. Associative law
B. Redundant law
C. Commutative law
D. Absorption law
25.What is the duality of x.0 =0?
A. X.1=1
B. X+1=1
C. X.X=X
D. X.0=0
26. What is the Canonical Sum of Products (SOP) form?
A. 4
B. 8
C. 16
D. 32
28. In Karnaugh Map (K-map), adjacent cells differ by how many bits?
A. 1 bit
B. 2 bits
C. 3 bits
D. None of the above
29. What is the default data type of signals in Verilog
A. wire
B. reg
C. bit
D. integer
30.Which Verilog gate implementation is correct for a NAND gate
A. assign Y = A & B;
B. assign Y = ~(A & B);
C. assign Y = A | B;
D. assign Y = ~(A | B);
31. In Verilog, which of the following is used to define an OR gate?
A. assign Y = A & B;
B. assign Y = A | B;
C. assign Y = ~(A & B);
D. assign Y = ~(A | B);
32. What is the Product of Sums (POS) representation in Boolean Algebra?
A. assign Y = A ^ B;
B. assign Y = A & B;
C. assign Y = A | B;
D. assign Y = ~(A & B);
35.Which logic gate is represented by the Boolean equation (A + B)’?
A. AND
B. NAND
C. NOR
D. XNOR
36. How many fundamental logic gates are there?
A. 2
B. 3
C. 4
D. 5
37.The Boolean equation A + AB simplifies to:
A. A
B. B
C. AB
D. A + B
38.Which of the following terms can be minimized in a K-map by combining adjacent 1s?
A. Minterms
B. Maxterms
C. Both
D. None
39. How many NAND gates are required to implement an XOR gate?
A. 2
B. 3
C. 4
D. 5
40. How many outputs will be generated in a D/A converter having four inputs?
A. sixteen
B. fifteen
C. twenty
D. none of these
41. What is the primary function of a comparator in a combinatorial logic circuit?
42. In a 4-to-1 multiplexer, how many select lines are required?
D) 1
43. Which of the following is a characteristic of a demultiplexer?
A. It takes multiple inputs and produces a single output
B. It routes a single input to one of many outputs
C. It performs arithmetic operations on binary inputs
D. It converts analog signals to digital
44. Which logic gate is used in the construction of a full adder?
A. AND
B. OR
C. XOR
D. D) All of the above
45. In which situation would you use a BCD (Binary Coded Decimal) adder?
A. Adding two binary numbers
B. Adding two decimal numbers and outputting the result in binary form
C. Adding two decimal numbers and outputting the result in decimal form
D. None of the above
46. Which of the following is true for a half adder?
A. It can add two 3-bit numbers
B. It produces a sum and carry output
C. It only produces a sum output
D. It is used for subtraction
47. Which of the following is the main function of an encoder in combinational logic?
A. Convert a binary number to a decimal number
B. Convert a decimal number to a binary number
C. Convert multiple inputs to a binary code representing the active input
D. Convert an input binary number to a Gray code
48. What is the primary role of a decoder in a digital system?
A. 4
49. Which of the following circuits can be used to add multiple bits in parallel?
A. Full Adder
B. Serial Adder
C. Parallel Adder
D. Half Adder
50. In a 4-bit comparator, what is the output when the two inputs are equal?
A. 1
B. 0
C. High
D. Low
51. Which gate is required to create a NAND gate from basic gates?
A. OR and NOT gates
B. AND and NOT gates
C. XOR and NOT gates
D. NOR and NOT gates
52. In a 2-to-4 line decoder, what is the maximum number of output lines that can be HIGH
simultaneously?
A. 1
B. 2
C. 3
D. 4
53. What is the output of a 1-bit full adder when the inputs are A=1, B=1, and Carry-in=1?\
A. Sum = 0, Carry-out = 1
B. Sum = 1, Carry-out = 1
C. Sum = 0, Carry-out = 0
D. Sum = 1, Carry-out = 0
54. Which of the following is the primary role of an AND gate?
A. Produces an output of 1 only if all inputs are 1
B. Produces an output of 0 only if one input is 1
C. Produces an output of 0 only if all inputs are 0
D. Inverts the input signal
55. Which of the following components is needed to create a binary-to-decimal encoder?
A. Decoder
B. Multiplexer
C. Comparator
D. Priority encoder
56. Which logic gate combination will produce the same result as a NAND gate?
A. AND + NOT
B. OR + NOT
C. XOR + NOT
D. NOR + NOT
57. Which of the following gates can be used to build a half adder circuit?
A. AND gate and OR gate
B. XOR gate and AND gate
C. NAND gate and NOR gate
D. Only OR gate
58. Which of the following is NOT a combinational logic system?
A. Multiplexer
B. Full adder
C. Flip-flop
D. Decoder
59. What is the main difference between a half adder and a full adder?
A. A full adder adds two bits, while a half adder adds three bits.
B. A half adder only produces a sum, while a full adder also produces a carry-out.
C. A full adder can handle carry-in bits, while a half adder cannot.
D. There is no difference between a half adder and a full adder.
60. What is the output of a 2-input XOR gate when both inputs are the same?
A. 0
B. 1
C. High
D. Low
61. In a shift register with parallel load, what operation can be performed?
62. A Ring Counter with N flip-flops will have how many states?
A) N
B) 2^N
C) N/2
D) 2N
A) N
B) 2N
C) 2^N
D) N/2
64. Which type of counter changes state in response to a clock signal applied to all flip-flops
simultaneously?
A) Asynchronous Counter
B) Synchronous Counter
C) Ripple Counter
D) Mod-N Counter
A) 2
B) 8
C) 10
D) 16
A) 2
B) 4
C) 8
D) 16
68. What is the key difference between a Johnson Counter and a Ring Counter?
69. In a PISO (Parallel-In, Serial-Out) shift register, how is data shifted out?
A) One bit per clock cycle
B) All bits at once
C) Data is not shifted out
D) It depends on the mode selection
70. Which of the following flip-flops can be converted into any other type of flip-flop?
A) D Flip-Flop
B) JK Flip-Flop
C) SR Flip-Flop
D) T Flip-Flop
A) S = 0, R = 0
B) S = 1, R = 0
C) S = 0, R = 1
D) S = 1, R = 1
72. In a JK flip-flop, when both J and K inputs are 1, what happens on the next clock edge?
74. Which type of flip-flop responds only to the clock's rising or falling edge?
A) Synchronous Flip-Flop
B) Master-Slave Flip-Flop
C) Level-Triggered Flip-Flop
D) Edge-Triggered Flip-Flop
A) Q(next) = Q + D
B) Q(next) = D
C) Q(next) = JQ’ + K’Q
D) Q(next) = S + RQ
76. How many flip-flops are needed to construct a Mod-8 ripple counter?
A) 2
B) 3
C) 4
D) 8
77. What is the main difference between a Synchronous and Ripple Counter?
78. A 4-bit Johnson Counter will have how many unique states?
A) 4
B) 8
C) 16
D) 10
79. Which shift register shifts data only in one direction, either left or right?
A) SISO (Serial-In, Serial-Out)
B) PIPO (Parallel-In, Parallel-Out)
C) PISO (Parallel-In, Serial-Out)
D) Bidirectional Shift Register
80. Which shift register takes parallel input and provides parallel output?
A) SISO
B) PIPO
C) PISO
D) SIPO
A. (a)ECL
B. (b)TTL
C. (c)CMOS
D. (d)PMOS
82.The full form of the abbreviations of TTL and CMOS in reference to logic families are
A. 0.2V
B. 0.4V
C. 0.8V
D. 0.6V
A. (a)TTL
B. (b)CMOS
C. (c)ECL
D. (d)Schottky TTL
A. 0 to 0.8V
B. (b) 0 to 1.5V
C. 2 to 5V
D. 3.5 to 5
particular transistor?
A. (a)fan-out
B. (b)fan-in
C. (c)propagation delay
D. (d)power dissipation
91.Which of the following majorly determines the number of emitters in a TTL digital
circuit?
A. (a)fan-in
B. (b)fan-out
C. (c)propagation delay
D. (d)noise immunity
92.How must the output of a gate in a TTL digital circuit acts when it is HIGH?
95.How does the transition time of a logic gate impact its performance?
behaviour?
97.What is the primary role of a pull-up resistor in a TTL logic gate circuit?
A. high
B. low
C. undefined
D. oscillating
A. voltage levels
B. current levels
C. transistor switching
D. logic level inversion
102.What characteristic will a TTL digital circuit posses due to its multi-emitter transistor?
A. (a)low capacitance
B. (b)high capacitance
C. (c)low inductance
D. (d)high inductance
103.How must the output of a gate act when it is LOW in a TTL circuit?
A. (a)TTL
B. (b)RTL
C. (c)ECL
D. (d)IIC
105.What will a TTL circuit possess due to the presence of multi-emitter transistor?
A. (a)smaller resistance
B. (b)larger area
C. (c)smaller area
D. (d)larger resistance
A. (a)JFET only
B. (b)BJT
C. (c)Resistors
D. (d)BJT and resistors
2. b
3. (d)
4. (d)
5. (a)
6. (c)
7. (b)
8. (b)
9. (a)
10.(b)
11.(c)
12.(a)
13.(a)
14.(b)
15.(a)
16.(a)
17.(b)
18.(b)
19.(c)
20.(d)
21.B
22.A
23.B
24.B
25.B
26.D
27.B
28.A
29.A
30.B
31.B
32.A
33.A
34.A
35.C
36.B
37.A
38.A
39.D
40.A
41.B
42.A
43.B
44.D
45.C
46.B
47.C
48.B
49.C
50.A
51.B
52.A
53.A
54.A
55.D
56.A
57.B
58.C
59.C
60. A
61.D
62.A
63.B
64.B
65.C
66.B
67.B
68.B
69.A
70.B
71.D
72.B
73.B
74.D
75.B
76.B
77.A
78.B
79.A
80.B
81.H
82.(A)
83.(C)
84.(B)
85.(D)
86.(B)
87.(A)
88.(D)
89.(B)
90.(A)
91.(D)
92.(A)
93.(C)
94.(C)
95.(B)
96.(C)
97.(B)
98.(B)
99.(B)
100 (B)
101 (B)
102 (A)
103 (D)
104 (C
105 (C)
106 (D)
107 (A)
108 (A)
109 (B)
110 (A)
\
Solutions
F = 1111
3 = 0011
B = 1011
1 = 0001
001 → 1
111 → 7
001 →
1 110 →
110 → 6
001 → 1
(312)₈ = 3 × 8² + 1 × 8¹ + 2 × 8⁰
= 192 + 8 + 2 = (202)₁₀
3) Decimal digit = 7
7 + 3 = 10
10 ÷ 2 = 5 remainder 0
5÷2=2
remainder 1 2 ÷ 2
= 1 remainder 0
1 ÷ 2 = 0 remainder 1
0011011
5) E = 14
F = 15
7) (1011.101) ₂ = (1x2³)+(0x2²)+(1x2¹)+(1x2⁰)+(1x2-¹)+(1x-²)+(1x2-³)
=8+0+2+1+0.5+0+0.125
=11.625
1010110 → 4 ones
1101001 → 3 ones (Error)
0110100 → 2 ones
1111110 → 6 ones
Since 9 is greater than 5, round up the last digit in the four-decimal sequence
(5) by 1.
Thus, 3.1415 becomes 3.1416 after rounding.
17) For n data bits, number of parity bits (p) is given by:
20) No
42) 2. A) 2
A 4-to-1 multiplexer selects one of four data inputs based on the values of
many outputs based on control or selection lines. It's essentially the reverse
operation of a multiplexer.
A full adder can be constructed using AND, OR, and XOR gates. The sum
output is derived from the XOR gates, while the carry output is derived
decimal form
binary form (BCD format) and output the result in BCD. It handles carry-
A half adder adds two single-bit binary numbers and produces a sum and
carry output. It does not handle carry-in values, which is why a full adder
input
inputs and 2 outputs, where the output is a binary code indicating which
input is active.
48) B) To convert a binary input into a set of outputs based on the input
code
A decoder takes a binary input and activates one specific output line
A parallel adder adds two binary numbers bit by bit in parallel, whereas a
50) 10. a) 1
of an AND gate.
52) 12. a) 1
A 2-to-4 decoder outputs a HIGH on only one of the four lines at a time,
For inputs A=1, B=1, and Carry-in=1, the sum will be 0, and the carry-out
will be 1.
An AND gate produces a HIGH output (1) only when all inputs are HIGH
(1).
A half adder is constructed using an XOR gate for the sum and an AND
59) 19. C) A full adder can handle carry-in bits, while a half adder
cannot.
A half adder adds two bits and produces a sum and a carry-out, while a full
60) 20. a) 0 An XOR gate produces a HIGH (1) output only when the
inputs are different. If both inputs are the same, the output is LOW (0).
62) N
63) 2N
65) 10
70) JK Flip-Flop
71) S = 1, R = 1
73) Master stores the input, and the slave updates on the next clock edge
75) Q(next) = D
76) 3
together
78) 8
80) PIPO