GATE CS Digital Logic Previous Year Questions

60 solved GATE CS questions on Digital Logic, drawn from 9 exam years and grouped by year. Every question shows the official answer and a step-by-step solution.

Want to practise this topic and ask follow-up questions? Explore Success Tracker.

Revision companion

Digital Logic: trace values through gates and state

Separate combinational output (determined by present inputs) from sequential output (determined by present inputs and stored state). These selected foundations connect Boolean algebra, gate-level design, and finite-state machines. Verify each simplification by evaluating a few input combinations.

Our study notes and original examples support the PYQs below; they are not official exam questions or a replacement for the current syllabus.

Before you start

  • Binary number representation and conversion between binary, decimal, and hexadecimal.
  • Basic Boolean operations: AND, OR, NOT, and their truth tables.

Concepts to revise before solving

Boolean algebra and simplification

Every Boolean function over n variables can be expressed as a sum of minterms or product of maxterms. Karnaugh maps group adjacent cells sharing a common literal; each group of 2^k cells eliminates k variables. Verify that the simplified expression matches the original truth table.

Check yourself: Does every minterm in the original function belong to at least one group?

Combinational circuits

A multiplexer selects one of 2^n data inputs using n select lines. A decoder maps an n-bit input to one of 2^n output lines. Propagation delay determines the time between input change and stable output; hazards are transient glitches during this window.

Check yourself: Are the select and enable signals correctly connected?

Number representation and arithmetic

Two's complement represents signed integers: the most significant bit has a negative weight. For n bits, the range is −2^(n−1) to 2^(n−1) − 1. Overflow occurs when the result exceeds this range, not merely when a carry exists.

Check yourself: Does the sign bit of the result correctly reflect the operands' signs?

Flip-flops and registers

A D flip-flop samples its input at the active clock edge and holds the value until the next edge. Setup time is the minimum duration the input must be stable before the edge; hold time is the minimum after. Violating either can cause metastability.

Check yourself: Is the data stable for the required setup window before the clock edge?

Finite state machines

A Mealy machine's output depends on current state and input; a Moore machine's output depends only on current state. State transition tables or diagrams must account for every state-input pair. Unreachable states can be removed; equivalent states can be merged.

Check yourself: Have you assigned an output for every state (Moore) or every state-input pair (Mealy)?

Mistakes to avoid

Grouping non-adjacent cells in a Karnaugh map.
Adjacent cells differ in exactly one variable; the map wraps at edges.
Confusing overflow with carry-out in two's complement addition.
Overflow is XOR of carries into and out of the sign bit, not the carry-out alone.
Assuming a flip-flop output changes instantly at the clock edge.
There is a clock-to-output delay; account for it in timing calculations.

Original teaching example · not a PYQ

Work through the reasoning

Original mini-example: simplify the Boolean function F(A, B, C) = Σm(0, 1, 2, 5, 7) using a Karnaugh map.

  1. Draw a 2×4 K-map with A on one axis, BC on the other. Mark cells 0, 1, 2, 5, 7 as 1.
  2. Group minterms 0 and 1 (A=0, B=0): this gives A'B'. Group minterms 5 and 7 (A=1, C=1): this gives AC.
  3. Minterm 2 (A=0, B=1, C=0) pairs with minterm 0 (A=0, B=0, C=0): this gives A'C'.
  4. The simplified function is F = A'B' + AC + A'C'. Verify: F(0,0,0)=1, F(1,1,0)=0, F(1,0,1)=1 all match the truth table.

F = A'B' + AC + A'C'.

Try it before reading the answer

In 4-bit two's complement, what decimal value does 1101 represent?

Show answer and reasoning

−3.

The sign bit contributes −8. The remaining bits contribute 4 + 0 + 1 = 5. Total: −8 + 5 = −3. Alternatively, invert to 0010, add 1 to get 0011 = 3, negate to −3.

Go deeper with free learning resources

Supplemental reading, not an official GATE reading list or an endorsement of these notes.

Apply this to the previous-year questions

Previous-year questions by year

This page shows 60 recent questions from the released archive, newest first. For older questions and complete papers, browse all GATE CS papers. Questions can carry more than one subject tag; counts are not marks weightage.

