GATE 2017 CS (Set 2) question paper PDF and answer key

The official GATE 2017 Computer Science & Information Technology (Set 2) 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 2017. Spotted a mistake? Email team@lemyte.com.

General Aptitude
10 · 15 marks
Computer Science & Information Technology
55 · 85 marks
MCQ / MSQ / NAT
45 / 0 / 20
Marks to all
None

Where the marks were

GATE 2017 CS (Set 2) 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
Programming and Data Structures813
Theory of Computation69
Algorithms58
Computer Organization and Architecture58
Databases58
Computer Networks57
Operating System46
Discrete Mathematics56
Probability and Statistics36
Digital Logic36
Compiler Design34
Linear Algebra23
Calculus11

Free solved questions

5 solved questions from GATE 2017 CS (Set 2)

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.

Q7 · General Aptitude · MCQ · 2 marks

X is a 30 digit number starting with the digit 4 followed by the digit 7. Then the number X3X^3 will have:

  • (A)
    90 digits
  • (B)
    91 digits
  • (C)
    92 digits
  • (D)
    93 digits

Answer (official key): A

Solution

Since XX is a 30-digit number starting with 47, it satisfies approximately:

4.7×1029≤X<4.8×1029.4.7\times 10^{29} \le X < 4.8\times 10^{29}.

Cubing,

(4.7)3×1087≤X3<(4.8)3×1087.(4.7)^3 \times 10^{87} \le X^3 < (4.8)^3 \times 10^{87}.

Now,

4.73=103.8234.7^3 = 103.823

and

4.83=110.592.4.8^3 = 110.592.

So X3X^3 lies between approximately:

1.03823×10891.03823\times 10^{89}

and

1.10592×1089.1.10592\times 10^{89}.

A number in this range has 90 digits.

Therefore, the correct answer is Option A.

Q8 · General Aptitude · MCQ · 2 marks

“We lived in a culture that denied any merit to literary works, considering them important only when they were handmaidens to something seemingly more urgent — namely ideology. This was a country where all gestures, even the most private, were interpreted in political terms.”

The author’s belief that ideology is not as important as literature is revealed by the word:

  • (A)
    culture
  • (B)
    seemingly
  • (C)
    urgent
  • (D)
    political

Answer (official key): B

Solution

The word seemingly shows that ideology appeared to be more urgent, but the author does not fully accept that it truly was more important.

This reveals the author's belief that literature should not be treated as inferior to ideology.

Therefore, the correct answer is Option B.

Q27 · Discrete Mathematics · Numerical · 1 mark

Consider the set X={a,b,c,d,e}X=\{a,b,c,d,e\} under the partial ordering

R={(a,a),(a,b),(a,c),(a,d),(a,e),(b,b),(b,c),(b,e),(c,c),(c,e),(d,d),(d,e),(e,e)}.R=\{(a,a),(a,b),(a,c),(a,d),(a,e),(b,b),(b,c),(b,e),(c,c),(c,e),(d,d),(d,e),(e,e)\}.

The Hasse diagram of the partial order (X,R)(X,R) is shown below.

Hasse diagram for Q21

The minimum number of ordered pairs that need to be added to RR to make (X,R)(X,R) a lattice is __________.

Answer (official key): -0.01 to 0.01

Solution

A poset is a lattice if every pair of elements has both a least upper bound and a greatest lower bound.

From the given Hasse diagram:

  • aa acts as the least element.
  • ee acts as the greatest element.
  • For each pair among b,c,db,c,d, the required meet and join already exist.

Therefore, the poset is already a lattice.

No ordered pair needs to be added.

The answer is 0.

Q62 · Computer Organization and Architecture · Numerical · 2 marks

Consider a machine with a byte-addressable main memory of 2322^{32} bytes divided into blocks of size 32 bytes.

Assume that a direct mapped cache having 512 cache lines is used with this machine.

The size of the tag field in bits is __________.

Answer (official key): 18

Solution

The main memory is byte-addressable with size:

2322^{32}

bytes, so the address size is 32 bits.

Block size is:

32=2532 = 2^5

bytes, so block offset bits:

5.5.

The cache has 512 lines:

512=29.512 = 2^9.

Since the cache is direct mapped, index bits:

