chapter
    Digital Logic Practice Questions for GATE CS

    GATE CS Digital Logic: 4 chapters, 33 previous year questions (100% of Digital Logic), 537 practice questions and one solved question from each chapter.

    A question from this chapter

    Question 1
    Level 3: Exam Standard

    Match each 4-bit signed addition in Column I with the correct description in Column II of the carries at the most significant bit and the correctness of the stored 4-bit signed result.

    Column I:

    P:

    Q:

    R:

    S:

    Column II:

    (i) , , and the stored result is not the correct signed sum

    (ii) , , and the stored result is not the correct signed sum

    (iii) , , and the stored result is the correct signed sum

    (iv) , , and the stored result is the correct signed sum

    Here is the carry into the most significant bit and is the carry out of the most significant bit.

    Question 2
    Level 3: Exam Standard

    Consider the Boolean function . It is given that the inputs and are never both simultaneously in the operating environment. What is the MINIMUM number of literals in the simplified sum-of-products (SOP) expression for under this constraint?

    Question 3
    Level 3: Exam Standard

    Consider the Boolean function . The function is implemented using a minimal two-level Sum-of-Products (SOP) circuit. Assuming all logic gates have non-zero but identical propagation delays, and only one input variable changes at a time, the number of distinct input transitions (from one minterm to an adjacent minterm) that will produce a static-1 hazard is ______.

    Question 4
    Level 3: Exam Standard

    Match the flip-flop configurations in List I with their corresponding next-state equations in List II.

    \textbf{List I}

    P. D flip-flop with

    Q. JK flip-flop with

    R. T flip-flop with

    S. D flip-flop with

    \textbf{List II}

    Options:

    A) P-4, Q-3, R-1, S-2

    B) P-4, Q-1, R-3, S-2

    C) P-2, Q-3, R-1, S-4

    D) P-4, Q-3, R-2, S-1

    Free preview ends here

    Login to view the complete practice questions and solutions

    Creating an account is free. You get the rest of this chapter, step-by-step solutions, and a study plan built around the topics you are actually weak at.

    Why MastersUp

    Personalised first. High quality throughout.

    Most platforms hand everyone the same content. Here the content moves with your performance, topic by topic.

    Built around you, not around a syllabus PDF

    Every answer you give moves your topic-level intelligence rate. The next question, the next revision card and tomorrow's plan all change with it.

    Revision that hits your weak spots

    We only revise topics you have actually attempted and are still below the safe bar on — never the same chapter on repeat.

    Questions calibrated to the real exam

    Each question carries a measured toughness. You are served a rung above your current level, so practice keeps stretching you.

    Notes written for recall, not for volume

    Full lesson cards for first study, curated short-note cards for the last mile — with derivations, traps and exam patterns marked.

    One place for everything

    Notes, chapter practice, previous-year questions, test series and full-length papers — all feeding one picture of your preparation.

    Honest progress

    No vanity streaks. Progress here means chapters mastered and accuracy that held up on harder questions.

    Unlock the whole course

    Full notes and short notes, the complete question bank with worked solutions, mock tests, full-length papers, and an adaptive plan that rebuilds itself as you improve.

    Digital Logic Practice Questions for GATE CS

    GATE CS Digital Logic: 4 chapters, 33 previous year questions (100% of Digital Logic), 537 practice questions and one solved question from each chapter.

    About Digital Logic Practice Questions

    537 practice questions for Digital Logic in GATE CS, sorted chapter by chapter and graded from basic to exam level, each with a full solution.

    Digital Logic Weightage in GATE CS

    Digital Logic accounts for 33 of 33 Digital Logic previous year questions in our bank (100%), about 3.3 per paper across 10 papers.

    Digital Logic Chapter Matrix

    ChapterTopicsPYQsShare of unit PYQsPractice questions
    Number Systems, Binary Arithmetic and Data RepresentationRadix Conversion and Number Representation, Binary Fractions and Decimal Conversion, Two's Complement Arithmetic and Overflow515%79
    Boolean Algebra, Canonical Forms and Logic MinimizationBoolean Laws, Identities and Expression Equivalence, Canonical Minterm and Maxterm Forms, Sum-of-Products Minimization, Karnaugh Maps and Minimal Expressions, Majority, XOR and Composite Boolean Functions1236%189
    Combinational Logic Circuits and Data SelectorsLogic Gate Circuit Analysis and Hazards, Decoders, Multiplexers and Address Selection, Boolean Function Realization Using Multiplexers, Cascaded Multiplexer and Decoder Circuits824%143
    Flip-Flops, Counters and Finite State MachinesFlip-Flop Behaviour and Sequential Circuit Analysis, Ripple and Synchronous Counters, Counter State Transitions and Excitation Equations, Mealy Machines and Sequence Processing, FSM State Minimization824%126

    More from Digital Logic

    One Solved Question from Each Digital Logic Chapter

    Question 1 · Number Systems, Binary Arithmetic and Data Representation MCQ

    Match each 4-bit signed addition in Column I with the correct description in Column II of the carries at the most significant bit and the correctness of the stored 4-bit signed result.

    Column I:

    P:

    Q:

    R:

    S:

    Column II:

    (i) , , and the stored result is not the correct signed sum

    (ii) , , and the stored result is not the correct signed sum

    (iii) , , and the stored result is the correct signed sum

    (iv) , , and the stored result is the correct signed sum

    Here is the carry into the most significant bit and is the carry out of the most significant bit.

    1. A.

      P-(iii), Q-(i), R-(ii), S-(iv)

    2. B.

      P-(iii), Q-(iv), R-(ii), S-(i)

    3. C.

      P-(i), Q-(iii), R-(iv), S-(ii)

    4. D.

      P-(ii), Q-(i), R-(iii), S-(iv)

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: this is a carry-in/carry-out matching question. Do not decide correctness from the final carry alone. Compute the carry into the MSB and the carry out of the MSB separately, then check whether the stored result equals the true signed sum.

    Step 1: P: .

    No carry reaches the MSB and no carry leaves it, so , . The stored result is , which is correct. Thus P matches (iii).

    Step 2: Q: with a carry out.

    The lower three bits produce no carry into the MSB, so . The sign-bit addition produces . The true sum is , which is not representable in 4 bits, so the stored result is not correct. Thus Q matches (i).

    Step 3: R: .

    The lower bits generate a carry into the MSB, so . At the MSB, with no carry out, so . The true sum is , not representable in 4-bit signed form, so the stored result is not correct. Thus R matches (ii).

    Step 4: S: with a carry out.

    The bit below the MSB generates a carry into the MSB, so . At the MSB, gives sum bit 1 and carry out 1, so . The true sum is , which is representable, and the stored result is . Thus S matches (iv).

    Step 5: Elimination confirms the only matching satisfying all four rows is P-(iii), Q-(i), R-(ii), S-(iv).

    Answer: option A.

    Question 2 · Boolean Algebra, Canonical Forms and Logic Minimization MCQ

    Consider the Boolean function . It is given that the inputs and are never both simultaneously in the operating environment. What is the MINIMUM number of literals in the simplified sum-of-products (SOP) expression for under this constraint?

    1. A.

      3

    2. B.

      4

    3. C.

      5

    4. D.

      7

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: This is a constrained simplification question. The operating environment provides a hidden constraint that eliminates specific minterms, allowing further reduction via the consensus theorem.

    Step 1: Translate the constraint. " and are never both " means the input combination is impossible. Thus, .

    Step 2: Apply the constraint to the function. The term contains , so it evaluates to . The function simplifies to .

    Step 3: Apply the consensus theorem. For the terms and , the consensus term is formed by multiplying the non-complementary literals: .

    Step 4: Eliminate the redundant term. Since is the consensus of and , it is completely redundant and can be removed. The minimal SOP is .

    Step 5: Count the literals. The expression has exactly 4 literals.

    Answer: 4 (Option B).

    Question 3 · Combinational Logic Circuits and Data Selectors NAT

    Consider the Boolean function . The function is implemented using a minimal two-level Sum-of-Products (SOP) circuit. Assuming all logic gates have non-zero but identical propagation delays, and only one input variable changes at a time, the number of distinct input transitions (from one minterm to an adjacent minterm) that will produce a static-1 hazard is ______.

    Correct Answer:

    4.00

    Step-by-Step Solution

    Key idea: A static-1 hazard in a minimal SOP circuit occurs when a single-variable transition moves between two adjacent 1s on the K-map that are not covered by the same prime implicant loop.

    Step 1: Plot the minterms on a 4-variable K-map and identify the minimal prime implicants (PIs).

    Minterms: 0, 1, 2, 5, 6, 7, 8, 10, 14, 15.

    The essential prime implicants are:

    • covering {0, 2, 8, 10}
    • covering {6, 7, 14, 15}
    • covering {1, 5}

    These three PIs cover all the 1s minimally.

    Step 2: Identify all adjacent pairs of 1s (transitions where exactly one variable changes).

    • 0(0000) and 1(0001): 0 is in , 1 is in . Not in the same PI. Hazard.
    • 1(0001) and 5(0101): Both are in . No hazard.
    • 2(0010) and 6(0110): 2 is in , 6 is in . Not in the same PI. Hazard.
    • 5(0101) and 7(0111): 5 is in , 7 is in . Not in the same PI. Hazard.
    • 10(1010) and 14(1110): 10 is in , 14 is in . Not in the same PI. Hazard.

    (Other adjacent pairs like 0-2, 0-8, 6-7, etc., are within the same PI and do not cause hazards).

    Step 3: Count the hazardous transitions. There are exactly 4 such transitions.

    Answer: 4

    Question 4 · Flip-Flops, Counters and Finite State Machines MCQ

    Match the flip-flop configurations in List I with their corresponding next-state equations in List II.

    \textbf{List I}

    P. D flip-flop with

    Q. JK flip-flop with

    R. T flip-flop with

    S. D flip-flop with

    \textbf{List II}

    Options:

    A) P-4, Q-3, R-1, S-2

    B) P-4, Q-1, R-3, S-2

    C) P-2, Q-3, R-1, S-4

    D) P-4, Q-3, R-2, S-1

    1. A.

      P-4, Q-3, R-1, S-2

    2. B.

      P-4, Q-1, R-3, S-2

    3. C.

      P-2, Q-3, R-1, S-4

    4. D.

      P-4, Q-3, R-2, S-1

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: This is a matching question testing your ability to derive the next-state equation from the excitation equations of different flip-flop types. You must apply the characteristic equation for each FF type and simplify using Boolean algebra.

    Step 1: Evaluate P. D flip-flop with .

    Characteristic equation: .

    Therefore, . This matches 4.

    Step 2: Evaluate Q. JK flip-flop with .

    Characteristic equation: .

    Substitute: .

    Apply De Morgan's: .

    Simplify: .

    This matches 3.

    Step 3: Evaluate R. T flip-flop with .

    Characteristic equation: .

    Substitute: .

    Since and , we have .

    This matches 1.

    Step 4: Evaluate S. D flip-flop with .

    Characteristic equation: .

    Therefore, . This matches 2.

    Final Matching: P-4, Q-3, R-1, S-2.

    Answer: P-4, Q-3, R-1, S-2.