Digital Logic GATE Practice Set
Mixed GATE-style questions on number systems, 2's complement, IEEE 754, Boolean functions, K-map minimization, combinational circuits, flip-flops and counters.
These questions mix every lesson of the Digital Logic track, in the three GATE formats. Write the bits out in full for representation questions, and draw the K-map for minimization questions. Every numerical answer is recomputed by a program when the site is built.
Number representation
[Bases] What is (2026)₁₀ in hexadecimal?
print(format(2026, "X"))
Show answer and explanation
Answer: B2026 = 7 × 256 + 234, and 234 = 14 × 16 + 10, so the digits are 7, 14 (E), 10 (A): 7EA.
[2's complement] What is the decimal value of the 8-bit 2's complement number 10110110?
Show answer and explanation
Answer: -74The MSB is 1, so the value is 182 − 256 = −74. (Check: invert to 01001001 = 73 and add 1 to get 74.)
[IEEE 754] What decimal value does the single-precision pattern 0xC2C80000 represent?
Show answer and explanation
Answer: -1000xC2C80000 = 1 10000101 1001000…: sign −, exponent 133 − 127 = 6, significand 1.1001₂ = 1.5625. Value −1.5625 × 64 = −100.
[Overflow] In 8-bit 2's complement, which sums produce overflow? (Select all that apply.)
Show answer and explanation
Answer: A, C0x70 + 0x10 = 112 + 16 = 128 > 127. 0x90 + 0x10 = −112 + 16 = −96 fits. 0x80 + 0xFF = −128 + (−1) = −129 < −128. 0x7F + 0x80 = 127 + (−128) = −1 fits (opposite signs never overflow).
Boolean algebra and minimization
[Counting functions] How many Boolean functions f(A, B) satisfy f(A, B) = f(B, A) for all inputs?
Show answer and explanation
Answer: 8Symmetry ties f(0, 1) to f(1, 0), leaving 3 free values: f(0, 0), f(0, 1) = f(1, 0) and f(1, 1). That gives 2³ = 8 functions (the formula 2ⁿ⁺¹ for symmetric functions).
[K-map] What is the minimal SOP of F(A, B, C, D) = Σm(0, 2, 3, 4, 6, 7, 8, 10, 12, 14)?
Show answer and explanation
Answer: BAll eight minterms with D = 0 (0, 2, 4, 6, 8, 10, 12, 14) form one group of 8: D′. The remaining 3 and 7 (A′CD with B = 0 or 1) join 2 and 6 in the group A′C. So F = D′ + A′C.
[Prime implicants] F(A, B, C, D) = Σm(1, 5, 6, 7, 11, 12, 13, 15) has 5 prime implicants. How many terms does its minimal SOP have?
Show answer and explanation
Answer: 4The prime implicants are A′C′D, A′BC, ACD, ABC′ and BD. The first four are essential (each is the only PI covering 1, 6, 11 and 12 respectively), and together they already cover 5, 7, 13 and 15. So BD, the largest group, is redundant: F = A′C′D + A′BC + ACD + ABC′.
Circuits
[MUX] How many 2:1 multiplexers are needed to build a 32:1 multiplexer?
Show answer and explanation
Answer: 31A tree of 2:1 MUXes halves the number of signals at each level: 16 + 8 + 4 + 2 + 1 = 31 (in general 2ⁿ − 1 for a 2ⁿ:1 MUX).
[Decoder] A 3-to-8 decoder and OR gates implement a full adder. Which minterms are ORed for the carry output?
Show answer and explanation
Answer: AThe carry is 1 when at least two of the three inputs are 1: 011, 101, 110 and 111, which are minterms 3, 5, 6 and 7. (m₁, m₂, m₄, m₇ give the sum.)
[Counters] How many states does a Johnson counter with 5 flip-flops go through?
Show answer and explanation
Answer: 10A Johnson (twisted ring) counter with n flip-flops has 2n states: 10.
[Flip-flops] A T flip-flop starts at Q = 0. The inputs T = 1, 0, 1, 1, 1, 0, 1 are applied at successive clock edges. What is Q at the end?
Show answer and explanation
Answer: 1Q toggles once for each T = 1. There are five 1s, an odd number, so Q ends at 1.
[Timing] In a synchronous circuit the flip-flops have tpd = 4 ns and tsu = 2 ns, and the slowest combinational path takes 14 ns. What is the maximum clock frequency in MHz?
Show answer and explanation
Answer: 50The clock period must be at least 4 + 14 + 2 = 20 ns, so fmax = 1 / 20 ns = 50 MHz.