chapter
    Logic Short Notes for GATE CS

    GATE CS Logic: 4 chapters, 21 previous year questions (100% of Analytical Aptitude), 355 practice questions and one solved question from each chapter.

    A question from this chapter

    Question 1
    Level 3: Exam Standard

    Based on the following statements about a software system, determine how many of the listed conclusions MUST be true.

    Statement 1: If a module is tested, then it is documented.

    Statement 2: Some documented modules are reviewed.

    Statement 3: No untested module is documented.

    Conclusion I: Some tested modules are reviewed.

    Conclusion II: All reviewed modules are documented.

    Conclusion III: Some reviewed modules are tested.

    Question 2
    Level 3: Exam Standard

    Consider a triangle with its 3 corners and the 3 mid-points of its sides, making 6 distinct points in total. What is the maximum number of these points that can be selected such that no three selected points are collinear?

    Question 3
    Level 3: Exam Standard

    In a certain code language, the word is coded as and the word is coded as . Based on this coding scheme, determine which of the following statements is/are TRUE:

    I. The coding rule applies a uniform forward shift of to all letters after reversing the word.

    II. The middle letter of the reversed word is shifted backward by .

    III. The code for the word under this scheme is .

    Options:

    A. Only I and II

    B. Only II and III

    C. Only I and III

    D. I, II and III

    Question 4
    Level 3: Exam Standard

    An archipelago consists of 9 islands, labeled A through I, separated by a network of 14 navigable channels. Four bridges have already been constructed: between A and B, between B and C, between C and A, and between D and E. We need to build additional bridges so that it is possible to travel between any two island using only bridges. What is the minimum number of additional bridges required?

    Free preview ends here

    Login to view the complete short 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.

    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.

    Logic Short Notes for GATE CS

    GATE CS Logic: 4 chapters, 21 previous year questions (100% of Analytical Aptitude), 355 practice questions and one solved question from each chapter.

    About Logic Short Notes

    Quick revision sheets for Logic in GATE CS. Every chapter is condensed into key formulas, shortcuts and common traps so you can revise 4 chapters fast before the exam.

    Logic Weightage in GATE CS

    Logic accounts for 21 of 21 Analytical Aptitude previous year questions in our bank (100%), about 2.3 per paper across 9 papers.

    Logic Chapter Matrix

    ChapterTopicsPYQsShare of unit PYQsPractice questions
    Deductive Reasoning, Statements and SyllogismsPassage-Based Deductive Inference, Categorical Statements and Syllogisms, Conditional Logic and Contraposition838%125
    Relationships, Ordering and Arrangement PuzzlesFamily and Blood Relationships, Spatial Placement and Geometric Arrangements, Ordering, Ranking and Sequential Events, Grid Shading and Constraint Puzzles524%104
    Patterns, Series, Coding and AnalogiesLetter Coding and Decoding, Number Series and Array Patterns, Word and Functional Analogies524%78
    Graph, Route and Tournament ReasoningGraph Connectivity and Minimum Bridges, Knockout Tournament Elimination, Hamiltonian Routes and Round Trips314%48

    More from Analytical Aptitude

    One Solved Question from Each Logic Chapter

    Question 1 · Deductive Reasoning, Statements and Syllogisms MCQ

    Based on the following statements about a software system, determine how many of the listed conclusions MUST be true.

    Statement 1: If a module is tested, then it is documented.

    Statement 2: Some documented modules are reviewed.

    Statement 3: No untested module is documented.

    Conclusion I: Some tested modules are reviewed.

    Conclusion II: All reviewed modules are documented.

    Conclusion III: Some reviewed modules are tested.

    1. A.

      0

    2. B.

      1

    3. C.

      2

    4. D.

      3

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: This is a casework question on categorical and conditional statements, recognisable by the "how many MUST be true" format combined with conditional premises. The critical move is translating Statement 3 via its contrapositive to discover that two sets are actually equal.

    Step 1: Translate each statement into set relations.

    • Statement 1: Tested Documented.
    • Statement 2: Documented Reviewed (at least one module is both documented and reviewed).
    • Statement 3: "No untested module is documented" means if a module is not tested, then it is not documented. Symbolically: Tested Documented.

    Step 2: Apply the contrapositive to Statement 3.

    The contrapositive of Tested Documented is: Documented Tested.

    This means Documented Tested.

    Step 3: Combine with Statement 1.

    We have Tested Documented (from S1) and Documented Tested (from S3 contrapositive).

    Therefore: Tested Documented. These are exactly the same set.

    Step 4: Evaluate each conclusion.

    • Conclusion I: "Some tested modules are reviewed." Since Tested Documented, and Statement 2 says some documented modules are reviewed, it follows that some tested modules are reviewed. MUST be true.
    • Conclusion II: "All reviewed modules are documented." Statement 2 only says some documented modules are reviewed. It does not say that every reviewed module is documented. There could be reviewed modules outside the documented set. NOT necessarily true.
    • Conclusion III: "Some reviewed modules are tested." Since Tested Documented, and some documented modules are reviewed (S2), those same modules are both reviewed and tested. MUST be true.

    Step 5: Count. Exactly 2 conclusions (I and III) must be true.

    Common trap: Misreading Statement 3 as "No tested module is documented" (a sign error flipping "untested" to "tested"). This would make Tested Documented , which combined with S1 forces Tested , making both I and III false and yielding answer 0.

    Answer: 2

    Question 2 · Relationships, Ordering and Arrangement Puzzles MCQ

    Consider a triangle with its 3 corners and the 3 mid-points of its sides, making 6 distinct points in total. What is the maximum number of these points that can be selected such that no three selected points are collinear?

    1. A.

      2

    2. B.

      3

    3. C.

      4

    4. D.

      5

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: This is a maximum selection problem based on geometric collinearity. We must observe that each side of the triangle contains exactly 3 collinear points (2 corners and 1 mid-point).

    Step 1: Total points = 6. We want to find the maximum subset with no 3 collinear points.

    Step 2: Check if 5 is possible. If we select 5 points, we exclude exactly 1 point.

    • If we exclude a corner, the side opposite to it still contains its 2 corners and 1 mid-point (3 collinear points).
    • If we exclude a mid-point, the other two sides still contain their 2 corners and 1 mid-point each (3 collinear points each).

    Thus, any selection of 5 points will contain at least one full side, meaning 3 collinear points. So 5 is impossible.

    Step 3: Check if 4 is possible. We can select 2 corners and 2 mid-points, for example, .

    • Side contains only (since is excluded).
    • Side contains only (since is excluded).
    • Side contains only (since is excluded).

    No three points are collinear. Thus, 4 is possible.

    Answer: 4

    Question 3 · Patterns, Series, Coding and Analogies MCQ

    In a certain code language, the word is coded as and the word is coded as . Based on this coding scheme, determine which of the following statements is/are TRUE:

    I. The coding rule applies a uniform forward shift of to all letters after reversing the word.

    II. The middle letter of the reversed word is shifted backward by .

    III. The code for the word under this scheme is .

    Options:

    A. Only I and II

    B. Only II and III

    C. Only I and III

    D. I, II and III

    1. A.

      Only I and II

    2. B.

      Only II and III

    3. C.

      Only I and III

    4. D.

      I, II and III

    Correct Answer:

    B

    Step-by-Step Solution

    Key idea: This is a statement-truth verification question on a constrained reverse-shift pattern. Recognise it by checking if a simple reverse-and-shift holds uniformly; if it fails at a specific position, look for an exception constraint.

    Step 1: Test Statement I (Uniform Reverse Shift).

    Reverse to get .

    Apply shift: , , , , .

    Result: .

    The given code is . The third letter did not shift to ; it shifted to (which is ). Thus, Statement I is FALSE.

    Step 2: Test Statement II (Middle Letter Exception).

    In , the middle letter is (position 3). In the code , the middle letter is .

    Verify with : Reversed is . Shift except middle: , , , , .

    Result: . This matches the given code perfectly. Thus, Statement II is TRUE.

    Step 3: Test Statement III (Apply to ).

    Reverse to get .

    Apply shift except middle ():

    Result: . This matches Statement III. Thus, Statement III is TRUE.

    Answer: Only II and III are true.

    Question 4 · Graph, Route and Tournament Reasoning MCQ

    An archipelago consists of 9 islands, labeled A through I, separated by a network of 14 navigable channels. Four bridges have already been constructed: between A and B, between B and C, between C and A, and between D and E. We need to build additional bridges so that it is possible to travel between any two island using only bridges. What is the minimum number of additional bridges required?

    1. A.

      5

    2. B.

      4

    3. C.

      6

    4. D.

      8

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: This is a graph connectivity question where existing bridges contain a cycle. The trap is blindly subtracting the total bridge count from without recognising that one bridge in the cycle is redundant.

    Step 1: Model the 9 islands as vertices: A, B, C, D, E, F, G, H, I. So .

    Step 2: Trace existing bridges to identify connected components:

    • Bridges A–B, B–C, C–A form a cycle on {A, B, C} → one component.
    • Bridge D–E → one component {D, E}.
    • Islands F, G, H, I have no bridges → four isolated components.

    Total components .

    Step 3: To merge components into one connected network, we need exactly new bridges.

    Wrong path (Option B): A student computes and subtracts all 4 existing bridges: . This fails because the cycle A–B–C–A uses 3 bridges but only 2 are needed to connect those 3 islands. One bridge is redundant and does not reduce the component count. The correct method is to count components directly and apply .

    Generalization: When existing bridges contain cycles, blindly subtracting the bridge count from underestimates the answer. Always count components directly.

    Verification: Adding 5 bridges to connect 6 components merges them into 1 network. Total edges = 4 existing + 5 new = 9, which is (the extra 1 is the redundant cycle edge). All 9 islands are reachable.