chapter

    Digital Logic Notes for Gate Cs

    GATE CS Digital Logic: 1 units and 4 chapters, weightage from 33 previous year questions across 10 papers, a study order by exam weight and 981 practice quest

    A question from this chapter

    Question 1
    Level 1: Warm-up

    When adding two 4-bit 2's complement numbers A and B, which of the following conditions are NECESSARY for an arithmetic overflow to occur?

    Question 2
    Level 1: Warm-up

    Assertion (A): For a 3-variable function , if the sum-of-minterms is , then the product-of-maxterms is .

    Reason (R): The arithmetic sum of the minterm indices and the maxterm indices equals the total number of rows in the truth table, which is .

    Question 3
    Level 1: Warm-up

    Consider the following assertion about hazard types in combinational circuits: "A 2-level Sum-of-Products (SOP) implementation of any Boolean function can exhibit all three types of hazards: static-1, static-0, and dynamic." To test the validity of this assertion, determine how many of these three hazard types can actually occur in a 2-level SOP circuit.

    Question 4
    Level 1: Warm-up

    An SR flip-flop has two inputs and . One specific input combination is invalid (undefined output). What is the number of valid input combinations for the SR flip-flop?

    Free preview ends here

    Login to view the complete notes

    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.

    Explore complete test series, official past papers, and chapter-wise study tools.

    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 Notes for GATE CS

    GATE CS Digital Logic: 1 units and 4 chapters, weightage from 33 previous year questions across 10 papers, a study order by exam weight and 981 practice questions.

    About Digital Logic Notes

    Full study notes for Digital Logic in GATE CS, organised across 4 chapters. Each chapter page explains concepts from the basics with worked examples and the formulas you need.

    GATE CS Digital Logic Unit-wise Weightage from Past Papers

    We counted every GATE CS Digital Logic previous year question in our bank (33 questions from 10 papers) and grouped them by unit.

    UnitChaptersPYQsShare of sectionAvg per paper
    Digital Logic433100%3.3

    Suggested Digital Logic Study Order for GATE CS

    1. Digital Logic: 100% of past Digital Logic questions, about 3.3 per paper.

    Start where the marks are. Units at the top of this list have appeared most often in past GATE CS papers.

    Units in GATE CS Digital Logic

    All Digital Logic chapters

    One Solved Question from Each Digital Logic Chapter

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

    When adding two 4-bit 2's complement numbers A and B, which of the following conditions are NECESSARY for an arithmetic overflow to occur?

    1. A.

      The sign bits of A and B must be the same.

    2. B.

      The sign bit of the sum must be different from the sign bits of A and B.

    3. C.

      There must be a carry-out from the most significant bit.

    4. D.

      The true mathematical sum must fall outside the range .

    Correct Answer:

    ["A","B","D"]

    Step-by-Step Solution

    Key idea: This is a bounding problem that tests the necessary conditions for overflow in 2's complement arithmetic. Overflow has specific detection rules based on sign bits.

    Exam route: Apply the overflow detection rules to identify which conditions are necessary.

    Step 1: Recall overflow rule: Overflow occurs ONLY when adding two numbers of the same sign, and the result has a different sign.

    Step 2: Check option A: "Sign bits of A and B must be the same" - TRUE. Overflow can only happen when adding or . Adding mixed signs never overflows.

    Step 3: Check option B: "Sign bit of sum must be different from operands" - TRUE. This is the exact condition: if operands have same sign but result has different sign, overflow occurred.

    Step 4: Check option C: "Carry-out from MSB" - FALSE. In 2's complement, carry-out is always discarded and does NOT indicate overflow. This is a common trap.

    Step 5: Check option D: "Sum must fall outside range " - TRUE. By definition, overflow means the result exceeds the representable range of the n-bit system.

    Answer: A, B, D

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

    Assertion (A): For a 3-variable function , if the sum-of-minterms is , then the product-of-maxterms is .

    Reason (R): The arithmetic sum of the minterm indices and the maxterm indices equals the total number of rows in the truth table, which is .

    1. A.

      Both A and R are true and R is the correct explanation of A.

    2. B.

      A is true but R is false.

    3. C.

      Both A and R are true but R is not the correct explanation of A.

    4. D.

      A is false but R is true.

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: Verify the mathematical truth of the Assertion, then check the Reason for conceptual and arithmetic accuracy.

    Step 1: Evaluate Assertion (A). For a 3-variable function, there are total rows (0 to 7). The minterm indices are . The maxterm indices must be the complement set: . Assertion (A) is TRUE.

    Step 2: Evaluate Reason (R). The reason claims the "arithmetic sum" of the indices equals 8. Let's calculate the arithmetic sum: .

    Step 3: The arithmetic sum is 28, not 8. The correct concept is that the <i>union of the sets</i> of indices contains exactly 8 elements. Reason (R) is FALSE due to a unit mismatch (confusing set union size with arithmetic sum).

    Answer: B

    Question 3 · Combinational Logic Circuits and Data Selectors NAT

    Consider the following assertion about hazard types in combinational circuits: "A 2-level Sum-of-Products (SOP) implementation of any Boolean function can exhibit all three types of hazards: static-1, static-0, and dynamic." To test the validity of this assertion, determine how many of these three hazard types can actually occur in a 2-level SOP circuit.

    Correct Answer:

    1.00

    Step-by-Step Solution

    Key idea: This is a hazard classification question testing which hazard types are possible in specific circuit structures. The assertion is invalid because not all hazard types can occur in all circuits.

    Step 1: Recall hazard types and their circuit requirements:

    • Static-1 hazard: Output should stay 1, glitches to 0. Occurs in SOP circuits.
    • Static-0 hazard: Output should stay 0, glitches to 1. Occurs in POS circuits.
    • Dynamic hazard: Output changes multiple times before settling. Requires 3+ gate levels.

    Step 2: Analyze the given circuit structure:

    • Circuit type: 2-level SOP (Sum-of-Products)
    • Gate levels: 2 (AND-OR structure)

    Step 3: Check each hazard type:

    • Static-1 hazard: Possible in SOP circuits ✓
    • Static-0 hazard: Requires POS structure, NOT possible in SOP ✗
    • Dynamic hazard: Requires 3+ gate levels, NOT possible in 2-level circuit ✗

    Step 4: Count possible hazards:

    • Only 1 out of 3 hazard types (static-1) can occur
    • The assertion is invalid

    Answer: 1.00 hazard type can occur in a 2-level SOP circuit.

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

    An SR flip-flop has two inputs and . One specific input combination is invalid (undefined output). What is the number of valid input combinations for the SR flip-flop?

    1. A.

      2

    2. B.

      3

    3. C.

      4

    4. D.

      5

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: This is a direct recall of the SR flip-flop characteristic table.

    Step 1: An SR flip-flop has two binary inputs, and . The total number of input combinations is : namely .

    Step 2: From the characteristic table:

    • : Hold (valid)
    • : Reset (valid)
    • : Set (valid)
    • : Undefined / Invalid

    Step 3: Excluding the one invalid combination , the number of valid combinations is .

    Answer: B