chapter
    Engineering Mathematics PYQs for GATE CS

    GATE CS Engineering Mathematics: 4 units and 19 chapters, weightage from 105 previous year questions across 10 papers, a study order by exam weight and 1656 p

    A question from this chapter

    Question 1
    2026 Slot Set2 PYQ
    Level 3: Exam Standard
    For two different persons and , the predicate denotes that x knows y. Consider the following statement.

    There is a person who does not know anyone else, but that person is known by everyone else.

    Which one of the following expressions represents the above statement?
    Question 2
    2026 Slot Set2 PYQ
    Level 3: Exam Standard

    Let be a binary relation on the set , where if the product of and is square of an integer. Which of the following properties is/are satisfied by ?

    Question 3
    2026 Slot Set1 PYQ
    Level 3: Exam Standard

    Consider matrices with their elements from . The number of such matrices with even number of s in every row and every column is

    Question 4
    2023 PYQ
    Level 3: Exam Standard
    The Lucas sequence is defined by the recurrence relation:


    with and .

    Which one of the options given is TRUE?
    Question 5
    2025 Slot Set1 PYQ
    Level 3: Exam Standard
    is the set of non-negative integers. Let be the set of functions from to itself. For any two functions, , we define


    for every number in . Which of the following is/are CORRECT about the mathematical structure ?
    Question 6
    2026 Slot Set2 PYQ
    Level 3: Exam Standard
    Consider a complete graph with vertices . Note that multiple spanning trees can be constructed over . Each of these spanning trees is represented as a set of edges. The Jaccard coefficient between any two sets is defined as the ratio of the size of the intersection of the two sets to the size of the union of the two sets.

    Which one of the following options gives the lowest possible value for the Jaccard coefficient between any two spanning trees of ?
    Question 7
    2026 Slot Set1 PYQ
    Level 3: Exam Standard
    Let be a simple, undirected graph. A vertex cover of is a subset such that for every , or . Let the size of the smallest vertex cover in be . Let be any vertex cover of size .

    For a vertex , which of the following constraints will always ensure that ?
    Question 8
    2026 Slot Set2 PYQ
    Level 3: Exam Standard
    Consider the system of linear equations given below.



    Suppose the values of and are chosen such that the system of linear equations produce multiple solutions. Then the product of and is __________. (answer in integer)
    Free preview ends here

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

    Engineering Mathematics PYQs for GATE CS

    GATE CS Engineering Mathematics: 4 units and 19 chapters, weightage from 105 previous year questions across 10 papers, a study order by exam weight and 1656 practice questions.

    About Engineering Mathematics Previous Year Questions (PYQs)

    105 previous year questions from Engineering Mathematics in GATE CS, grouped by chapter with the exam year, answer key and step-by-step solution for each.

    GATE CS Engineering Mathematics Unit-wise Weightage from Past Papers

    We counted every GATE CS Engineering Mathematics previous year question in our bank (105 questions from 10 papers) and grouped them by unit.

    UnitChaptersPYQsShare of sectionAvg per paper
    Discrete Mathematics74745%4.7
    Linear Algebra42019%2
    Calculus31312%1.3
    Probability and Statistics52524%2.5

    Suggested Engineering Mathematics Study Order for GATE CS

    1. Discrete Mathematics: 45% of past Engineering Mathematics questions, about 4.7 per paper.
    2. Probability and Statistics: 24% of past Engineering Mathematics questions, about 2.5 per paper.
    3. Linear Algebra: 19% of past Engineering Mathematics questions, about 2 per paper.
    4. Calculus: 12% of past Engineering Mathematics questions, about 1.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 Engineering Mathematics

    All Engineering Mathematics chapters

    One Solved Question from Each Engineering Mathematics Chapter

    Question 1 · Logic and Proof Techniques · 2026_Set2 MCQ
    For two different persons and , the predicate denotes that x knows y. Consider the following statement.

    There is a person who does not know anyone else, but that person is known by everyone else.

    Which one of the following expressions represents the above statement?
    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: This is a nested quantifier translation question, recognizable because it describes a specific relational property ("knows") among a domain of people using phrases like "There is a person" and "everyone else".

    Step 1: Identify the core components.

    "There is a person" . Let this person be .

    "who does not know anyone else" For all , does not know . This is .

    "but that person is known by everyone else" For all , knows . This is .

    Step 2: Combine the conditions for "everyone else".

    For any , if , then both conditions must hold: .

    This translates to: .

    Step 3: Attach the outer quantifier.

    "There is a person " wraps around the above:

    .

    Step 4: Match with options.

    Option A matches this exactly.

    Answer: A

    Question 2 · Sets, Relations, Functions and Order Structures · 2026_Set2 MSQ

    Let be a binary relation on the set , where if the product of and is square of an integer. Which of the following properties is/are satisfied by ?

    1. A.

      Reflexive

    2. B.

      Symmetric

    3. C.

      Transitive

    4. D.

      Antisymmetric

    Correct Answer:

    ["A","B","C"]

    Step-by-Step Solution

    Key idea: This is a relation properties question, recognizable by the condition that the product of two elements is a perfect square.

    Step 1: Check Reflexivity. For any , , which is a perfect square. Thus, . Reflexive is TRUE.

    Step 2: Check Symmetry. If , then . Since multiplication is commutative, , so . Symmetric is TRUE.

    Step 3: Check Transitivity. Suppose and . Then and for some integers . We need to check if is a perfect square. Notice that . For to be an integer square, must divide . Let the prime factorization of have . Since , (where ). Similarly, (where ). We need . This is always true because if , then , which contradicts and . Thus, always divides , making an integer. Therefore, is always a perfect square. Transitive is TRUE.

    Step 4: Check Antisymmetry. since , and , but . Thus, it is NOT antisymmetric.

    Answer: Options A, B, and C.

    Question 3 · Combinatorics and Counting · 2026_Set1 MCQ

    Consider matrices with their elements from . The number of such matrices with even number of s in every row and every column is

    1. A.

      512

    2. B.

      1025

    3. C.

      1023

    4. D.

      255

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: This is a binary matrix counting problem with parity constraints, recognizable by the requirement of an "even number of 1s in every row and every column". We solve this by determining the degrees of freedom in the matrix.

    Step 1: Consider the top-left submatrix (rows 1-3, columns 1-3). The entries in this submatrix can be chosen completely freely.

    Number of ways to fill this block = .

    Step 2: Determine the remaining cells in the first 3 rows.

    For each of the first 3 rows, the entry in the 4th column is uniquely forced to make the row sum even.

    Step 3: Determine the remaining cells in the first 3 columns.

    For each of the first 3 columns, the entry in the 4th row is uniquely forced to make the column sum even.

    Step 4: Determine the bottom-right cell (row 4, column 4).

    This cell must satisfy both the 4th row parity and the 4th column parity. In a binary matrix, the sum of all row parities equals the sum of all column parities (both equal the total sum of all elements mod 2). Thus, the two constraints on the bottom-right cell are perfectly consistent, and it is uniquely determined.

    Step 5: Calculate the total.

    Since all other cells are uniquely determined by the free choices in the submatrix, the total number of valid matrices is exactly 512.

    Answer: A

    Question 4 · Recurrences and Generating Functions · 2023 MCQ
    The Lucas sequence is defined by the recurrence relation:


    with and .

    Which one of the options given is TRUE?
    1. A.

    2. B.

    3. C.

    4. D.

    Correct Answer:

    A

    Step-by-Step Solution

    Insight: This is a second-order linear homogeneous recurrence. The characteristic roots are the golden ratio and its conjugate, and the initial conditions perfectly match the sum of their powers.

    Exam route: Write the characteristic equation . The roots are and . Notice that and . These exactly match and . Thus, the coefficients are both 1.

    Learning route:

    Step 1: Identify the recurrence type. The relation is a linear homogeneous recurrence with constant coefficients.

    Step 2: Form the characteristic equation. Rewrite as . The characteristic equation is .

    Step 3: Find the roots. Using the quadratic formula, . Let and .

    Step 4: Write the general solution. Since the roots are distinct, .

    Step 5: Apply initial conditions.

    For : .

    For : .

    We know (sum of roots) and (product of roots).

    Calculate .

    Comparing this with the condition, we see that and is a valid solution.

    Step 6: Verify with . , which matches .

    Therefore, the closed form is .

    Answer: A

    Question 5 · Algebraic Structures and Groups · 2025_Set1 MSQ
    is the set of non-negative integers. Let be the set of functions from to itself. For any two functions, , we define


    for every number in . Which of the following is/are CORRECT about the mathematical structure ?
    1. A.

      is an Abelian group.

    2. B.

      is an Abelian monoid.

    3. C.

      is a non-Abelian group.

    4. D.

      is a non-Abelian monoid.

    Correct Answer:

    ["B"]

    Step-by-Step Solution

    Insight: Pointwise operations inherit algebraic properties from the base set. The base set here is non-negative integers under addition, which forms a monoid but not a group.

    Exam route: Check the axioms in order. Closure: sum of non-negative integers is non-negative (Yes). Associativity: inherited from integer addition (Yes). Identity: the zero function maps (Yes). Inverses: for , the inverse would need (No). Commutativity: integer addition is commutative (Yes). Thus, it is an Abelian monoid.

    Learning route:

    1. The set contains functions where .
    2. The operation is .
    3. Since and , their sum is , so the result is in . Closure holds.
    4. Associativity and commutativity follow directly from the properties of standard addition.
    5. The identity is the constant function . Since , .
    6. For inverses, consider . We need such that . But , so . Inverses fail.

    Conclusion: It is an Abelian monoid.

    Question 6 · Graph Fundamentals, Trees and Connectivity · 2026_Set2 MCQ
    Consider a complete graph with vertices . Note that multiple spanning trees can be constructed over . Each of these spanning trees is represented as a set of edges. The Jaccard coefficient between any two sets is defined as the ratio of the size of the intersection of the two sets to the size of the union of the two sets.

    Which one of the following options gives the lowest possible value for the Jaccard coefficient between any two spanning trees of ?
    1. A.

    2. B.

    3. C.

      0

    4. D.

    Correct Answer:

    C

    Step-by-Step Solution

    Key idea: This is a Jaccard coefficient minimization question on spanning trees of , recognisable because it asks for the lowest possible Jaccard value between two spanning trees.

    Why this method applies: The Jaccard coefficient . To minimize , we minimize the intersection. The question is whether two edge-disjoint spanning trees can exist in .

    Step 1: Each spanning tree of has exactly edges. Two disjoint trees need distinct edges.

    Step 2: has edges. For two disjoint spanning trees to exist, we need:

    Step 3: Since the problem states , the condition is satisfied. Therefore, contains two completely edge-disjoint spanning trees.

    Step 4: When , the Jaccard coefficient is:

    Step 5: Check the options. Option C gives 0, which is achievable.

    Answer: C

    Question 7 · Graph Coloring, Covers, Matrices and Special Graphs · 2026_Set1 MSQ
    Let be a simple, undirected graph. A vertex cover of is a subset such that for every , or . Let the size of the smallest vertex cover in be . Let be any vertex cover of size .

    For a vertex , which of the following constraints will always ensure that ?
    1. A.

      The degree of is at least

    2. B.

      The vertex is on a path of length

    3. C.

      The vertex is on a cycle of length

    4. D.

      The vertex is a part of a clique of size

    Correct Answer:

    ["A"]

    Step-by-Step Solution

    Insight: If a vertex has degree , excluding it from the vertex cover forces all its neighbors into the cover, requiring at least vertices, which contradicts the cover size being .

    Exam route: Test the degree condition. If is not in , its neighbors must be. If , , a contradiction. Thus must be in .

    Learning route:

    1. Option A: True. If , all neighbors must be in to cover the edges incident to . Since , this requires , contradicting . Thus, must be in .
    2. Option B: False. Consider a path of length 3 (4 vertices: ). The minimum vertex cover size is (e.g., ). Vertex is on the path but not in .
    3. Option C: False. Consider a cycle of length 3 (). The minimum vertex cover size is (e.g., ). Vertex is on the cycle but not in .
    4. Option D: False. Consider a clique of size 3 (). The minimum vertex cover size is (e.g., ). Vertex is part of the clique but not in .
    Question 8 · Systems of Linear Equations and LU Decomposition · 2026_Set2 NAT
    Consider the system of linear equations given below.



    Suppose the values of and are chosen such that the system of linear equations produce multiple solutions. Then the product of and is __________. (answer in integer)
    Correct Answer:

    24

    Step-by-Step Solution

    Key idea: This is a parameterized system question asking for infinite solutions. It is recognisable because it uses parameters and in the coefficients and constants, and explicitly states the system has "multiple solutions".

    Step 1: Write down the condition for infinite solutions in a 2x2 system.

    For the system and to have infinitely many solutions, the two equations must represent the same line. This means their coefficients and constants must be strictly proportional:

    .

    Step 2: Apply the proportionality condition to the given system.

    The system is:

    So, .

    Step 3: Solve for .

    From the first equality: or .

    Step 4: Solve for in both cases.

    Case 1: .

    .

    The product .

    Case 2: .

    .

    The product .

    Step 5: Conclude the final answer.

    In both valid scenarios, the product is exactly 24.

    Answer: 24