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

The official GATE 2024 Computer Science & Information Technology (Set 1) paper, organised by IISc Bengaluru: 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 IISc Bengaluru for GATE 2024 (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
29 / 20 / 16
Marks to all
None

Not in 2027 1 question (Q 53) is on topics removed from the GATE 2027 syllabus. They are marked in the answer key below. What changed for CS

Where the marks were

GATE 2024 CS (Set 1) topic-wise marks

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

TopicQuestionsMarks
Computer Organization and Architecture610
Computer Networks69
Databases68
Operating System58
Compiler Design58
Programming and Data Structures58
Theory of Computation47
Algorithms47
Digital Logic46
Discrete Mathematics46
Probability and Statistics34
Linear Algebra23
Calculus11

Free solved questions

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

Q3 · General Aptitude · MCQ · 1 mark

If ‘→\to’ denotes increasing order of intensity, then the meaning of the words

[dry→arid→parched][\text{dry} \to \text{arid} \to \text{parched}]

is analogous to

[diet→fast→‾].[\text{diet} \to \text{fast} \to \underline{\hspace{1.5cm}}].

Which one of the given options is appropriate to fill the blank?

  • (A)
    starve
  • (B)
    reject
  • (C)
    feast
  • (D)
    deny

Answer (official key): A

Solution

The words

dry→arid→parched\text{dry} \to \text{arid} \to \text{parched}

show increasing intensity of lack of moisture.

Similarly,

diet→fast→starve\text{diet} \to \text{fast} \to \text{starve}

shows increasing intensity of reduced food intake.

Therefore, the correct answer is Option A.

Q4 · General Aptitude · MCQ · 1 mark

For positive non-zero real variables pp and qq, if

log⁡(p2+q2)=log⁡p+log⁡q+2log⁡3,\log(p^2+q^2) = \log p + \log q + 2\log 3,

then the value of

p4+q4p2q2\frac{p^4+q^4}{p^2 q^2}

is

  • (A)
    79
  • (B)
    81
  • (C)
    9
  • (D)
    83

Answer (official key): A

Solution

Using log rules,

log⁡(p2+q2)=log⁡p+log⁡q+2log⁡3=log⁡(9pq).\log(p^2+q^2) = \log p + \log q + 2\log 3 = \log(9pq).

Hence,

p2+q2=9pq.p^2 + q^2 = 9pq.

Now,

p4+q4=(p2+q2)2−2p2q2.p^4 + q^4 = (p^2+q^2)^2 - 2p^2q^2.

So,

p4+q4p2q2=(p2+q2)2p2q2−2=(9pq)2p2q2−2=81−2=79.\frac{p^4+q^4}{p^2q^2} = \frac{(p^2+q^2)^2}{p^2q^2} - 2 = \frac{(9pq)^2}{p^2q^2} - 2 = 81 - 2 = 79.

Therefore, the correct answer is Option A.

Q41 · Algorithms · MSQ · 2 marks

Let GG be a directed graph and TT a depth first search (DFS) tree in GG that is rooted at a vertex vv. Suppose TT is also a breadth first search (BFS) tree in GG, rooted at vv. Which of the following statements is/are TRUE for every such graph GG and tree TT?

  • (A)
    There are no back-edges in GG with respect to the tree TT
  • (B)
    There are no cross-edges in GG with respect to the tree TT
  • (C)
    There are no forward-edges in GG with respect to the tree TT
  • (D)
    The only edges in GG are the edges in TT

Answer (official key): C

Solution

If TT is also a BFS tree rooted at vv, then the tree depth of every vertex equals its shortest-path distance from vv.

A forward edge in a DFS tree goes from a node to a proper descendant that is not its child. If such an edge existed from uu to a descendant ww, then BFS would place ww at depth at most

depth(u)+1,\text{depth}(u)+1,

which contradicts the fact that ww appears deeper than that in the same tree TT.

So forward edges cannot exist.

Back edges and cross edges may still exist in general, and GG may certainly contain edges outside the tree.

Therefore, the correct answer is C.

Q43 · Theory of Computation · MSQ · 2 marks

Consider the 5-state DFA MM accepting the language

L(M)⊂(0+1)∗L(M) \subset (0+1)^*

shown below. For any string w∈(0+1)∗w \in (0+1)^*, let n0(w)n_0(w) be the number of 0's in ww and n1(w)n_1(w) be the number of 1's in ww.

5-state DFA for Q50

Which of the following statements is/are FALSE?

  • (A)
    States 2 and 4 are distinguishable in MM
  • (B)
    States 3 and 4 are distinguishable in MM
  • (C)
    States 2 and 5 are distinguishable in MM
  • (D)
    Any string ww with n0(w)=n1(w)n_0(w)=n_1(w) is in L(M)L(M)

Answer (official key): B, C

Solution

This is a figure-dependent DFA distinguishability question. The official accepted false statements are B and C.

Therefore, the correct answers are B and C.

Q51 · Algorithms · Numerical · 2 marks

The number of edges present in the forest generated by the DFS traversal of an undirected graph GG with 100 vertices is 40. The number of connected components in GG is _________

Answer (official key): 60

Solution

In a DFS forest of an undirected graph with nn vertices and cc connected components, the forest has

n−cn-c

tree edges.

Here,

n=100,n−c=40.n=100,\qquad n-c=40.

So

100−c=40⇒c=60.100-c = 40 \Rightarrow c = 60.

Therefore, the answer is 60.

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

Take GATE 2024 CS (Set 1) as a test

Official answer key

GATE 2024 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 2024 CS (Set 1) answer key (PDF)
QTopicTypeMarksAnswer
1Quantitative AptitudeMCQ1D
2Quantitative AptitudeMCQ1A
3Verbal AptitudeMCQ1A
4Quantitative AptitudeMCQ1A
5Quantitative AptitudeMCQ1C
6Spatial AptitudeMCQ2A
7Verbal AptitudeMCQ2C
8Quantitative AptitudeMCQ2A
9Quantitative AptitudeMCQ2C
10Quantitative AptitudeMCQ2A
11Probability and StatisticsMSQ1B, C
12DatabasesMCQ1D
13DatabasesMCQ1A
14Operating SystemMSQ1B, C
15Theory of ComputationMSQ1C, D
16Compiler DesignMSQ1A, D
17Computer Organization and ArchitectureMSQ1A, B, C
18Digital LogicMSQ1A, C
19Computer NetworksMSQ1A, D
20Operating SystemMSQ1D
21DatabasesMSQ1A, C
22Discrete MathematicsNumerical12
23Discrete MathematicsNumerical116
24Compiler DesignNumerical16
25Computer NetworksMSQ1A, C
26DatabasesNumerical12
27Programming and Data StructuresMCQ1C
28Computer Organization and ArchitectureMCQ1C
29Linear AlgebraMCQ1B
30AlgorithmsMCQ1A
31Programming and Data StructuresMCQ1C
32Computer NetworksMCQ1C
33Probability and StatisticsMCQ1B
34Digital LogicMCQ1B
35CalculusMCQ1D
36Operating SystemMCQ2A
37Computer NetworksMCQ2B
38Compiler DesignMCQ2A
39Compiler DesignMCQ2D
40Compiler DesignMCQ2A
41AlgorithmsMSQ2C
42Programming and Data StructuresMCQ2D
43Theory of ComputationMSQ2B, C
44Programming and Data StructuresMSQ2B, D
45Digital LogicMSQ2A, B
46Linear AlgebraMSQ2A
47DatabasesMSQ2B, C, D
48DatabasesMSQ2B, C, D
49Programming and Data StructuresMCQ2A
50AlgorithmsMCQ2A
51AlgorithmsNumerical260
52Discrete MathematicsMSQ2B, D
53Computer Organization and ArchitectureNot in GATE 2027 syllabus: Secondary storage (magnetic disk)Numerical24096
54Computer NetworksNumerical240
55Computer Organization and ArchitectureNumerical23
56Digital LogicNumerical24
57Operating SystemNumerical214
58Discrete MathematicsMSQ2B, C
59Computer Organization and ArchitectureMSQ2B, C
60Theory of ComputationNumerical2179
61Operating SystemNumerical26596
62Probability and StatisticsNumerical20.37 to 0.38
63Theory of ComputationNumerical244
64Computer Organization and ArchitectureNumerical23
65Computer NetworksNumerical26

Questions about GATE 2024 CS (Set 1)

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

Is there negative marking in GATE 2024 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 2024 CS (Set 1)?

Outside General Aptitude, the biggest topics were Computer Organization and Architecture (10 marks), Computer Networks (9 marks), Databases (8 marks). The full topic-wise split is in the table on this page.

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

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

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

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

More GATE papers