Skip to content
GATEiit

GATE CSE 2017 Session 2 question paper with answers

Official paper organised by IIT Roorkee: 65 questions, 100 marks. Every answer is from the official final answer key. Open any question to try it, see the answer and the concept behind it.

Practise this paper free →Official question paper (PDF)Official answer key (PDF)

General Aptitude (Q1–Q10)

  1. Q1Pair of words that are not synonymsGeneral Aptitude1M · MCQAns: D
  2. Q2Saturn is ___ to be seen with the naked eyeGeneral Aptitude1M · MCQAns: B
  3. Q3Five buildings in a row: which is in the middleGeneral Aptitude1M · MCQAns: A
  4. Q4Number of multiple choice questions in a 100-mark testGeneral Aptitude1M · MCQAns: B
  5. Q5Probability that two socks drawn are of the same colourGeneral Aptitude1M · MCQAns: D
  6. Q6Word revealing the author's view of ideology versus literatureGeneral Aptitude2M · MCQAns: B
  7. Q7Three wrongly labelled boxes of apples and orangesGeneral Aptitude2M · MCQAns: B
  8. Q8Number of digits in the cube of a 30-digit number starting 47General Aptitude2M · MCQAns: A
  9. Q9Number of roots of e^x + 0.5x^2 - 2 = 0 in [-5, 5]General Aptitude2M · MCQAns: C
  10. Q10Air pressure contour plot: most likely thunderstorm regionGeneral Aptitude2M · MCQAns: C

Computer Science and Information Technology (Q11–Q65)

  1. Q11Hexadecimal BCA9 to octalDigital Logic1M · MCQAns: D
  2. Q12Match C declarations with their memory meaningProgramming and Data Structures1M · MCQAns: A
  3. Q13Match Hanoi, binary search, heap sort, matrix addition to complexitiesAlgorithms1M · MCQAns: C
  4. Q14Closure of context-free languages: union, complement, minus regular, intersectionTheory of Computation1M · MCQAns: B
  5. Q15Match compiler inputs to the phase that processes themCompiler Design1M · MCQAns: C
  6. Q16Relative power of canonical LR, SLR and LALR parsersCompiler Design1M · MCQAns: A
  7. Q17What all threads of a process shareOperating System1M · MCQAns: B
  8. Q18File allocation schemes with no external fragmentationOperating System1M · MCQAns: D
  9. Q19True statements about RIP and OSPF routing protocolsComputer Networks1M · MCQAns: C
  10. Q20Find R and S from a derivative value and a definite integralEngineering Mathematics1M · MCQAns: C
  11. Q21Translate an English statement about rain, cold and pleasant into logicEngineering Mathematics1M · MCQAns: A
  12. Q22Decimal value of an IEEE-754 single precision bit patternComputer Organization and Architecture1M · MCQAns: C
  13. Q23Circular queue as singly linked list with FRONT and REAR pointersProgramming and Data Structures1M · MCQAns: B
  14. Q24Output of printxy(1,1) with pointer to a parameterProgramming and Data Structures1M · MCQAns: C
  15. Q25Possible BFS visiting order of a six-node graphAlgorithms1M · MCQAns: D
  16. Q26Language of S → XY, X → aX | a, Y → aYb | εTheory of Computation1M · MCQAns: C
  17. Q27When the table for relationship R can be merged into entity ADatabases1M · MCQAns: C
  18. Q28Connected UDP sockets: multiple peers and calling connect againComputer Networks1M · MCQAns: B
  19. Q29Records deleted from T1 with cascade and set NULL foreign keysDatabases1M · NATAns: 0
  20. Q30Maximum router addresses in the IPv4 record route optionComputer Networks1M · NATAns: 9
  21. Q31Pairs to add to a five-element partial order to make a latticeEngineering Mathematics1M · NATAns: -0.01 to 0.01
  22. Q32Rank of the sum of two 3×3 matricesEngineering Mathematics1M · NATAns: 2
  23. Q33Maximum vertices in a graph with 25 edges and minimum degree 3Engineering Mathematics1M · NATAns: 16
  24. Q34Base b in which x^2 - 13x + 36 = 0 has roots 5 and 6Digital Logic1M · NATAns: 8
  25. Q35Minimum DFA states for w1 a w2 with |w1| = 2, |w2| ≥ 3Theory of Computation1M · NATAns: 8
  26. Q36P does not apply given Q does not apply: conditional probabilityEngineering Mathematics2M · MCQAns: A
  27. Q37Which Boolean identity in w, x, y, z is incorrectDigital Logic2M · MCQAns: C
  28. Q38Minimum POS form with don't-care conditionsDigital Logic2M · MCQAns: A
  29. Q39Miss rates of L1 and L2 from a two-level cache AMAT of 2 cyclesComputer Organization and Architecture2M · MCQAns: A
  30. Q40Solve T(n) = 2T(√n) + 1Algorithms2M · MCQAns: B
  31. Q41Expectation of Y from its probability generating functionEngineering Mathematics2M · MCQAns: B
  32. Q42Removing left recursion from an expression grammarCompiler Design2M · MCQAns: C
  33. Q43Safe state and deadlock check with 9 tape drivesOperating System2M · MCQAns: B
  34. Q44Minimum Hamming distance and error correction of a 4-codeword codeComputer Networks2M · MCQAns: A
  35. Q45Transmission and propagation delay for a 50,000-byte fileComputer Networks2M · MCQAns: D
  36. Q46Post-order traversal of a BST from its pre-order traversalProgramming and Data Structures2M · MCQAns: B
  37. Q47Precondition for division by repeated subtraction loopProgramming and Data Structures2M · MCQAns: C
  38. Q48Time complexity of nested loop with step iAlgorithms2M · MCQAns: C
  39. Q49Extended transition function of an epsilon-NFA on abaTheory of Computation2M · MCQAns: C
  40. Q50Classifying four languages: regular, CFL, DCFL, recursiveTheory of Computation2M · MCQAns: D
  41. Q51Which decision problems on regex, CFG and TM are undecidableTheory of Computation2M · MCQAns: D
  42. Q52T flip-flop inputs for a 2-bit saturating up-counterDigital Logic2M · MCQAns: B
  43. Q53Output of a bidirectional bubble sort snippetProgramming and Data Structures2M · NATAns: 3
  44. Q54Number of conflict serializable schedules of two transactionsDatabases2M · NATAns: 54
  45. Q55Average read access time with split L1 and L2 cachesComputer Organization and Architecture2M · NATAns: 4.72
  46. Q56SQL query with >ALL on empty set and >ANYDatabases2M · NATAns: 7
  47. Q57Coefficient difference from the generating function (1+z)/(1-z)^3Engineering Mathematics2M · NATAns: 15
  48. Q58E[(X+2)^2] for a Poisson variable with mean 5Engineering Mathematics2M · NATAns: 54
  49. Q59Maximum order of a B+ tree nodeDatabases2M · NATAns: 52
  50. Q60Expected Huffman-encoded length of a 100-character messageAlgorithms2M · NATAns: 225
  51. Q61Average waiting time under preemptive priority schedulingOperating System2M · NATAns: 29
  52. Q62Largest absolute eigenvalue from a characteristic polynomialEngineering Mathematics2M · NATAns: 5
  53. Q63Tag bits for a direct mapped cache with 512 linesComputer Organization and Architecture2M · NATAns: 18
  54. Q64Output of pre/post increment and decrement programProgramming and Data Structures2M · NATAns: 0
  55. Q65strlen with pointer arithmetic and i[p] array indexingProgramming and Data Structures2M · NATAns: 2