GATE CS 2025, set 1 question paper
The official GATE CS 2025 set 1 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 (86 of 100 marks) on PrepWiser. 26 one-mark and 30 two-mark questions.
- Question types: 27 MCQ · 11 MSQ · 18 NAT
- General Aptitude: 9 questions, 13 marks
- Core CS: 47 questions, 73 marks
| Subject | Questions | Marks |
|---|---|---|
| Engineering Mathematics | 9 | 14 |
| General Aptitude | 9 | 13 |
| Computer Organization and Architecture | 5 | 8 |
| Operating System | 5 | 8 |
| Programming and Data Structures | 5 | 8 |
| Algorithms | 5 | 7 |
| Databases | 4 | 7 |
| Compiler Design | 4 | 6 |
| Digital Logic | 4 | 6 |
| Theory of Computation | 4 | 6 |
| Computer Networks | 2 | 3 |
General Aptitude
- Q1. Ravi had ______ younger brother who taught at ______ university. He was widely regarded…
- Q2. The CEO’s decision to downsize the workforce was considered myopic because it sacrificed…
- Q3. The average marks obtained by a class in an examination were calculated as 30.8…
- Q4. Consider the relationships among P, Q, R, S, and T: P is the brother of Q. S is the…
- Q5. According to the map shown in the figure, which one of the following statements is…
- Q6. “I put the brown paper in my pocket along with the chalks, and possibly other things. I…
- Q7. In the diagram, the lines QR and ST are parallel to each other. The shortest distance…
- Q8. A fair six-faced dice, with the faces labelled ‘1’, ‘2’, ‘3’, ‘4’, ‘5’, and ‘6’, is…
- Q10. A shop has 4 distinct flavors of ice-cream. One can purchase any number of scoops of any…
Computer Organization and Architecture
- Q11. Suppose a program is running on a non-pipelined single processor computer system. The…
- Q27. A partial data path of a processor is given in the figure, where RA, RB, and RZ are…
- Q36. Consider a memory system with 1M bytes of main memory and 16K bytes of cache memory…
- Q37. A processor has 64 general-purpose registers and 50 distinct instruction types. An…
- Q53. A computer has a memory hierarchy consisting of two-level cache (L1 and L2) and a main…
Compiler Design
- Q12. Which ONE of the following statements is FALSE regarding the symbol table?
- Q13. Which ONE of the following techniques used in compiler code optimization uses live…
- Q46. Which of the following statement(s) is/are TRUE while computing First and Follow during…
- Q52. Refer to the given 3-address code sequence. This code sequence is split into basic…
Operating System
- Q14. Consider a demand paging memory management system with 32-bit logical address, 20-bit…
- Q29. Suppose in a multiprogramming environment, the following C program segment is executed…
- Q38. A computer has two processors, M₁ and M₂. Four processes P₁, P₂, P₃, P₄ with CPU bursts…
- Q51. A disk of size 512M bytes is divided into blocks of 64K bytes. A file is stored in the…
- Q54. In optimal page replacement algorithm, information about all future page references is…
Databases
- Q15. A schedule of three database transactions T₁, T₂, and T₃ is shown. Rᵢ(A) and Wᵢ(A)…
- Q39. Consider two relations describing teams and players in a sports league: teams(tid…
- Q47. Consider a relational schema team(name, city, owner), with functional dependencies {name…
- Q55. Consider the following database tables of a sports league. player(pid,pname,age)…
Engineering Mathematics
- Q17. g(.) is a function from A to B, f(.) is a function from B to C, and their composition…
- Q23. Consider the given system of linear equations for variables x and y, where k is a…
- Q31. Consider the given function f(x). f(x) = ax + b for x < 1 ; x³ + x² + 1 for x ≥ 1 If the…
- Q32. A box contains 5 coins: 4 regular coins and 1 fake coin. When a regular coin is tossed…
- Q41. Let A be a 2 × 2 matrix as given. A = [1, 1; 1, -1] What are the eigenvalues of the…
- Q48. Which of the following predicate logic formulae/formula is/are CORRECT representation(s)…
- Q49. A = {0, 1, 2, 3, …} is the set of non-negative integers. Let F be the set of functions…
- Q56. Suppose a 5-bit message is transmitted from a source to a destination through a noisy…
- Q58. Consider a probability distribution given by the density function P(x). P(x) = Cx², for…
Algorithms
- Q18. Let G be any undirected graph with positive edge weights, and T be a minimum spanning…
- Q20. Consider the following recurrence relation: T(n) = 2T(n-1) + n2ⁿ for n > 0, T(0) = 1…
- Q33. The pseudocode of a function fun() is given below: fun(int A[0,…,n-1]) for i=0 to n-2…
- Q43. Let G(V,E) be an undirected and unweighted graph with 100 vertices. Let d(u,v) denote…
- Q64. The maximum value of x such that the edge between the nodes B and C is included in every…
Theory of Computation
- Q19. Consider the following context-free grammar G, where S, A, and B are the variables…
- Q28. A regular language L is accepted by a non-deterministic finite automaton (NFA) with n…
- Q45. Consider the following two languages over the alphabet {a, b, c}, where m and n are…
- Q50. Consider the following deterministic finite automaton (DFA) defined over the alphabet, Σ…
Computer Networks
- Q22. Consider the 3-way handshaking protocol for TCP connection establishment. Let the three…
- Q40. A packet with the destination IP address 145.36.109.70 arrives at a router whose routing…
Digital Logic
- Q24. Let X be a 3-variable Boolean function that produces output as '1' when at least two of…
- Q25. The number -6 can be represented as 1010 in 4-bit 2’s complement representation. Which…
- Q42. Consider the following four variable Boolean function in sum-of-product form F(b₃, b₂…
- Q59. Consider a finite state machine (FSM) with one input X and one output f, represented by…
Programming and Data Structures
- Q34. #include <stdio.h> void foo(int *p, int x){ *p=x; } int main(){ int *z; int a = 20, b =…
- Q35. The height of any rooted tree is defined as the maximum number of edges in the path from…
- Q61. #include <stdio.h> int foo(int S[],int size){ if(size == 0) return 0; if(size == 1)…
- Q62. Let LIST be a datatype for an implementation of linked list defined as follows: typedef…
- Q63. Consider the following C program: #include <stdio.h> int gate (int n) { int d, t…