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

GATE-styleMCQ · one correct answer

[Bases] What is (2026)₁₀ in hexadecimal?

print(format(2026, "X"))
Show answer and explanationAnswer: B

2026 = 7 × 256 + 234, and 234 = 14 × 16 + 10, so the digits are 7, 14 (E), 10 (A): 7EA.

GATE-styleNAT · numerical answer

[2's complement] What is the decimal value of the 8-bit 2's complement number 10110110?

Show answer and explanationAnswer: -74

The MSB is 1, so the value is 182 − 256 = −74. (Check: invert to 01001001 = 73 and add 1 to get 74.)

GATE-styleNAT · numerical answer

[IEEE 754] What decimal value does the single-precision pattern 0xC2C80000 represent?

Show answer and explanationAnswer: -100

0xC2C80000 = 1 10000101 1001000…: sign −, exponent 133 − 127 = 6, significand 1.1001₂ = 1.5625. Value −1.5625 × 64 = −100.

GATE-styleMSQ · one or more correct answers

[Overflow] In 8-bit 2's complement, which sums produce overflow? (Select all that apply.)

Show answer and explanationAnswer: A, C

0x70 + 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

GATE-styleNAT · numerical answer

[Counting functions] How many Boolean functions f(A, B) satisfy f(A, B) = f(B, A) for all inputs?

Show answer and explanationAnswer: 8

Symmetry 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).

GATE-styleMCQ · one correct answer

[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 explanationAnswer: B

All 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.

GATE-styleNAT · numerical answer

[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 explanationAnswer: 4

The 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

GATE-styleNAT · numerical answer

[MUX] How many 2:1 multiplexers are needed to build a 32:1 multiplexer?

Show answer and explanationAnswer: 31

A 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).

GATE-styleMCQ · one correct answer

[Decoder] A 3-to-8 decoder and OR gates implement a full adder. Which minterms are ORed for the carry output?

Show answer and explanationAnswer: A

The 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.)

GATE-styleNAT · numerical answer

[Counters] How many states does a Johnson counter with 5 flip-flops go through?

Show answer and explanationAnswer: 10

A Johnson (twisted ring) counter with n flip-flops has 2n states: 10.

GATE-styleNAT · numerical answer

[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 explanationAnswer: 1

Q toggles once for each T = 1. There are five 1s, an odd number, so Q ends at 1.

GATE-styleNAT · numerical answer

[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 explanationAnswer: 50

The clock period must be at least 4 + 14 + 2 = 20 ns, so fmax = 1 / 20 ns = 50 MHz.