GATE CS 202610 questions

  1. Set 1 Q21Consider the following Boolean expression of a function FF : F(P,Q)=(Pˉ+Q)⊕(PˉQ)F(P, Q) = (\bar{P} + Q) \oplus (\bar{P} Q) Which of the following expressions is/are…MSQ · +1 marks · Medium
  2. Set 1 Q22Consider the 8-bit signed integers X,YX, Y and ZZ represented using the sign-magnitude form. The binary representations of XX and YY are as follows:…MSQ · +1 marks · Medium
  3. Set 1 Q36Consider the real valued variables X,YX, Y and ZZ represented using the IEEE 754 single-precision floating-point format. The binary representations of XX and…MCQ · +2 marks · Medium
  4. Set 1 Q37Consider a 2-bit saturating up/down counter that performs the saturating up count when the input PP is 0, and the saturating down count when PP is 1. The…MCQ · +2 marks · Medium
  5. Set 1 Q48Consider a Boolean function FF with the following minterm expression: F(P,Q,R,S)=∑m(1,2,3,4,5,7,10,12,13,14)F(P, Q, R, S) = \sum m(1, 2, 3, 4, 5, 7, 10, 12, 13, 14) Which of the following…MSQ · +2 marks · Medium
  6. Set 2 Q16Which one of the following options is not a property of Boolean Algebra? Note: ++ is OR operation, .. is AND operation, and ′' is NOT operationMCQ · +1 marks · Easy
  7. Set 2 Q28In a system, numbers are represented using 4-bit two’s complement form. Consider four numbers N1=1011N1 = 1011, N2=1101N2 = 1101, N3=1010N3 = 1010 and N4=1001N4 = 1001 in the…MSQ · +1 marks · Medium
  8. Set 2 Q34The 32-bit IEEE 754 single precision representation of a number is 0xC27100000\text{xC}2710000. The number in decimal representation is ________. (rounded off to two…NAT · +1 marks · Medium
  9. Set 2 Q40Consider the following 4-variable Boolean function F(A,B,C,D)=Σm(0,1,2,3,8,9,10,11)F(A, B, C, D) = \Sigma m(0, 1, 2, 3, 8, 9, 10, 11) Consider AA as MSB, DD as LSB. Which one of the…MCQ · +2 marks · Easy
  10. Set 2 Q59Consider the digital circuit shown below with two input lines AA and BB, two select lines S0S_0 and S1S_1, and an output line YY. The blocks QQ and MM…NAT · +2 marks · Medium

GATE CS 202510 questions

  1. Set 1 Q24Let XX be a 3-variable Boolean function that produces output as '1' when at least two of the input variables are '1'. Which of the following statement(s)…MSQ · +1 marks · Hard
  2. Set 1 Q25The number −6-6 can be represented as 10101010 in 4-bit 2's complement representation. Which of the following is/are CORRECT 2's complement representation(s) of…MSQ · +1 marks · Easy
  3. Set 1 Q42Consider the following four variable Boolean function in sum-of-product form F(b3,b2,b1,b0)=∑(0,2,4,8,10,11,12).F(b_3, b_2, b_1, b_0) = \sum(0, 2, 4, 8, 10, 11, 12). where the value of the…MCQ · +2 marks · Medium
  4. Set 1 Q59Consider a finite state machine (FSM) with one input XX and one output ff, represented by the given state transition table. The minimum number of states…NAT · +2 marks · Medium
  5. Set 1 Q60Consider the given sequential circuit designed using DD-Flip-flops. The circuit is initialized with some value (initial state). The number of distinct states…NAT · +2 marks · Medium
  6. Set 2 Q31Consider the following logic circuit diagram. Which is/are the CORRECT option(s) for the output function FF? [figure]MSQ · +1 marks · Medium
  7. Set 2 Q34In a 4-bit ripple counter, if the period of the waveform at the last flip-flop is 64 microseconds, then the frequency of the ripple counter in kHz is ________.…NAT · +1 marks · Medium
  8. Set 2 Q43Given the following Karnaugh Map for a Boolean function F(w,x,y,z)F(w, x, y, z): [figure] Which one or more of the following Boolean expression(s) represent(s) FF?MSQ · +2 marks · Medium
  9. Set 2 Q49Three floating point numbers X,YX, Y, and ZZ are stored in three registers RX, RY, and RZ, respectively in IEEE 754 single precision format as given below in…MSQ · +2 marks · Hard
  10. Set 2 Q50Which of the following Boolean algebraic equation(s) is/are CORRECT?MSQ · +2 marks · Medium

GATE CS 20248 questions

  1. Set 1 Q13Consider a system that uses 5 bits for representing signed integers in 2’s complement format. In this system, two integers AA and BB are represented as…MCQ · +1 marks · Medium
  2. Set 1 Q28Consider the circuit shown below where the gates may have propagation delays. Assume that all signal transitions occur instantaneously and that wires have no…MSQ · +1 marks · Medium
  3. Set 1 Q47Consider a Boolean expression given by F(X,Y,Z)=∑(3,5,6,7)F(X, Y, Z) = \sum(3,5,6,7). Which of the following statements is/are CORRECT?MSQ · +2 marks · Easy
  4. Set 1 Q64Consider a digital logic circuit consisting of three 2-to-1 multiplexers M1, M2, and M3 as shown below. X1X_1 and X2X_2 are inputs of M1. X3X_3 and X4X_4 are…NAT · +2 marks · Medium
  5. Set 2 Q14The format of a single-precision floating-point number as per the IEEE 754 standard is: [figure] Choose the largest floating-point number among the…MCQ · +1 marks · Medium
  6. Set 2 Q30For a Boolean variable xx, which of the following statements is/are FALSE?MSQ · +1 marks · Easy
  7. Set 2 Q49Which of the following is/are EQUAL to 224224 in radix-55 (i.e., base-55) notation?MSQ · +2 marks · Easy
  8. Set 2 Q50Consider 4-variable functions f1,f2,f3,f4f1, f2, f3, f4 expressed in sum-of-minterms form as given below. f1=∑(0,2,3,5,7,8,11,13)f1 = \sum(0,2,3,5,7,8,11,13)…MSQ · +2 marks · Medium

GATE CS 20236 questions

  1. Set 1 Q21The output of a 2-input multiplexer is connected back to one of its inputs as shown in the figure. Match the functional equivalence of this circuit to one of…MCQ · +1 marks · Easy
  2. Set 1 Q32A particular number is written as 132 in radix-4 representation. The same number in radix-5 representation is ________.NAT · +1 marks · Easy
  3. Set 1 Q42A 4 kilobyte (KB) byte-addressable memory is realized using four 1 KB memory blocks. Two input address lines (IA4 and IA3) are connected to the chip select…MCQ · +2 marks · Medium
  4. Set 1 Q43Consider a sequential digital circuit consisting of TT flip-flops and DD flip-flops as shown in the figure. CLKIN is the clock input to the circuit. At the…MCQ · +2 marks · Medium
  5. Set 1 Q44A Boolean digital circuit is composed using two 4-input multiplexers (M1 and M2) and one 2-input multiplexer (M3) as shown in the figure. X0–X7X_0–X_7 are the…MCQ · +2 marks · Medium
  6. Set 1 Q45Consider the IEEE-754 single precision floating point numbers P=0xC1800000P=0xC1800000 and Q=0x3F5C2EF4Q=0x3F5C2EF4. Which one of the following corresponds to the product of these…MCQ · +2 marks · Medium

GATE CS 20223 questions

  1. Set 1 Q18Let R1 and R2 be two 4-bit registers that store numbers in 2’s complement form. For the operation R1+R2, which one of the following values of R1 and R2 gives…MCQ · +1 marks · Easy
  2. Set 1 Q40Consider a digital display system (DDS) shown in the figure that displays the contents of register X. A 16-bit code word is used to load a word in X, either…MCQ · +2 marks · Medium
  3. Set 1 Q41Consider three floating point numbers AA, BB and CC stored in registers RA\text{R}_\text{A}, RB\text{R}_\text{B} and RC\text{R}_\text{C}, respectively as…MCQ · +2 marks · Medium

GATE CS 202110 questions

  1. Set 1 Q16Let the representation of a number in base 3 be 210. What is the hexadecimal representation of the number?MCQ · +1 marks · Easy
  2. Set 1 Q34Consider the following representation of a number in IEEE 754 single-precision floating point format with a bias of 127.…NAT · +1 marks · Medium
  3. Set 1 Q38Consider a 3-bit counter, designed using T flip-flops, as shown below: Assuming the initial state of the counter given by PQR as 000, what are the next three…MCQ · +2 marks · Medium
  4. Set 1 Q52Consider the following Boolean expression. F=(X+Y+Z)(X‾+Y)(Y‾+Z)F = (X + Y + Z)(\overline{X} + Y)(\overline{Y} + Z) Which of the following Boolean expressions is/are equivalent…MSQ · +2 marks · Medium
  5. Set 2 Q14The format of the single-precision floating-point representation of a real number as per the IEEE 754 standard is as follows: [figure] Which one of the…MCQ · +1 marks · Medium
  6. Set 2 Q15Which one of the following circuits implements the Boolean function given below? f(x,y,z)=m0+m1+m3+m4+m5+m6f(x, y, z) = m_0 + m_1 + m_3 + m_4 + m_5 + m_6, where mim_i is the…MCQ · +1 marks · Medium
  7. Set 2 Q28If xx and yy are two decimal digits and (0.1101)2=(0.8xy5)10(0.1101)_2 = (0.8xy5)_{10}, the decimal value of x+yx + y is ________.NAT · +1 marks · Medium
  8. Set 2 Q38Suppose we want to design a synchronous circuit that processes a string of 0's and 1's. Given a string, it produces another string by replacing the first 1 in…MCQ · +2 marks · Medium
  9. Set 2 Q54If the numerical value of a 2-byte unsigned integer on a little endian computer is 255 more than that on a big endian computer, which of the following choices…MSQ · +2 marks · Hard
  10. Set 2 Q62Consider a Boolean function f(w,x,y,z)f(w, x, y, z) such that f(w,0,0,z)=1f(w, 0, 0, z) = 1 f(1,x,1,z)=x+zf(1, x, 1, z) = x + z f(w,1,y,z)=wz+yf(w, 1, y, z) = wz + y The number of literals in the…NAT · +2 marks · Hard

GATE CS 20204 questions

  1. Set 1 Q29A multiplexer is placed between a group of 32 registers and an accumulator to regulate data movement such that at any given point in time the content of only…NAT · +1 marks · Easy
  2. Set 1 Q30If there are mm input lines and nn output lines for a decoder that is used to uniquely address a byte addressable 1 KB RAM, then the minimum value of m+nm + n…NAT · +1 marks · Medium
  3. Set 1 Q38Consider the Boolean function z(a,b,c)z(a, b, c). [figure] Which one of the following minterm lists represents the circuit given above?MCQ · +2 marks · Medium
  4. Set 1 Q39Consider three registers R1, R2, and R3 that store numbers in IEEE-754 single precision floating point format. Assume that R1 and R2 contain the values (in…MCQ · +2 marks · Medium

GATE CS 20196 questions

  1. Set 1 Q14In 16-bit 2's complement representation, the decimal number −28-28 is:MCQ · +1 marks · Easy
  2. Set 1 Q16Which one of the following is NOT a valid identity?MCQ · +1 marks · Easy
  3. Set 1 Q18Consider Z=X−YZ = X - Y, where X, Y and Z are all in sign-magnitude form. X and Y are each represented in nn bits. To avoid overflow, the representation of Z…MCQ · +1 marks · Medium
  4. Set 1 Q32Two numbers are chosen independently and uniformly at random from the set {1, 2, ..., 13}. The probability (rounded off to 3 decimal places) that their 4-bit…NAT · +1 marks · Medium
  5. Set 1 Q40Consider three 4-variable functions f1f_1, f2f_2, and f3f_3, which are expressed in sum-of-minterms as f1=Σ(0,2,5,8,14)f_1 = \Sigma (0, 2, 5, 8, 14),…MCQ · +2 marks · Medium
  6. Set 1 Q60What is the minimum number of 2-input NOR gates required to implement a 4-variable function expressed in sum-of-minterms form as…NAT · +2 marks · Medium

GATE CS 20183 questions

  1. Set 1 Q14Let ⊕\oplus and ⊙\odot denote the Exclusive OR and Exclusive NOR operations, respectively. Which one of the following is NOT CORRECT?MCQ · +1 marks · Easy
  2. Set 1 Q32Consider the sequential circuit shown in the figure, where both flip-flops used are positive edge-triggered D flip-flops. [figure] The number of states in the…NAT · +1 marks · Medium
  3. Set 1 Q43Consider the unsigned 8-bit fixed point binary number representation below, b7b6b5b4b3.b2b1b0b_7 b_6 b_5 b_4 b_3 . b_2 b_1 b_0 where the position of the binary point is…MCQ · +2 marks · Medium

Other GATE CS topics

Continue learning with Success Tracker

Keep working on Digital Logic

Reading a solution is a useful start. In Success Tracker, you can attempt questions yourself, review mistakes and return to the topics that need another pass.

AI-powered practice· Unlimited practice on eligible plans
PYQs with solutions
Attempt available previous-year questions, then compare your reasoning with the worked solution. Coverage varies by stream.
Practice that adapts
Choose a topic, work on weaker areas and bookmark questions to revisit. Your attempts feed your progress tracking.
AI doubt support
Ask follow-up questions about a step or concept while practising, instead of stopping at the final answer.

Unlimited practice is available on eligible plans. Free practice and AI usage have limits; check the current plan allowances before choosing.

This page stays readable without an account. AI responses can be wrong; check them against the solution and source material.