Skip to content
GATEiit

GATE CSE 2018 question paper with answers

Official paper organised by IIT Guwahati: 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. Q1Fill in the blanks: there, their, they'reGeneral Aptitude1M · MCQAns: B
  2. Q2Word for an unorganised investigationGeneral Aptitude1M · MCQAns: A
  3. Q3Area of circle on the diagonal of a square of area dGeneral Aptitude1M · MCQAns: D
  4. Q4Smallest number leaving remainder 7 on division by 20, 42, 76General Aptitude1M · MCQAns: C
  5. Q5Missing number in 2, 12, 60, 240, 720, 1440, _, 0General Aptitude1M · MCQAns: B
  6. Q6Total gift money given to senior citizensGeneral Aptitude2M · MCQAns: B
  7. Q7Value of xyz from three exponential equationsGeneral Aptitude2M · MCQAns: C
  8. Q8Ratio of males to females among party attendeesGeneral Aptitude2M · MCQAns: B
  9. Q9Sum of angles DEC and BFC in a figureGeneral Aptitude2M · MCQAns: A
  10. Q10Most likely outcome of rolling a die with 4 green and 2 red faces 7 timesGeneral Aptitude2M · MCQAns: C

Computer Science and Information Technology (Q11–Q65)

  1. Q11Generating function of the sequence a_n = 2n + 3Engineering Mathematics1M · MCQAns: D
  2. Q12C struct accessed through a char pointerProgramming and Data Structures1M · MCQAns: A
  3. Q13Queue on a singly linked list: enqueue at head, dequeue at tailProgramming and Data Structures1M · MCQAns: B
  4. Q14XOR / XNOR identity that is NOT correctDigital Logic1M · MCQAns: D
  5. Q15Characteristics used in RISC processor designComputer Organization and Architecture1M · MCQAns: D
  6. Q16States of minimal DFA equivalent to an n-state NFATheory of Computation1M · MCQAns: D
  7. Q17Closure property of recursively enumerable languagesTheory of Computation1M · MCQAns: B
  8. Q18FALSE statement about compiler phasesCompiler Design1M · MCQAns: B
  9. Q19Order of events when an interrupt is servicedOperating System1M · MCQAns: A
  10. Q20Page fault rate from effective memory access timeOperating System1M · MCQAns: B
  11. Q21Many-to-one relationship with total participation in ER modelDatabases1M · MCQAns: A
  12. Q22SQL join whose output is a superset of the other joinsDatabases1M · MCQAns: D
  13. Q23Bit lengths of UDP port, MAC address, IPv6 Next Header, TCP sequence numberComputer Networks1M · MCQAns: C
  14. Q24cwnd growth during TCP slow startComputer Networks1M · MCQAns: C
  15. Q25Probability that a dice game is won on the third trialEngineering Mathematics1M · NATAns: 0.021 to 0.024
  16. Q26Definite integral of x cos(x^2) from 0 to pi/4Engineering Mathematics1M · NATAns: 0.27 to 0.3
  17. Q27Largest eigenvalue of the rank-one matrix u v^TEngineering Mathematics1M · NATAns: 3
  18. Q28Chromatic number of a six-vertex graphEngineering Mathematics1M · NATAns: 3
  19. Q29Largest proper subgroup of a group of order 84Engineering Mathematics1M · NATAns: 42
  20. Q30Height of binary tree from postorder and inorder traversalsProgramming and Data Structures1M · NATAns: 4
  21. Q31Number of recursive calls counted in a C programProgramming and Data Structures1M · NATAns: 4
  22. Q32Self-loop states in a two flip-flop shift registerDigital Logic1M · NATAns: 2
  23. Q33Percentage of time available for read/write with DRAM refreshComputer Organization and Architecture1M · NATAns: 59 to 60
  24. Q34Largest maximum demand K that avoids deadlockOperating System1M · NATAns: 2
  25. Q35Wrap-around time of TCP sequence numbers at 1 GbpsComputer Networks1M · NATAns: 34 to 35
  26. Q36Matrix whose only eigenvectors are multiples of one vectorEngineering Mathematics2M · MCQAns: D
  27. Q37Which sets of numbers and functions are countableEngineering Mathematics2M · MCQAns: D
  28. Q38Model sizes of an exists-forall first-order sentenceEngineering Mathematics2M · MCQAns: A
  29. Q39Swapping string pointers by value and by address in CProgramming and Data Structures2M · MCQAns: A
  30. Q40Cross edges in DFS tree and level differences in BFS treeAlgorithms2M · MCQAns: A
  31. Q41Explicitly computed pairs in optimal matrix chain parenthesization of five matricesAlgorithms2M · MCQAns: C
  32. Q42Value returned by nested halving loops for input 2^40Programming and Data Structures2M · MCQAns: B
  33. Q43Which decimals are exactly representable in 5.3 unsigned fixed pointDigital Logic2M · MCQAns: C
  34. Q44Tag field length for a K-way set-associative cacheComputer Organization and Architecture2M · MCQAns: B
  35. Q45Which of four a^m b^n c^p d^q languages are context-freeTheory of Computation2M · MCQAns: B
  36. Q46Decidability of four problems on grammars, Turing machines and NFAsTheory of Computation2M · MCQAns: D
  37. Q47Token sequence from longest-match lexer on bbaacabcCompiler Design2M · MCQAns: D
  38. Q48Precedence and associativity of the dollar and hash operators from a parse treeCompiler Design2M · MCQAns: A
  39. Q49Banker's algorithm safety check for four processes and resources E, F, GOperating System2M · MCQAns: A
  40. Q50Placing empty/full semaphores in a producer-consumer solutionOperating System2M · MCQAns: C
  41. Q51Query not equivalent to r join selection on s using left outer joinDatabases2M · MCQAns: C
  42. Q52Which registration schema is in 3NF but not BCNFDatabases2M · MCQAns: B
  43. Q53Degree plus ten times components in adjacent-swap permutation graphEngineering Mathematics2M · NATAns: 109
  44. Q54Bayes' theorem: Guwahati high temperature given Delhi high temperatureEngineering Mathematics2M · NATAns: 0.6 to 0.62
  45. Q55Number of prints by recursive Count(1024,1024)Programming and Data Structures2M · NATAns: 10230
  46. Q56Number of distinct min-heaps on the values 1 to 7Programming and Data Structures2M · NATAns: 80
  47. Q57Choosing x to maximize number of minimum spanning treesAlgorithms2M · NATAns: 4
  48. Q58Optimal minus greedy value for 0/1 knapsack with capacity 11Algorithms2M · NATAns: 16
  49. Q59Essential prime implicants of a 4-variable function with don't caresDigital Logic2M · NATAns: 3
  50. Q60Clock cycles for 100 instructions with variable-length PO stageComputer Organization and Architecture2M · NATAns: 219
  51. Q61Maximum number of 1F instructions in a 16-bit expanding opcodeComputer Organization and Architecture2M · NATAns: 32
  52. Q62Order of a unary language accepted by a three-state automatonTheory of Computation2M · NATAns: 2
  53. Q63Power consumed by SSTF disk scheduling with reversal costOperating System2M · NATAns: 85
  54. Q64Fragment offset of the third IPv4 fragment with MTU 600Computer Networks2M · NATAns: 144
  55. Q65Maximum distance for carrier sense to avoid a collisionComputer Networks2M · NATAns: 50