GATE 2020 CS PYQ: question paper PDF and answer key

The official GATE 2020 Computer Science & Information Technology paper, organised by IIT Delhi: 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 Delhi for GATE 2020 (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
42 / 0 / 23
Marks to all
Q 35

Where the marks were

GATE 2020 CS topic-wise marks

Computer Science & Information Technology questions only; General Aptitude adds 15 marks on top. The top three topics carried 34 of the 85 subject marks. To compare with every CS paper since 2014, see GATE CS subject-wise weightage, 2014 to 2026.

TopicQuestionsMarks
Computer Organization and Architecture812
Programming and Data Structures812
Operating System610
Theory of Computation69
Databases58
Discrete Mathematics58
Algorithms58
Computer Networks46
Compiler Design34
Digital Logic23
Probability and Statistics12
Linear Algebra12
Calculus11

Official answer key

GATE 2020 CS answer key

All 65 answers from the official key. Numerical answers are ranges; “or” means the key accepts either answer. “Marks to all” means everyone got the marks. Marks-to-all questions in every GATE paper

Download the official GATE 2020 CS answer key (PDF)
QTopicTypeMarksAnswer
1Verbal AptitudeMCQ1A
2Analytical AptitudeMCQ1B
3Verbal AptitudeMCQ1D
4Verbal AptitudeMCQ1A
5Verbal AptitudeMCQ1D
6Quantitative AptitudeMCQ2B
7Quantitative AptitudeMCQ2A
8Verbal AptitudeMCQ2D
9Quantitative AptitudeMCQ2C
10Quantitative AptitudeMCQ2C
11Computer Organization and ArchitectureNumerical15
12Programming and Data StructuresMCQ1C
13Computer NetworksNumerical16
14Computer NetworksMCQ1D
15Digital LogicNumerical11034
16Compiler DesignNumerical17
17DatabasesMCQ1A
18Theory of ComputationMCQ1C
19Discrete MathematicsNumerical17
20DatabasesMCQ1A
21AlgorithmsMCQ1A
22Computer Organization and ArchitectureMCQ1C
23Programming and Data StructuresMCQ1B
24Programming and Data StructuresMCQ1C
25Operating SystemMCQ1C
26AlgorithmsNumerical113
27Computer Organization and ArchitectureMCQ1C
28Operating SystemMCQ1C
29Programming and Data StructuresNumerical119
30Theory of ComputationMCQ1D
31CalculusMCQ1A
32Discrete MathematicsNumerical10.125
33Compiler DesignMCQ1D
34Computer Organization and ArchitectureNumerical113.3 to 13.5
35Theory of ComputationMCQ1Marks to all
36Theory of ComputationMCQ2A
37AlgorithmsNumerical299
38Compiler DesignMCQ2B
39AlgorithmsMCQ2D
40Computer Organization and ArchitectureMCQ2B
41Probability and StatisticsNumerical20.5
42Discrete MathematicsMCQ2C
43Computer NetworksNumerical244
44Computer NetworksMCQ2B
45Programming and Data StructuresMCQ2B
46Computer Organization and ArchitectureNumerical214
47Discrete MathematicsNumerical212
48AlgorithmsMCQ2A
49Programming and Data StructuresNumerical2511
50Operating SystemNumerical25.25
51Operating SystemMCQ2A
52Digital LogicMCQ2B
53Theory of ComputationMCQ2A
54Linear AlgebraMCQ2C
55Programming and Data StructuresNumerical255
56Discrete MathematicsNumerical27
57Operating SystemNumerical2154.5 to 155.5
58Theory of ComputationNumerical26
59DatabasesMCQ2A
60DatabasesMCQ2A
61Computer Organization and ArchitectureNumerical22.15 to 2.18
62Computer Organization and ArchitectureMCQ2B
63DatabasesNumerical24
64Programming and Data StructuresNumerical281
65Operating SystemMCQ2B

Free solved questions

5 solved questions from GATE 2020 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.

Q2 · General Aptitude · MCQ · 1 mark

There are multiple routes to reach from node 1 to node 2, as shown in the network.

Route network for Q5

The cost of travel on an edge between two nodes is given in rupees. Nodes a, b, c, d, e, and f are toll booths. The toll price at toll booths marked a and e is Rs. 200, and is Rs. 100 for the other toll booths. Which is the cheapest route from node 1 to node 2?

  • (A)
    1-a-c-2
  • (B)
    1-f-b-2
  • (C)
    1-b-2
  • (D)
    1-f-e-2

Answer (official key): B

Show the worked solution

Compare total travel cost including edge costs and toll booth costs.

For route 1-f-b-2:

  • edge costs: 1→f=1001 \to f = 100, f→b=0f \to b = 0, b→2=200b \to 2 = 200
  • tolls: f=100f = 100, b=100b = 100

Total cost:

100+0+200+100+100=500.100+0+200+100+100 = 500.

The other listed routes have higher total cost.

Therefore, the cheapest route is 1-f-b-2, i.e. Option B.

Q10 · General Aptitude · MCQ · 2 marks

If P=3P = 3, R=27R = 27, T=243T = 243, then $Q + S = ______.

  • (A)
    40
  • (B)
    80
  • (C)
    90
  • (D)
    110

Answer (official key): C

Show the worked solution

The letters follow alternating positions:

P=31=3P = 3^1 = 3 R=33=27R = 3^3 = 27 T=35=243T = 3^5 = 243

So,

Q=32=9Q = 3^2 = 9

and

S=34=81.S = 3^4 = 81.

Therefore,

Q+S=9+81=90.Q+S = 9+81 = 90.

So the correct answer is Option C.

Q47 · Discrete Mathematics · Numerical · 2 marks

The number of permutations of the characters in IILACC such that no character appears in its original position, if the two I's are indistinguishable, is __________.

Answer (official key): 12

Show the worked solution

The string is:

I I L A C C

The two I's are indistinguishable and the two C's are indistinguishable.

We count derangements under these repeated-character constraints: no position may contain the same character as in the original string.

The valid arrangements are 12.

Therefore, the answer is 12.

Q48 · Algorithms · MCQ · 2 marks

Let G=(V,E)G=(V,E) be a directed weighted graph with weight function w:E→Rw:E\to \mathbb{R}. For some function f:V→Rf:V\to \mathbb{R}, for each edge (u,v)∈E(u,v)\in E, define

w′(u,v)=w(u,v)+f(u)−f(v).w'(u,v)=w(u,v)+f(u)-f(v).

Which one of the options completes the following sentence so that it is TRUE?

The shortest paths in GG under ww are shortest paths under w′w' also, ________.

  • (A)
    for every f:V→Rf:V\to \mathbb{R}
  • (B)
    if and only if w′(u,v)w'(u,v) is positive for every edge (u,v)(u,v)
  • (C)
    if and only if f(v)f(v) is negative for every vertex vv
  • (D)
    if and only if f(v)f(v) is the distance from source ss to vv in the graph obtained by adding a new vertex ss to GG and edges of zero weight from ss to every vertex of GG

Answer (official key): A

Show the worked solution

For any path from ss to tt, the transformed path weight is:

w′(P)=w(P)+f(s)−f(t).w'(P)=w(P)+f(s)-f(t).

The extra term f(s)−f(t)f(s)-f(t) is the same for all paths between the same source and destination.

Therefore, the relative ordering of path weights does not change, and shortest paths remain shortest paths for every function ff.

The correct answer is Option A.

Q52 · Digital Logic · MCQ · 2 marks

Consider the Boolean function z(a,b,c)z(a,b,c) represented by the circuit shown below.

Boolean circuit for Q28

Which one of the following minterm lists represents the circuit given above?

  • (A)
    z=∑(0,1,3,7)z=\sum(0,1,3,7)
  • (B)
    z=∑(1,4,5,6,7)z=\sum(1,4,5,6,7)
  • (C)
    z=∑(2,4,5,6,7)z=\sum(2,4,5,6,7)
  • (D)
    z=∑(2,3,5)z=\sum(2,3,5)

Answer (official key): B

Show the worked solution

From the circuit, the output is

z=a+b‾c.z = a + \overline{b}c.

If a=1a=1, the minterms are 4,5,6,74,5,6,7.

If a=0a=0, the term b‾c\overline{b}c is 1 only when b=0,c=1b=0,c=1, which gives minterm 11.

Therefore,

z=∑(1,4,5,6,7).z=\sum(1,4,5,6,7).

The correct answer is Option B.

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

Take GATE 2020 CS as a test

Questions about GATE 2020 CS

How many questions are in the GATE 2020 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 42 MCQs, 23 numerical answer (NAT) questions. The paper lasted 3 hours.

Is there negative marking in GATE 2020 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 2020 CS?

Outside General Aptitude, the biggest topics were Computer Organization and Architecture (12 marks), Programming and Data Structures (12 marks), Operating System (10 marks). The full topic-wise split is in the table on this page.

Were any GATE 2020 CS questions awarded marks to all?

Yes. The official key awarded full marks to everyone for question 35.

Where does this GATE 2020 CS answer key come from?

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

More GATE papers