GATE CS Engineering Mathematics Previous Year Questions

60 solved GATE CS questions on Engineering Mathematics, drawn from 3 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

Engineering Mathematics: check hypotheses before applying a theorem

State the domain, continuity, or convergence condition a formula requires before substituting. These selected foundations connect calculus, linear algebra, probability, and discrete mathematics as they appear in the GATE CS syllabus. Each topic needs its own deeper study.

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

  • Limits, derivatives, and definite integrals of single-variable functions.
  • Matrix operations, determinants, and basic set and function notation.

Concepts to revise before solving

Propositional and predicate logic

A proposition has a fixed truth value. p → q is false only when p is true and q is false; it is vacuously true when p is false. Predicate logic quantifies over a domain: ∀x P(x) fails if any element violates P; ∃x P(x) succeeds if any element satisfies P.

Check yourself: Have you checked the implication when the antecedent is false?

Combinatorics and recurrences

C(n, k) = n!/(k!(n−k)!) counts selections without order. Recurrences define sequences through prior terms. Solve by finding a closed-form solution that satisfies both the recurrence and initial conditions. The Master Theorem applies to specific divide-and-conquer forms.

Check yourself: Does your base case produce the correct initial value?

Calculus: limits, continuity, and integration

A function is continuous at a point when its limit equals its value. A definite integral computes net signed area. Integration by parts and substitution require matching differentials. Verify convergence before evaluating an improper integral.

Check yourself: Is the integrand defined and continuous on the interval, including endpoints?

Graph theory fundamentals

A simple graph with n vertices and m edges satisfies the handshaking lemma: the degree sum equals 2m. A tree on n vertices has exactly n − 1 edges. An Euler circuit exists when every vertex has even degree and the graph is connected. Distinguish paths, walks, and circuits.

Check yourself: Are you counting edges or vertices, and is the graph connected?

Probability for CS

For equally likely outcomes, probability is favorable/total. Use conditional probability P(A|B) = P(A ∩ B)/P(B) and distinguish independence from mutual exclusivity. Expected value is linear: E(X + Y) = E(X) + E(Y) regardless of dependence.

Check yourself: Are the outcomes truly equally likely under your counting?

Mistakes to avoid

Applying a combinatorial formula without checking whether order matters.
Permutations count ordered arrangements; combinations do not. Identify which the problem requires.
Treating a vacuously true implication as a meaningful claim.
p → q is true whenever p is false, regardless of q. This is logical truth, not evidence for q.
Summing probabilities of non-mutually-exclusive events without subtracting the overlap.
Use P(A ∪ B) = P(A) + P(B) − P(A ∩ B); direct addition overcounts.

Original teaching example · not a PYQ

Work through the reasoning

Original mini-example: a connected simple graph has 6 vertices. Every vertex has degree 2. How many edges does it have, and does it admit an Euler circuit?

  1. By the handshaking lemma, 2m = sum of degrees = 6 × 2 = 12, so m = 6 edges.
  2. Every vertex has even degree (2), and the graph is connected.
  3. Both conditions for an Euler circuit are met: connected and all vertices even-degree.
  4. The graph is a 6-cycle. The Euler circuit traverses each edge exactly once and returns to the start.

6 edges; yes, an Euler circuit exists.

Try it before reading the answer

How many distinct ways can you choose 3 items from a set of 5 when order does not matter?

Show answer and reasoning

C(5, 3) = 10.

