GATE 2023 CS question paper PDF and answer key

The official GATE 2023 Computer Science & Information Technology paper, organised by IIT Kanpur: 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 Kanpur for GATE 2023 (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
34 / 15 / 16
Marks to all
None

Where the marks were

GATE 2023 CS topic-wise marks

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

TopicQuestionsMarks
Discrete Mathematics711
Operating System710
Theory of Computation69
Programming and Data Structures69
Computer Organization and Architecture59
Computer Networks58
Compiler Design47
Algorithms46
Digital Logic46
Databases35
Calculus22
Probability and Statistics12
Linear Algebra11

Free solved questions

5 solved questions from GATE 2023 CS

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

A survey for a certain year found that 90% of pregnant women received medical care at least once before giving birth. Of these women, 60% received medical care from doctors, while 40% received medical care from other healthcare providers.

Given this information, which one of the following statements can be inferred with certainty?

  • (A)
    More than half of the pregnant women received medical care at least once from a doctor.
  • (B)
    Less than half of the pregnant women received medical care at least once from a doctor.
  • (C)
    More than half of the pregnant women received medical care at most once from a doctor.
  • (D)
    Less than half of the pregnant women received medical care at most once from a doctor.

Answer (official key): A

Solution

Out of all pregnant women, 90% received medical care at least once. Of those, 60% received care from doctors. So the percentage who received care from doctors is

0.9×0.6=0.54=54%.0.9 \times 0.6 = 0.54 = 54\%.

That is more than half.

Therefore, the correct answer is Option A.

Q6 · General Aptitude · MCQ · 2 marks

Which one of the following sentence sequences creates a coherent narrative?

(i) Once on the terrace, on her way to her small room in the corner, she notices the man right away.
(ii) She begins to pant by the time she has climbed all the stairs.
(iii) Mina has bought vegetables and rice at the market, so her bags are heavy.
(iv) He was leaning against the parapet, watching the traffic below.

  • (A)
    (i), (ii), (iv), (iii)
  • (B)
    (ii), (iii), (i), (iv)
  • (C)
    (iv), (ii), (i), (iii)
  • (D)
    (iii), (ii), (i), (iv)

Answer (official key): D

Solution

A coherent sequence is:

  • first, Mina has heavy bags
  • then she climbs the stairs and pants
  • once on the terrace, she notices the man
  • finally, the man is described

So the coherent order is (iii), (ii), (i), (iv).

Therefore, the correct answer is Option D.

Q35 · Computer Organization and Architecture · Numerical · 1 mark

Consider a 3-stage pipelined processor having a delay of 10 ns (nanoseconds), 20 ns, and 14 ns, for the first, second, and the third stages, respectively. Assume that there is no other delay and the processor does not suffer from any pipeline hazards. Also assume that one instruction is fetched every cycle.

The total execution time for executing 100 instructions on this processor is __________ ns.

Answer (official key): 2040

Solution

The pipeline clock period is determined by the slowest stage:

max⁡(10,20,14)=20 ns.\max(10,20,14)=20 \text{ ns}.

For a 3-stage pipeline executing 100 instructions, total cycles required are:

k+n−1=3+100−1=102.k+n-1 = 3+100-1 = 102.

Hence total execution time is

102×20=2040 ns.102 \times 20 = 2040 \text{ ns}.

Therefore, the answer is 2040.

Q39 · Compiler Design · MCQ · 2 marks

Consider the control flow graph shown.

Control Flow Graph for Q37

Which one of the following choices correctly lists the set of live variables at the exit point of each basic block?

  • (A)
    B1: {}, B2: {a}, B3: {a}, B4: {a}
  • (B)
    B1: {i, j}, B2: {a}, B3: {a}, B4: {i}
  • (C)
    B1: {a, i, j}, B2: {a, i, j}, B3: {a, i}, B4: {a}
  • (D)
    B1: {a, i, j}, B2: {a, j}, B3: {a, j}, B4: {a, i, j}

Answer (official key): D

Solution

This is a control-flow / liveness-analysis question. The official answer key marks Option D as correct. A full backward data-flow derivation can be added later if you want the final polished explanation.

Q41 · Computer Networks · MSQ · 2 marks

Suppose you are asked to design a new reliable byte-stream transport protocol like TCP. This protocol, named myTCP, runs over a 100 Mbps network with Round Trip Time of 150 milliseconds and the maximum segment lifetime of 2 minutes.

Which of the following is/are valid lengths of the Sequence Number field in the myTCP header?

  • (A)
    30 bits
  • (B)
    32 bits
  • (C)
    34 bits
  • (D)
    36 bits

Answer (official key): B, C, D

Solution

At 100 Mbps, the sender can inject

100×106 bits/sec=12.5×106 bytes/sec.100 \times 10^6 \text{ bits/sec} = 12.5 \times 10^6 \text{ bytes/sec}.

Over a maximum segment lifetime of 120 seconds, this is

12.5×106×120=1.5×109 bytes.12.5 \times 10^6 \times 120 = 1.5 \times 10^9 \text{ bytes}.

So the sequence number space must exceed this order of magnitude. Since

230≈1.07×1092^{30} \approx 1.07 \times 10^9

is too small, 30 bits is invalid, while 32 bits and above are valid.

Therefore, the correct answers are B, C, and D.

The other 60 questions are solved in your report when you take GATE 2023 CS as a 3-hour test.

Take GATE 2023 CS as a test

Official answer key

GATE 2023 CS answer key

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

Download the official GATE 2023 CS answer key (PDF)
QTopicTypeMarksAnswer
1Spatial AptitudeMCQ1C
2Quantitative AptitudeMCQ1A
3Verbal AptitudeMCQ1B
4Analytical AptitudeMCQ1A
5Verbal AptitudeMCQ1A
6Verbal AptitudeMCQ2D
7Analytical AptitudeMCQ2D
8Analytical AptitudeMCQ2B
9Quantitative AptitudeMCQ2C
10Spatial AptitudeMCQ2A
11Theory of ComputationMCQ1C
12Discrete MathematicsMCQ1A
13Computer NetworksMCQ1B
14Programming and Data StructuresMCQ1B
15Programming and Data StructuresMCQ1D
16AlgorithmsMCQ1C
17Linear AlgebraMCQ1B
18Compiler DesignMCQ1B
19Theory of ComputationMCQ1C
20DatabasesMCQ1A
21Computer NetworksMSQ1A, C
22Operating SystemMSQ1C, D
23Digital LogicMCQ1B
24Discrete MathematicsMSQ1B, C
25Theory of ComputationMSQ1A, C, D
26AlgorithmsMSQ1A, C
27CalculusMSQ1B, D
28Operating SystemMSQ1B, C, D
29Operating SystemMSQ1C, D
30Discrete MathematicsNumerical12
31Digital LogicNumerical1110
32Operating SystemNumerical110.2
33CalculusNumerical10
34Programming and Data StructuresNumerical17
35Computer Organization and ArchitectureNumerical12040
36Operating SystemMCQ2C
37Theory of ComputationMCQ2A
38Theory of ComputationMCQ2B
39Compiler DesignMCQ2D
40Compiler DesignMCQ2A
41Computer NetworksMSQ2B, C, D
42Discrete MathematicsMSQ2B, C, D
43Digital LogicMCQ2C
44Computer Organization and ArchitectureMCQ2C
45Discrete MathematicsMCQ2D
46Computer Organization and ArchitectureMCQ2B
47Programming and Data StructuresMCQ2C
48Computer Organization and ArchitectureMCQ2C
49Digital LogicMCQ2A
50Programming and Data StructuresMCQ2B
51Probability and StatisticsMSQ2C, D
52Computer NetworksNumerical23
53Discrete MathematicsMSQ2A, D
54AlgorithmsMSQ2A, D
55Theory of ComputationNumerical24
56AlgorithmsNumerical25040
57Programming and Data StructuresNumerical28
58Computer Organization and ArchitectureNumerical219
59Operating SystemNumerical25
60Compiler DesignNumerical22.374 to 2.376
61DatabasesNumerical26
62Discrete MathematicsMSQ2A, B
63Operating SystemNumerical24096
64DatabasesNumerical22
65Computer NetworksMSQ2C, D

Questions about GATE 2023 CS

How many questions are in the GATE 2023 CS 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 34 MCQs, 15 MSQs, 16 numerical answer (NAT) questions. The paper lasted 3 hours.

Is there negative marking in GATE 2023 CS?

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 2023 CS?

Outside General Aptitude, the biggest topics were Discrete Mathematics (11 marks), Operating System (10 marks), Theory of Computation (9 marks). The full topic-wise split is in the table on this page.

Were any GATE 2023 CS questions awarded marks to all?

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

Where does this GATE 2023 CS answer key come from?

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

More GATE papers