GATE 2025 CS (Set 1) question paper PDF and answer key

The official GATE 2025 Computer Science & Information Technology (Set 1) paper, organised by IIT Roorkee: 65 questions for 100 marks in 3 hours. Download the official question paper and answer key as PDFs. Below is how the marks were split by topic, the complete official answer key and 5 questions solved step by step.

Source: the official paper and answer key published by IIT Roorkee for GATE 2025 (official GATE site). Spotted a mistake? Email team@lemyte.com.

General Aptitude
10 · 15 marks
Computer Science & Information Technology
55 · 85 marks
MCQ / MSQ / NAT
30 / 13 / 22
Marks to all
None

Where the marks were

GATE 2025 CS (Set 1) topic-wise marks

Computer Science & Information Technology questions only; General Aptitude adds 15 marks on top. The top three topics carried 28 of the 85 subject marks.

TopicQuestionsMarks
Programming and Data Structures811
Computer Organization and Architecture69
Theory of Computation58
Operating System58
Algorithms58
Databases47
Digital Logic47
Compiler Design46
Computer Networks46
Discrete Mathematics46
Probability and Statistics35
Linear Algebra23
Calculus11

Free solved questions

5 solved questions from GATE 2025 CS (Set 1)

Question text and figures as in the official paper, the answer from the official key, and a worked solution. The other 60 solutions are in your report after you take the paper.

Q4 · General Aptitude · MCQ · 1 mark

The 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 option that can replace the word "myopic" without changing the meaning of the sentence.

  • (A)
    visionary
  • (B)
    shortsighted
  • (C)
    progressive
  • (D)
    innovative

Answer (official key): B

Solution

The sentence says the decision sacrificed long-term stability for short-term gains. That is exactly what shortsighted means. The other options suggest positive or forward-looking traits, which do not fit the sentence. Therefore, the correct answer is Option B.

Q5 · General Aptitude · MCQ · 1 mark

The average marks obtained by a class in an examination were calculated as 30.830.8. However, while checking the marks entered, the teacher found that the marks of one student were entered incorrectly as 2424 instead of 4242. After correcting the marks, the average becomes 31.431.4. How many students does the class have?

  • (A)
    2525
  • (B)
    2828
  • (C)
    3030
  • (D)
    3232

Answer (official key): C

Solution

One student's marks were entered as 24 instead of 42, so the total marks must increase by 18 after correction. The average increases from 30.8 to 31.4, which is an increase of 0.6 per student. Therefore, number of students = 18 / 0.6 = 30. Hence, the correct answer is Option C.

Q21 · Computer Networks · MSQ · 1 mark

Consider the 3-way handshaking protocol for TCP connection establishment. Let the three packets exchanged during the connection establishment be denoted as P1, P2, and P3, in order. Which of the following option(s) is/are TRUE with respect to TCP header flags that are set in the packets?

  • (A)
    P3: SYN = 1, ACK = 1
  • (B)
    P2: SYN = 1, ACK = 1
  • (C)
    P2: SYN = 0, ACK = 1
  • (D)
    P1: SYN = 1

Answer (official key): B, D

Solution

In TCP 3-way handshake:

  • P1 is the initial SYN from the client, so SYN = 1
  • P2 is the SYN+ACK from the server, so SYN = 1, ACK = 1
  • P3 is the final ACK from the client, so SYN = 0, ACK = 1

Therefore, the true statements are (B) and (D).

Q27 · Computer Organization and Architecture · MSQ · 1 mark

A 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 using the data path as shown?

Processor Datapath

  • (A)
    The data path can implement arithmetic operations involving two registers.
  • (B)
    The data path can implement arithmetic operations involving one register and one immediate value.
  • (C)
    The data path can implement arithmetic operations involving two immediate values.
  • (D)
    The data path can only implement arithmetic operations involving one register and one immediate value.

Answer (official key): A, B, C

Solution

Both inputs to the ALU come through multiplexers:

  • Mux_A can select either RA or an immediate value
  • Mux_B can select either RB or an immediate value

So the datapath can support:

  • two registers → RA and RB
  • one register and one immediate → RA + immediate or immediate + RB
  • two immediate values → immediate + immediate

Therefore:

  • (A) is true
  • (B) is true
  • (C) is true
  • (D) is false

So the correct options are (A), (B), and (C).

Q29 · Discrete Mathematics · Numerical · 1 mark

Let 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, that is, “aa”, “bb” or “cc”. The number of such strings of length 5 that are possible is _______. (Answer in integer)

Answer (official key): 195

Solution