C(5, 3) = 5!/(3! × 2!) = 120/(6 × 2) = 10. The permutation count P(5, 3) = 60 would overcount by 3! = 6 because it distinguishes order.

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 202624 questions

  1. Set 1 Q10An unbiased six-faced dice whose faces are marked with numbers 1, 2, 3, 4, 5, and 6 is rolled twice in succession and the number on the top face is recorded…MCQ · +2 marks · Easy
  2. Set 1 Q11An urn contains one red ball and one blue ball. At each step, a ball is picked uniformly at random from the urn, and this ball together with another ball of…MCQ · +1 marks · Medium
  3. Set 1 Q12Consider 4×44 \times 4 matrices with their elements from {0,1}\{0, 1\}. The number of such matrices with even number of 1s in every row and every column isMCQ · +1 marks · Hard
  4. Set 1 Q13For n>1n > 1, the maximum multiplicity of any eigenvalue of an n×nn \times n matrix with elements from R\mathbb{R} isMCQ · +1 marks · Easy
  5. Set 1 Q20Let n>1n > 1. Consider an n×nn \times n matrix MM with its elements from R\mathbb{R}. Let the vector (0,1,0,0,…,0)∈Rn(0, 1, 0, 0, \dots, 0) \in \mathbb{R}^n be in the null…MSQ · +1 marks · Medium
  6. Set 1 Q32Consider the function f:R→Rf: \mathbb{R} \to \mathbb{R} defined as follows:…NAT · +1 marks · Medium
  7. Set 1 Q46Let f:R→Rf: \mathbb{R} \rightarrow \mathbb{R} be defined as follows: f(x)=(∣x∣2−x)(x−∣x∣2)f(x) = \left(\frac{|x|}{2} - x\right)\left(x - \frac{|x|}{2}\right) Which of the…MSQ · +2 marks · Hard
  8. Set 1 Q47Let G(V, E) be a simple, undirected graph. A vertex cover of GG is a subset V′⊆VV' \subseteq V such that for every (u,v)∈E(u, v) \in E, u∈V′u \in V' or v∈V′v \in V'.…MSQ · +2 marks · Medium
  9. Set 1 Q55An undirected, unweighted, simple graph G(V, E) is said to be 2-colorable if there exists a function c:V→{0,1}c: V \to \{0, 1\} such that for every…MSQ · +2 marks · Medium
  10. Set 1 Q57Let GG be an undirected graph, which is a path on 8 vertices. The number of matchings in GG is ______. (answer in integer)NAT · +2 marks · Medium
  11. Set 1 Q58Let XX be a random variable which takes values in the set {1,2,3,4,5,6,7,8}\{1, 2, 3, 4, 5, 6, 7, 8\}. Further, Pr(X=1)=Pr(X=2)=Pr(X=5)=Pr(X=7)=16Pr(X = 1) = Pr(X = 2) = Pr(X = 5) = Pr(X = 7) = \frac{1}{6}…NAT · +2 marks · Easy
  12. Set 2 Q3A day can only be cloudy or sunny. The probability of a day being cloudy is 0.50.5, independent of the condition on other days. What is the probability that in…MCQ · +1 marks · Easy
  13. Set 2 Q5‘When it is raining, peacocks dance.’ Based only on this sentence, which one of the following options is necessarily true?MCQ · +1 marks · Easy
  14. Set 2 Q8Figures (i) and (ii) represent intercity highway systems. The black dots represent cities and the line segments between them represent intercity highways. A…MCQ · +2 marks · Medium
  15. Set 2 Q10An unbiased six-faced dice whose faces are marked with numbers 1, 2, 3, 4, 5, and 6 is rolled twice in succession and the number on the top face is recorded…MCQ · +2 marks · Easy
  16. Set 2 Q11For two different persons xx and yy, the predicate M(x,y)M(x, y) denotes that xx knows yy. Consider the following statement. *There is a person who does not…MCQ · +1 marks · Medium
  17. Set 2 Q14The probability density function f(x)f(x) of a random variable XX which takes real values is…MCQ · +1 marks · Easy
  18. Set 2 Q26Let RR be a binary relation on the set {1,2,…,10}\{1, 2, \dots, 10\}, where (x,y)∈R(x, y) \in R if the product of xx and yy is square of an integer. Which of the…MSQ · +1 marks · Medium
  19. Set 2 Q27For a real number aa, let I(a)=∫−11(3x2−ax+1)dxI(a) = \int_{-1}^{1} (3x^2 - ax + 1) dx. Which of the following statements is/are true?MSQ · +1 marks · Easy
  20. Set 2 Q31Consider the system of linear equations given below. ax+y=bax + y = b 16x+ay=2416x + ay = 24 Suppose the values of aa and bb are chosen such that the system of…NAT · +1 marks · Medium
  21. Set 2 Q36Consider a complete graph KnK_n with nn vertices (n>4n > 4). Note that multiple spanning trees can be constructed over KnK_n. Each of these spanning trees is…MCQ · +2 marks · Medium
  22. Set 2 Q62The determinant of a 4×44 \times 4 matrix AA is 3. The value of the determinant of 2A2A is ____________. (answer in integer)NAT · +2 marks · Easy
  23. Set 2 Q63Suppose an unbiased coin is tossed 6 times. Each coin toss is independent of all previous coin tosses. Let E1E_1 be the event that among the second, fourth,…NAT · +2 marks · Hard
  24. Set 2 Q64Consider a function f:(0,1)→{0,1}f: (0,1) \rightarrow \{0, 1\} defined as follows. For a real number r∈(0,1)r \in (0,1), f(r)=1f(r) = 1 if the second digit after the decimal point…NAT · +2 marks · Hard

