GATE CS 2025, set 2 question paper
The official GATE CS 2025 set 2 paper, set by IIT Roorkee. PrepWiser has 56 of its questions, each with the answer from the official answer key.
Download free PDF with answer key
This paper in numbers
56 of the paper's 65 questions (85 of 100 marks) on PrepWiser. 27 one-mark and 29 two-mark questions.
- Question types: 30 MCQ · 14 MSQ · 12 NAT
- General Aptitude: 10 questions, 15 marks
- Core CS: 46 questions, 70 marks
| Subject | Questions | Marks |
|---|---|---|
| General Aptitude | 10 | 15 |
| Programming and Data Structures | 8 | 12 |
| Engineering Mathematics | 7 | 10 |
| Databases | 5 | 9 |
| Algorithms | 5 | 8 |
| Computer Organization and Architecture | 5 | 8 |
| Theory of Computation | 5 | 7 |
| Digital Logic | 3 | 5 |
| Compiler Design | 3 | 4 |
| Computer Networks | 3 | 4 |
| Operating System | 2 | 3 |
General Aptitude
- Q1. Despite his initial hesitation, Rehman’s ______ to contribute to the success of the…
- Q2. Bird : Nest :: Bee : ______ Select the correct option to complete the analogy.
- Q3. If Peˣ = Qe⁻ˣ for all real values of x, which one of the following statements is true?
- Q4. The paper as shown in the figure is folded to make a cube where each square corresponds…
- Q5. Let p₁ and p₂ denote two arbitrary prime numbers. Which one of the following statements…
- Q6. Based only on the conversation below, identify the logically correct inference: “Even if…
- Q7. If IMAGE and FIELD are coded as FHBNJ and EMFJG respectively then, which one among the…
- Q8. Which one of the following options is correct for the given data in the table? Iteration…
- Q9. In the given figure, PQRS is a square of side 2 cm and PLMN is a rectangle. The corner L…
- Q10. The diagram below shows a river system consisting of 7 segments, marked P, Q, R, S, T…
Engineering Mathematics
- Q11. If A = (1, 2; 2, -1), then which ONE of the following is A⁸ ?
- Q12. The value of x such that x > 1, satisfying the equation ∫₁ˣ t ln t dt = 1/4 is
- Q14. Let L, M, and N be non-singular matrices of order 3 satisfying the equations L² = L⁻¹, M…
- Q15. Let P(x) be an arbitrary predicate over the domain of natural numbers. Which ONE of the…
- Q42. Let F be the set of all functions from {1, …, n} to {0,1}. Define the binary relation on…
- Q44. Consider a system of linear equations PX = Q where P ∈ ℝ^(3× 3) and Q ∈ ℝ^(3× 1)…
- Q65. The unit interval (0,1) is divided at a point chosen uniformly distributed over (0,1) in…
Programming and Data Structures
- Q13. Consider a binary tree T in which every node has either zero or two children. Let n > 0…
- Q19. Consider the following C program: #include <stdio.h> void stringcopy(char *, char *)…
- Q33. int x=126,y=105; do { if(x>y) x=x-y; else y=y-x; } while(x!=y); printf("%d",x); The…
- Q35. Suppose the values 10, -4, 15, 30, 20, 5, 60, 19 are inserted in that order into an…
- Q38. A meld operation on two instances of a data structure combines them into one single…
- Q45. Consider a stack data structure into which we can PUSH and POP records. Assume that each…
- Q62. Consider the following C program: #include <stdio.h> int main(){ int a; int arr[5] =…
- Q63. Consider the following C program: #include <stdio.h> int g(int n) { return (n+10); } int…
Computer Networks
- Q17. Consider the routing protocols given in List I and the names given in List II : List I |…
- Q23. Consider a network that uses Ethernet and IPv4. Assume that IPv4 headers do not use any…
- Q36. Suppose we are transmitting frames between two nodes using Stop-and-Wait protocol. The…
Algorithms
- Q20. Consider an unordered list of N distinct integers. What is the minimum number of element…
- Q29. Which of the following statements regarding Breadth First Search (BFS) and Depth First…
- Q37. Let G be an edge-weighted undirected graph with positive edge weights. Suppose a…
- Q41. An array A of length n with distinct elements is said to be bitonic if there is an index…
- Q59. Consider the following algorithm someAlgo that takes an undirected graph G as input…
Compiler Design
- Q21. Consider the following statements about the use of backpatching in a compiler for…
- Q22. Given the following syntax directed translation rules: Rule 1: R → AB {B.i = R.i - 1…
- Q40. Given a Context-Free Grammar G as follows: S → Aa | bAc | dc | bdaA → d Which ONE of the…
Theory of Computation
- Q24. Which ONE of the following languages is accepted by a deterministic pushdown automaton?
- Q25. Let G₁, G₂ be Context Free Grammars (CFGs) and R be a regular expression. For a grammar…
- Q30. Consider the two lists List I and List II given below: List I | List II; (i) Context…
- Q52. Let Σ = {a, b, c}. For x ∈ Σ^*, and α ∈ Σ, let #_α(x) denote the number of occurrences…
- Q60. Let Σ = {1,2,3,4}. For x ∈ Σ^*, let prod(x) be the product of symbols in x modulo 7. We…
Operating System
- Q26. Processes P1, P2, P3, P4 arrive in that order at times 0, 1, 2, and 8 milliseconds…
- Q58. A computer system supports a logical address space of 2³² bytes. It uses two-level…
Databases
- Q27. An audit of a banking transactions system has found that on an earlier occasion, two…
- Q46. Consider the following relational schema along with all the functional dependencies that…
- Q53. Consider the database transactions T1 and T2, and data items X and Y. Which of the…
- Q54. Consider the following relational schema: Students (rollno: integer, name: string, age…
- Q57. In a B⁺- tree where each node can hold at most four key values, a root to leaf path…
Computer Organization and Architecture
- Q28. Which of the following is/are part of an Instruction Set Architecture of a processor?
- Q32. The following two signed 2's complement numbers (multiplicand M and multiplier Q) are…
- Q39. For a direct-mapped cache, 4 bits are used for the tag field and 12 bits are used to…
- Q56. A 5-stage instruction pipeline has stage delays of 180, 250, 150, 170, and 250…
- Q61. An application executes 6.4 × 10⁸ number of instructions in 6.3 seconds. There are four…