Total number of ternary strings of length 5 is: 3^5 = 243 Now count strings with no equal consecutive symbols: first position: 3 choices each next position: 2 choices (anything except the previous symbol) So: 3 * 2^4 = 48 Hence strings with at least one occurrence of aa, bb, or cc: 243 - 48 = 195 Therefore, the answer is 195.

The other 60 questions are solved in your report when you take GATE 2025 CS (Set 1) as a 3-hour test.

Take GATE 2025 CS (Set 1) as a test

Official answer key

GATE 2025 CS (Set 1) answer key

All 65 answers from the official key. Numerical answers are ranges; “or” means the key accepts either answer.

Download the official GATE 2025 CS (Set 1) answer key (PDF)
QTopicTypeMarksAnswer
1Verbal AptitudeMCQ1A
2Spatial AptitudeMCQ1C
3Analytical AptitudeMCQ1A
4Verbal AptitudeMCQ1B
5Quantitative AptitudeMCQ1C
6Quantitative AptitudeMCQ2B
7Verbal AptitudeMCQ2C
8Quantitative AptitudeMCQ2A
9Spatial AptitudeMCQ2A
10Quantitative AptitudeMCQ2A
11DatabasesMCQ1C
12Computer Organization and ArchitectureMCQ1A
13Theory of ComputationMCQ1A
14Compiler DesignMCQ1B
15Operating SystemMCQ1A
16Computer NetworksMCQ1B
17Discrete MathematicsMCQ1D
18AlgorithmsMCQ1B
19Compiler DesignMCQ1C
20AlgorithmsMCQ1A
21Computer NetworksMSQ1B, D
22Linear AlgebraMSQ1A, D
23Computer Organization and ArchitectureMSQ1B, D
24Theory of ComputationMSQ1D
25Programming and Data StructuresMSQ1A, B
26Digital LogicMSQ1B, D
27Computer Organization and ArchitectureMSQ1A, B, C
28Programming and Data StructuresMSQ1B, D
29Discrete MathematicsNumerical1195
30Programming and Data StructuresNumerical15
31Probability and StatisticsNumerical10.49 to 0.51
32Programming and Data StructuresNumerical1435
33CalculusNumerical1-2.1 to -1.9
34Operating SystemNumerical121
35Programming and Data StructuresNumerical125
36Operating SystemMCQ2A
37Theory of ComputationMCQ2C
38Computer Organization and ArchitectureMCQ2A
39Digital LogicMCQ2A
40Linear AlgebraMCQ2D
41Computer NetworksMCQ2A
42DatabasesMCQ2A
43AlgorithmsMCQ2C
44Theory of ComputationMCQ2C
45Computer Organization and ArchitectureMCQ2B
46Theory of ComputationMSQ2C
47Discrete MathematicsMSQ2B
48Compiler DesignMSQ2A, D
49DatabasesMSQ2B, C
50Discrete MathematicsMSQ2B, D
51Probability and StatisticsNumerical20.3 to 0.302
52Operating SystemNumerical265468
53Programming and Data StructuresNumerical246
54Probability and StatisticsNumerical20.949 to 0.952
55AlgorithmsNumerical210
56Compiler DesignNumerical26
57Programming and Data StructuresNumerical25
58DatabasesNumerical226
59Operating SystemNumerical26
60Digital LogicNumerical25
61AlgorithmsNumerical25
62Computer NetworksNumerical27
63Programming and Data StructuresNumerical25
64Digital LogicNumerical27 to 8
65Computer Organization and ArchitectureNumerical211.83 to 11.87

Questions about GATE 2025 CS (Set 1)

How many questions are in the GATE 2025 CS (Set 1) paper?

65 questions for 100 marks: 10 General Aptitude questions worth 15 marks and 55 Computer Science & Information Technology questions worth 85 marks. By type, there were 30 MCQs, 13 MSQs, 22 numerical answer (NAT) questions. The paper lasted 3 hours.

Is there negative marking in GATE 2025 CS (Set 1)?

Yes, for MCQs only. A wrong MCQ answer costs one-third of its marks (−⅓ for a 1-mark question, −⅔ for a 2-mark question). MSQ and numerical (NAT) questions have no negative marking, and an MSQ earns marks only when every correct option is chosen.

Which topics carried the most marks in GATE 2025 CS (Set 1)?

Outside General Aptitude, the biggest topics were Programming and Data Structures (11 marks), Computer Organization and Architecture (9 marks), Theory of Computation (8 marks). The full topic-wise split is in the table on this page.

Were any GATE 2025 CS (Set 1) questions awarded marks to all?

No. Every question was graded with the answer in the official key.

Where does this GATE 2025 CS (Set 1) answer key come from?

From the official answer key published by IIT Roorkee, which organised GATE 2025. Range answers for numerical questions and questions with more than one accepted answer are kept exactly as the key gives them.

More GATE papers