9.9.

Therefore, tag bits:

32−9−5=18.32 - 9 - 5 = 18.

So the answer is 18.

Q63 · Databases · Numerical · 2 marks

In a B+ tree, if the search-key value is 8 bytes long, the block size is 512 bytes and the block pointer size is 2 bytes, then the maximum order of the B+ tree is __________.

Answer (official key): 52

Solution

Let the order of the B+ tree be mm.

An internal node with mm pointers has:

m−1m-1

search-key values.

Each pointer takes 2 bytes and each search-key value takes 8 bytes.

So the node size requirement is:

2m+8(m−1)≤512.2m + 8(m-1) \le 512.

Simplify:

2m+8m−8≤5122m + 8m - 8 \le 512 10m≤52010m \le 520 m≤52.m \le 52.

Therefore, the maximum order of the B+ tree is 52.

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

Take GATE 2017 CS (Set 2) as a test

Official answer key

GATE 2017 CS (Set 2) answer key

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

Download the official GATE 2017 CS (Set 2) answer key (PDF)
QTopicTypeMarksAnswer
1Verbal AptitudeMCQ1D
2Quantitative AptitudeMCQ1D
3Analytical AptitudeMCQ1A
4Verbal AptitudeMCQ1B
5Quantitative AptitudeMCQ1B
6Spatial AptitudeMCQ2C
7Quantitative AptitudeMCQ2A
8Verbal AptitudeMCQ2B
9Analytical AptitudeMCQ2B
10Quantitative AptitudeMCQ2C
11Compiler DesignMCQ1C
12Theory of ComputationNumerical18
13Theory of ComputationMCQ1C
14Linear AlgebraNumerical12
15Theory of ComputationMCQ1B
16Operating SystemMCQ1D
17Discrete MathematicsMCQ1A
18AlgorithmsMCQ1C
19CalculusMCQ1C
20Computer NetworksMCQ1B
21Operating SystemMCQ1B
22Programming and Data StructuresMCQ1C
23Discrete MathematicsNumerical116
24Compiler DesignMCQ1A
25Computer Organization and ArchitectureMCQ1C
26DatabasesNumerical10
27Discrete MathematicsNumerical1-0.01 to 0.01
28AlgorithmsMCQ1D
29DatabasesMCQ1C
30Programming and Data StructuresMCQ1A
31Programming and Data StructuresMCQ1B
32Computer NetworksNumerical19
33Computer Organization and ArchitectureMCQ1D
34Computer NetworksMCQ1C
35Discrete MathematicsNumerical18
36Compiler DesignMCQ2C
37Probability and StatisticsMCQ2B
38Theory of ComputationMCQ2D
39Digital LogicMCQ2A
40Programming and Data StructuresMCQ2C
41Theory of ComputationMCQ2D
42AlgorithmsMCQ2C
43Computer NetworksMCQ2D
44Operating SystemMCQ2B
45Digital LogicMCQ2B
46Probability and StatisticsMCQ2A
47AlgorithmsMCQ2B
48Theory of ComputationMCQ2C
49Digital LogicMCQ2C
50Computer Organization and ArchitectureMCQ2A
51Computer NetworksMCQ2A
52Programming and Data StructuresMCQ2B
53DatabasesNumerical27
54Programming and Data StructuresNumerical22
55Linear AlgebraNumerical25
56Discrete MathematicsNumerical215
57DatabasesNumerical254
58AlgorithmsNumerical2225
59Computer Organization and ArchitectureNumerical24.72
60Programming and Data StructuresNumerical20
61Operating SystemNumerical229
62Computer Organization and ArchitectureNumerical218
63DatabasesNumerical252
64Programming and Data StructuresNumerical23
65Probability and StatisticsNumerical254

Questions about GATE 2017 CS (Set 2)

How many questions are in the GATE 2017 CS (Set 2) 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 45 MCQs, 20 numerical answer (NAT) questions. The paper lasted 3 hours.

Is there negative marking in GATE 2017 CS (Set 2)?

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 2017 CS (Set 2)?

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

Were any GATE 2017 CS (Set 2) questions awarded marks to all?

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

Where does this GATE 2017 CS (Set 2) answer key come from?

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

More GATE papers