GATE CS 202524 questions

  1. Set 1 Q8A fair six-faced dice, with the faces labelled ‘1’, ‘2’, ‘3’, ‘4’, ‘5’, and ‘6’, is rolled thrice. What is the probability of rolling ‘6’ exactly once?MCQ · +2 marks · Easy
  2. Set 1 Q10A shop has 4 distinct flavors of ice-cream. One can purchase any number of scoops of any flavor. **The order in which the scoops are purchased is…MCQ · +2 marks · Medium
  3. Set 1 Q17g(⋅)g(\cdot) is a function from AA to BB, f(⋅)f(\cdot) is a function from BB to CC, and their composition defined as f(g(⋅))f(g(\cdot)) is a mapping from AA to…MCQ · +1 marks · Medium
  4. Set 1 Q18Let GG be any undirected graph with positive edge weights, and TT be a minimum spanning tree of GG. For any two vertices, uu and vv, let d1(u,v)d_1(u, v) and…MCQ · +1 marks · Easy
  5. Set 1 Q20Consider the following recurrence relation: T(n)=2T(n−1)+n2n for n>0,T(0)=1.T(n) = 2T(n - 1) + n 2^n \text{ for } n > 0, T(0) = 1. Which ONE of the following options is CORRECT?MCQ · +1 marks · Medium
  6. Set 1 Q23Consider the given system of linear equations for variables xx and yy, where kk is a real-valued constant. Which of the following option(s) is/are CORRECT?…MSQ · +1 marks · Medium
  7. Set 1 Q30Let SS be the set of all ternary strings defined over the alphabet {a,b,c}\{a, b, c\}. Consider all strings in SS that contain at least one occurrence of two…NAT · +1 marks · Medium
  8. Set 1 Q31Consider the given function f(x)f(x). f(x)={ax+bfor x<1x3+x2+1for x≥1f(x) = \begin{cases} ax + b & \text{for } x < 1 \\ x^3 + x^2 + 1 & \text{for } x \geq 1 \end{cases} If the function is…NAT · +1 marks · Easy
  9. Set 1 Q32A box contains 5 coins: 4 regular coins and 1 fake coin. When a regular coin is tossed, the probability P(head)=0.5P(\text{head}) = 0.5 and for a fake coin,…NAT · +1 marks · Medium
  10. Set 1 Q41Let AA be a 2×22 \times 2 matrix as given. A=[111−1]A = \begin{bmatrix} 1 & 1 \\ 1 & -1 \end{bmatrix} What are the eigenvalues of the matrix A13A^{13} ?MCQ · +2 marks · Medium
  11. Set 1 Q48Which of the following predicate logic formulae/formula is/are CORRECT representation(s) of the statement: “Everyone has exactly one mother”? The meanings of…MSQ · +2 marks · Medium
  12. Set 1 Q49A={0,1,2,3,… }A = \{0, 1, 2, 3, \dots \} is the set of non-negative integers. Let F\mathcal{F} be the set of functions from AA to itself. For any two functions,…MSQ · +2 marks · Medium
  13. Set 1 Q56Suppose a 55-bit message is transmitted from a source to a destination through a noisy channel. The probability that a bit of the message gets flipped during…NAT · +2 marks · Easy
  14. Set 1 Q58Consider a probability distribution given by the density function P(x)P(x).…NAT · +2 marks · Easy
  15. Set 1 Q64The maximum value of xx such that the edge between the nodes B and C is included in every minimum spanning tree of the given graph is _________ . (answer in…NAT · +2 marks · Medium
  16. Set 2 Q10The diagram below shows a river system consisting of 7 segments, marked P, Q, R, S, T, U, and V. It splits the land into 5 zones, marked Z1, Z2, Z3, Z4, and…MCQ · +2 marks · Medium
  17. Set 2 Q11If A=(122−1)A = \begin{pmatrix} 1 & 2 \\ 2 & -1 \end{pmatrix}, then which ONE of the following is A8A^8 ?MCQ · +1 marks · Easy
  18. Set 2 Q12The value of xx such that x>1x > 1, satisfying the equation ∫1xtln⁡t dt=14\int_{1}^{x} t \ln t \, dt = \frac{1}{4} isMCQ · +1 marks · Medium
  19. Set 2 Q14Let L,M,L, M, and NN be non-singular matrices of order 3 satisfying the equations L2=L−1,M=L8 and N=L2.L^2 = L^{-1}, M = L^8 \text{ and } N = L^2. Which ONE of the following is…MCQ · +1 marks · Easy
  20. Set 2 Q15Let P(x)P(x) be an arbitrary predicate over the domain of natural numbers. Which ONE of the following statements is TRUE?MCQ · +1 marks · Medium
  21. Set 2 Q42Let F\mathcal{F} be the set of all functions from {1,…,n}\{1, \dots, n\} to {0,1}\{0, 1\}. Define the binary relation ≼\preccurlyeq on F\mathcal{F} as follows:…MSQ · +2 marks · Medium
  22. Set 2 Q44Consider a system of linear equations PX=QPX = Q where P∈R3×3P \in \mathbb{R}^{3 \times 3} and Q∈R3×1Q \in \mathbb{R}^{3 \times 1}. Suppose PP has an LU decomposition,…MSQ · +2 marks · Medium
  23. Set 2 Q64A quadratic polynomial (x−α)(x−β)(x - \alpha)(x - \beta) over complex numbers is said to be square invariant if…NAT · +2 marks · Hard
  24. Set 2 Q65The unit interval (0,1)(0,1) is divided at a point chosen uniformly distributed over (0,1)(0,1) in R\mathbb{R} into two disjoint subintervals. The expected length…NAT · +2 marks · Hard

GATE CS 202412 questions

  1. Set 1 Q11Let f:R→Rf: \mathbb{R} \rightarrow \mathbb{R} be a function such that f(x)=max⁡{x,x3},x∈Rf(x) = \max\{x, x^3\}, x \in \mathbb{R}, where R\mathbb{R} is the set of all real…MCQ · +1 marks · Medium
  2. Set 1 Q12The product of all eigenvalues of the matrix [123456789]\begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{bmatrix} isMCQ · +1 marks · Easy
  3. Set 1 Q14Consider a permutation sampled uniformly at random from the set of all permutations of {1,2,3,…,n}\{1, 2, 3, \dots, n\} for some n≥4n \geq 4. Let XX be the event that 1…MCQ · +1 marks · Medium
  4. Set 1 Q27Let AA and BB be two events in a probability space with P(A)=0.3P(A) = 0.3, P(B)=0.5P(B) = 0.5, and P(A∩B)=0.1P(A \cap B) = 0.1. Which of the following statements is/are TRUE?MSQ · +1 marks · Medium
  5. Set 1 Q32Let AA and BB be non-empty finite sets such that there exist one-to-one and onto functions (i) from AA to BB and (ii) from A×AA \times A to A∪BA \cup B. The…NAT · +1 marks · Medium
  6. Set 1 Q34The number of spanning trees in a complete graph of 4 vertices labelled A, B, C, and D is _________NAT · +1 marks · Easy
  7. Set 1 Q49Let AA be any n×mn \times m matrix, where m>nm > n. Which of the following statements is/are TRUE about the system of linear equations Ax=0Ax = \mathbf{0} ?MSQ · +2 marks · Hard
  8. Set 1 Q51The chromatic number of a graph is the minimum number of colours used in a proper colouring of the graph. Let GG be any graph with nn vertices and…MSQ · +2 marks · Medium
  9. Set 1 Q52Consider the operators ⋄\diamond and □\Box defined by a⋄b=a+2ba \diamond b = a + 2b, a□b=aba \Box b = ab, for positive integers. Which of the following statements…MSQ · +2 marks · Medium
  10. Set 1 Q63A bag contains 10 red balls and 15 blue balls. Two balls are drawn randomly without replacement. Given that the first ball drawn is red, the probability…NAT · +2 marks · Easy
  11. Set 2 Q3In an engineering college of 10,000 students, 1,500 like neither their core branches nor other branches. The number of students who like their core branches is…MCQ · +1 marks · Easy
  12. Set 2 Q12Let pp and qq be the following propositions: pp: Fail grade can be given. qq: Student scores more than 50% marks. Consider the statement: "Fail grade…MCQ · +1 marks · Easy

Other GATE CS topics

Continue learning with Success Tracker

Keep working on Engineering Mathematics

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.