GATE CSE 2025 Set 1 Question Paper with Solutions & Answer Key
All 65 questions of the GATE CSE 2025 Set 1 paper (100 marks: 30 one-mark and 35 two-mark; 30 MCQ, 13 MSQ, 22 NAT), with the answer key and a verified solution for each. See more GATE CSE question papers or all GATE CSE PYQs.
- Questions
- 65
- Total marks
- 100
- MCQ / MSQ / NAT
- 30 / 13 / 22
- Topics
- 49
GATE CSE 2025 Set 1 paper analysis
General Aptitude and Engineering Mathematics together made up 30 of 100 marks, down 1 from GATE CSE 2024 Set 1. 22 of 65 questions were NAT, the most since 2020. Quantitative Aptitude was the heaviest single topic with 7 marks across 4 questions. Algorithms moved the most against GATE CSE 2024 Set 1: up 4 marks.
All GATE CSE 2025 Set 1 questions
Each question opens its full verified solution.
- Q1 · MCQ · 1 mark · Verbal AptitudeRavi had … younger brother who taught at … university. He was widely regarded as … honorable man. Select the option with the correct sequence of articles to fill in the…
- Q2 · MCQ · 1 mark · Verbal AptitudeThe CEO’s decision to downsize the workforce was considered myopic because it sacrificed long-term stability to accommodate short-term gains. Select the most appropriate…
- Q3 · MCQ · 1 mark · Quantitative AptitudeThe average marks obtained by a class in an examination were calculated as 30.8. However, while checking the marks entered, the teacher found that the marks of one stude…
- Q4 · MCQ · 1 mark · Analytical AptitudeConsider the relationships among P, Q, R, S, and T: • P is the brother of Q. • S is the daughter of Q. • T is the sister of S. • R is the mother of Q. The following stat…
- Q5 · MCQ · 1 mark · Spatial AptitudeAccording to the map shown in the figure, which one of the following statements is correct? Note: The figure shown is representative.
- Q6 · MCQ · 2 marks · Reading Comprehension“I put the brown paper in my pocket along with the chalks, and possibly other things. I suppose every one must have reflected how primeval and how poetical are the thing…
- Q7 · MCQ · 2 marks · Quantitative AptitudeIn the diagram, the lines QR and ST are parallel to each other. The shortest distance between these two lines is half the shortest distance between the point P and line…
- Q8 · MCQ · 2 marks · Quantitative AptitudeA 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?
- Q9 · MCQ · 2 marks · Spatial AptitudeA square paper, shown in figure (I), is folded along the dotted lines as shown in the figures (II) and (III). Then a few cuts are made as shown in figure (IV). Which one…
- Q10 · MCQ · 2 marks · Quantitative AptitudeA 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 inconsequential. If one w…
- Q11 · MCQ · 1 mark · I/O Interface, Interrupts and DMASuppose a program is running on a non-pipelined single processor computer system. The computer is connected to an external device that can interrupt the processor asynch…
- Q12 · MCQ · 1 mark · Lexical AnalysisWhich ONE of the following statements is FALSE regarding the symbol table?
- Q13 · MCQ · 1 mark · Data Flow AnalysesWhich ONE of the following techniques used in compiler code optimization uses live variable analysis?
- Q14 · MCQ · 1 mark · Memory Management and Virtual MemoryConsider a demand paging memory management system with 32-bit logical address, 20-bit physical address, and page size of 2048 bytes. Assuming that the memory is byte add…
- Q15 · MCQ · 1 mark · Transactions and Concurrency ControlA schedule of three database transactions T1, T2, and T3 is shown. Ri(A) and Wi(A) denote read and write of data item A by transaction Ti, i = 1,2,3. The transaction T1…
- Q16 · MCQ · 1 mark · Principles of LayeringIdentify the ONE CORRECT matching between the OSI layers and their corresponding functionalities as shown.
- Q17 · MCQ · 1 mark · Discrete Mathematicsg(.) is a function from A to B, f(.) is a function from B to C, and their composition defined as f(g(.)) is a mapping from A to C. If f(.) and f(g(.)) are onto (surjecti…
- Q18 · MCQ · 1 mark · Minimum Spanning TreesLet G be any undirected graph with positive edge weights, and T be a minimum spanning tree of G. For any two vertices, u and v, let d1(u, v) and d2(u, v) be the shortest…
- Q19 · MCQ · 1 mark · Context-Free Grammars and PDAsConsider the following context-free grammar G, where S, A, and B are the variables (non-terminals), a and b are the terminal symbols, S is the start variable, and the ru…
- Q20 · MCQ · 1 mark · Asymptotic AnalysisConsider the following recurrence relation: T(n) = 2T(n - 1) + n2n for n > 0, T(0) = 1. Which ONE of the following options is CORRECT?
- Q21 · MSQ · 1 mark · File Organization and IndexingConsider the following B+ tree with 5 nodes, in which a node can store at most 3 key values. The value 23 is now inserted in the B+ tree. Which of the following options(…
- Q22 · MSQ · 1 mark · TCP Flow and Congestion ControlConsider the 3-way handshaking protocol for TCP connection establishment. Let the three packets exchanged during the connection establishment be denoted as P1, P2, and P…
- Q23 · MSQ · 1 mark · Linear AlgebraConsider the given system of linear equations for variables x and y, where k is a real-valued constant. Which of the following option(s) is/are CORRECT? x + ky = 1 kx +…
- Q24 · MSQ · 1 mark · Boolean Algebra and MinimizationLet X be a 3-variable Boolean function that produces output as ‘1’ when at least two of the input variables are ‘1’. Which of the following statement(s) is/are CORRECT,…
- Q25 · MSQ · 1 mark · Number Representation and ArithmeticThe number -6 can be represented as 1010 in 4-bit 2's complement representation. Which of the following is/are CORRECT 2's complement representation(s) of -6?
- Q26 · MSQ · 1 mark · Binary Search TreesWhich of the following statement(s) is/are TRUE for any binary search tree (BST) having n distinct integers?
- Q27 · MSQ · 1 mark · ALU DesignA partial data path of a processor is given in the figure, where RA, RB, and RZ are 32-bit registers. Which option(s) is/are CORRECT related to arithmetic operations usi…
- Q28 · MSQ · 1 mark · Regular Expressions and Finite AutomataA regular language L is accepted by a non-deterministic finite automaton (NFA) with n states. Which of the following statement(s) is/are FALSE?
- Q29 · NAT · 1 mark · Processes, Threads and IPCSuppose in a multiprogramming environment, the following C program segment is executed. A process goes into I/O queue whenever an I/O related operation is performed. Ass…
- Q30 · NAT · 1 mark · CombinatoricsLet S be the set of all ternary strings defined over the alphabet {a, b, c}. Consider all strings in S that contain at least one occurrence of two consecutive symbols, t…
- Q31 · NAT · 1 mark · CalculusConsider the given function f(x). f(x) = ax + b & for x < 1 x3 + x2 + 1 & for x ≥ 1 If the function is differentiable everywhere, the value of b must be … (rounded off t…
- Q32 · NAT · 1 mark · Probability and StatisticsA box contains 5 coins: 4 regular coins and 1 fake coin. When a regular coin is tossed, the probability P(head) = 0.5 and for a fake coin, P(head) = 1. You pick a coin a…
- Q33 · NAT · 1 mark · SortingThe pseudocode of a function fun() is given below: fun(int A[0,...,n-1]){ for i=0 to n-2 for j=0 to n-i-2 if (A[j]>A[j+1]) then swap A[j] and A[j+1] } Let A[0, , 29] be…
- Q34 · NAT · 1 mark · Programming in C#include void foo(int *p, int x){ *p=x; } int main(){ int *z; int a = 20, b = 25; z = &a; foo(z,b); printf("%d",a); return 0; } The output of the given C program is … (A…
- Q35 · NAT · 1 mark · Binary HeapsThe height of any rooted tree is defined as the maximum number of edges in the path from the root node to any leaf node. Suppose a Min-Heap T stores 32 keys. The height…
- Q36 · MCQ · 2 marks · Cache Memory and HierarchyConsider a memory system with 1M bytes of main memory and 16K bytes of cache memory. Assume that the processor generates 20-bit memory address, and the cache block size…
- Q37 · MCQ · 2 marks · Instruction Set and Addressing ModesA processor has 64 general-purpose registers and 50 distinct instruction types. An instruction is encoded in 32-bits. What is the maximum number of bits that can be used…
- Q38 · MCQ · 2 marks · CPU and I/O SchedulingA computer has two processors, M1 and M2. Four processes P1, P2, P3, P4 with CPU bursts of 20, 16, 25, and 10 milliseconds, respectively, arrive at the same time and the…
- Q39 · MCQ · 2 marks · Relational Model and SQLConsider two relations describing teams and players in a sports league: • teams(tid, tname): tid, tname are team-id and team-name, respectively • players(pid, pname, tid…
- Q40 · MCQ · 2 marks · CIDR NotationA packet with the destination IP address 145.36.109.70 arrives at a router whose routing table is shown. Which interface will the packet be forwarded to?
- Q41 · MCQ · 2 marks · Linear AlgebraLet A be a 2 × 2 matrix as given. A = 1 & 1 1 & -1 What are the eigenvalues of the matrix A13 ?
- Q42 · MCQ · 2 marks · Boolean Algebra and MinimizationConsider the following four variable Boolean function in sum-of-product form F(b3, b2, b1, b0) = Σ(0, 2, 4, 8, 10, 11, 12). where the value of the function is computed b…
- Q43 · MCQ · 2 marks · Graph TraversalsLet G(V, E) be an undirected and unweighted graph with 100 vertices. Let d(u, v) denote the number of edges in a shortest path between vertices u and v in V. Let the max…
- Q44 · MCQ · 2 marks · Regular and Context-Free LanguagesConsider the following two languages over the alphabet {a, b} : L1 = { ∈ {a, b}+ AND ∈ {a, b}+ } L2 = { ∈ {a}+ AND ∈ {a, b}+ } Which ONE of the following statements is C…
- Q45 · MCQ · 2 marks · Regular and Context-Free LanguagesConsider the following two languages over the alphabet {a, b, c}, where m and n are natural numbers. L1 = {am bm cm+n m, n ≥ 1} L2 = {am bn cm+n m, n ≥ 1} Which ONE of t…
- Q46 · MSQ · 2 marks · Lexical Analysis, Parsing and SDTWhich of the following statement(s) is/are TRUE while computing First and Follow during top down parsing by a compiler?
- Q47 · MSQ · 2 marks · Integrity Constraints and Normal FormsConsider a relational schema team(name, city, owner), with functional dependencies {name → city, name → owner}. The relation team is decomposed into two relations, t1(na…
- Q48 · MSQ · 2 marks · Propositional and First-Order LogicWhich of the following predicate logic formulae/formula is/are CORRECT representation(s) of the statement: “Everyone has exactly one mother”? The meanings of the predica…
- Q49 · MSQ · 2 marks · Sets, Relations, Lattices and GroupsA = {0, 1, 2, 3, } is the set of non-negative integers. Let F be the set of functions from A to itself. For any two functions, f1, f2 ∈ F, we define (f1 f2)(n) = f1(n) +…
- Q50 · MSQ · 2 marks · Regular Expressions and Finite AutomataConsider the following deterministic finite automaton (DFA) defined over the alphabet, = {a, b}. Identify which of the following language(s) is/are accepted by the given…
- Q51 · NAT · 2 marks · File SystemsA disk of size 512M bytes is divided into blocks of 64K bytes. A file is stored in the disk using linked allocation. In linked allocation, each data block reserves 4 byt…
- Q52 · NAT · 2 marks · Local OptimisationRefer to the given 3-address code sequence. This code sequence is split into basic blocks. The number of basic blocks is … (Answer in integer) 1001: i = 1 1002: j = 1 10…
- Q53 · NAT · 2 marks · Cache Memory and HierarchyA computer has a memory hierarchy consisting of two-level cache (L1 and L2) and a main memory. If the processor needs to access data from memory, it first looks into L1…
- Q54 · NAT · 2 marks · Memory Management and Virtual MemoryIn optimal page replacement algorithm, information about all future page references is available to the operating system (OS). A modification of the optimal page replace…
- Q55 · NAT · 2 marks · SQLConsider the following database tables of a sports league. player(pid, pname, age) team(tid, tname, city, cid) coach(cid, cname) members(pid, tid) An instance of the tab…
- Q56 · NAT · 2 marks · Probability and StatisticsSuppose a 5-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 transmission…
- Q57 · NAT · 2 marks · IPv4 FragmentationSuppose a message of size 15000 bytes is transmitted from a source to a destination using IPv4 protocol via two routers as shown in the figure. Each router has a defined…
- Q58 · NAT · 2 marks · Probability and StatisticsConsider a probability distribution given by the density function P(x). P(x) = Cx2, & for 1 ≤ x ≤ 4 0, & for x 4 The probability that x lies between 2 and 3, i.e., P(2 ≤…
- Q59 · NAT · 2 marks · Combinational and Sequential CircuitsConsider a finite state machine (FSM) with one input X and one output f, represented by the given state transition table. The minimum number of states required to realiz…
- Q60 · NAT · 2 marks · Combinational and Sequential CircuitsConsider the given sequential circuit designed using D-Flip-flops. The circuit is initialized with some value (initial state). The number of distinct states the circuit…
- Q61 · NAT · 2 marks · Recursion#include int foo(int S[],int size){ if(size == 0) return 0; if(size == 1) return 1; if(S[0] != S[1]) return 1+foo(S+1,size-1); return foo(S+1,size-1); } int main(){ int…
- Q62 · NAT · 2 marks · Programming in CLet LIST be a datatype for an implementation of linked list defined as follows: typedef struct list { int data; struct list *next; } LIST; Suppose a program has created…
- Q63 · NAT · 2 marks · Programming in CConsider the following C program: #include int gate (int n) { int d, t, newnum, turn; newnum = turn = 0; t=1; while (n>=t) t *= 10; t /=10; while (t>0) { d = n/t; n = n%…
- Q64 · NAT · 2 marks · Graph Traversals, MSTs and Shortest PathsThe maximum value of x such that the edge between the nodes B and C is included in every minimum spanning tree of the given graph is … (answer in integer)
- Q65 · NAT · 2 marks · Searching, Sorting and HashingIn a double hashing scheme, h1(k) = k mod 11 and h2(k) = 1 + (k mod 7) are the auxiliary hash functions. The size m of the hash table is 11. The hash function for the i-…
GATE CSE 2025 Set 1 answer key
Official answers. Open a question for the full solution.
| Q | Type | Marks | Answer | Topic |
|---|---|---|---|---|
| Q1 | MCQ | 1 | A | Verbal Aptitude |
| Q2 | MCQ | 1 | B | Verbal Aptitude |
| Q3 | MCQ | 1 | C | Quantitative Aptitude |
| Q4 | MCQ | 1 | A | Analytical Aptitude |
| Q5 | MCQ | 1 | C | Spatial Aptitude |
| Q6 | MCQ | 2 | C | Reading Comprehension |
| Q7 | MCQ | 2 | A | Quantitative Aptitude |
| Q8 | MCQ | 2 | A | Quantitative Aptitude |
| Q9 | MCQ | 2 | A | Spatial Aptitude |
| Q10 | MCQ | 2 | B | Quantitative Aptitude |
| Q11 | MCQ | 1 | A | I/O Interface, Interrupts and DMA |
| Q12 | MCQ | 1 | C | Lexical Analysis |
| Q13 | MCQ | 1 | B | Data Flow Analyses |
| Q14 | MCQ | 1 | A | Memory Management and Virtual Memory |
| Q15 | MCQ | 1 | C | Transactions and Concurrency Control |
| Q16 | MCQ | 1 | B | Principles of Layering |
| Q17 | MCQ | 1 | D | Discrete Mathematics |
| Q18 | MCQ | 1 | B | Minimum Spanning Trees |
| Q19 | MCQ | 1 | A | Context-Free Grammars and PDAs |
| Q20 | MCQ | 1 | A | Asymptotic Analysis |
| Q21 | MSQ | 1 | B, D | File Organization and Indexing |
| Q22 | MSQ | 1 | B, D | TCP Flow and Congestion Control |
| Q23 | MSQ | 1 | A, D | Linear Algebra |
| Q24 | MSQ | 1 | B, D | Boolean Algebra and Minimization |
| Q25 | MSQ | 1 | B, D | Number Representation and Arithmetic |
| Q26 | MSQ | 1 | A, B | Binary Search Trees |
| Q27 | MSQ | 1 | A, B, C | ALU Design |
| Q28 | MSQ | 1 | D | Regular Expressions and Finite Automata |
| Q29 | NAT | 1 | 21 | Processes, Threads and IPC |
| Q30 | NAT | 1 | 195 | Combinatorics |
| Q31 | NAT | 1 | -2 | Calculus |
| Q32 | NAT | 1 | 0.5 | Probability and Statistics |
| Q33 | NAT | 1 | 435 | Sorting |
| Q34 | NAT | 1 | 25 | Programming in C |
| Q35 | NAT | 1 | 5 | Binary Heaps |
| Q36 | MCQ | 2 | A | Cache Memory and Hierarchy |
| Q37 | MCQ | 2 | B | Instruction Set and Addressing Modes |
| Q38 | MCQ | 2 | A | CPU and I/O Scheduling |
| Q39 | MCQ | 2 | A | Relational Model and SQL |
| Q40 | MCQ | 2 | A | CIDR Notation |
| Q41 | MCQ | 2 | D | Linear Algebra |
| Q42 | MCQ | 2 | A | Boolean Algebra and Minimization |
| Q43 | MCQ | 2 | C | Graph Traversals |
| Q44 | MCQ | 2 | C | Regular and Context-Free Languages |
| Q45 | MCQ | 2 | C | Regular and Context-Free Languages |
| Q46 | MSQ | 2 | A, D | Lexical Analysis, Parsing and SDT |
| Q47 | MSQ | 2 | B, C | Integrity Constraints and Normal Forms |
| Q48 | MSQ | 2 | B, D | Propositional and First-Order Logic |
| Q49 | MSQ | 2 | B | Sets, Relations, Lattices and Groups |
| Q50 | MSQ | 2 | C | Regular Expressions and Finite Automata |
| Q51 | NAT | 2 | 65468 | File Systems |
| Q52 | NAT | 2 | 6 | Local Optimisation |
| Q53 | NAT | 2 | 11.85 | Cache Memory and Hierarchy |
| Q54 | NAT | 2 | 6 | Memory Management and Virtual Memory |
| Q55 | NAT | 2 | 26 | SQL |
| Q56 | NAT | 2 | 0.951 | Probability and Statistics |
| Q57 | NAT | 2 | 7 | IPv4 Fragmentation |
| Q58 | NAT | 2 | 0.302 | Probability and Statistics |
| Q59 | NAT | 2 | 5 | Combinational and Sequential Circuits |
| Q60 | NAT | 2 | 8 | Combinational and Sequential Circuits |
| Q61 | NAT | 2 | 5 | Recursion |
| Q62 | NAT | 2 | 5 | Programming in C |
| Q63 | NAT | 2 | 46 | Programming in C |
| Q64 | NAT | 2 | 5 | Graph Traversals, MSTs and Shortest Paths |
| Q65 | NAT | 2 | 10 | Searching, Sorting and Hashing |
Subject-wise weightage
Where the marks came from in GATE CSE 2025 Set 1, against GATE CSE 2024 Set 1 and the average paper.
| Subject | Qs | Marks | Share | vs previous year | Avg marks / paper |
|---|---|---|---|---|---|
| GATE CSE General Aptitude PYQs | 10 | 15 | 15% | 0 | 7.4 |
| GATE CSE Engineering Mathematics PYQs | 10 | 15 | 15% | -1 | 14.8 |
| GATE CSE Algorithms PYQs | 6 | 9 | 9% | +4 | 7.2 |
| GATE CSE Programming and Data Structures PYQs | 6 | 9 | 9% | 0 | 9.5 |
| GATE CSE Computer Organization and Architecture PYQs | 5 | 8 | 8% | -2 | 6.8 |
| GATE CSE Operating Systems PYQs | 5 | 8 | 8% | 0 | 7.4 |
| GATE CSE Databases PYQs | 5 | 8 | 8% | 0 | 6.8 |
| GATE CSE Theory of Computation PYQs | 5 | 8 | 8% | +1 | 6.9 |
| GATE CSE Digital Logic PYQs | 5 | 8 | 8% | +2 | 5.5 |
| GATE CSE Compiler Design PYQs | 4 | 6 | 6% | -1 | 5.2 |
| GATE CSE Computer Networks PYQs | 4 | 6 | 6% | -3 | 7.6 |
GATE CSE 2025 Set 1 FAQ
- How many questions were in GATE CSE 2025 Set 1?
- GATE CSE 2025 Set 1 had 65 questions for 100 marks: 30 MCQ, 13 MSQ and 22 NAT.
- Which subject carried the most marks in GATE CSE 2025 Set 1?
- General Aptitude carried the most marks (15 of 100). The top three were General Aptitude (15), Engineering Mathematics (15), Algorithms (9).
- Where can I find the GATE CSE 2025 Set 1 answer key?
- The answer key table on this page lists the answer to every question of GATE CSE 2025 Set 1. Open any question for its full verified solution.
- Is the GATE CSE 2025 Set 1 paper useful for GATE 2027 preparation?
- Yes. Solving past GATE CSE papers shows how marks are spread across subjects and which topics repeat. Compare it with other GATE CSE question papers and the topic-wise GATE CSE PYQs.