The GATE Grind

GATE 2015 CS (CS3) – Previous Year Questions with Solutions

All 65 questions of GATE 2015 CS (CS3) with answers and explanations. Read each question, then practise it by topic or as a full paper.

Practise this paper in The GATE Grind →

  1. Question 1 (1 mark, Multiple choice) – Extreme focus on syllabus and studying for tests has become such a dominant concern of Indian students that they close their minds to anything to the…
  2. Question 2 (1 mark, Multiple choice) – Choose the analogy closest to Children : Paediatrician.
  3. Question 3 (1 mark, Multiple choice) – Fill the four blanks: The Tamil version of John Abraham-starrer Madras Cafe cleared by the Censor Board with no cuts last week, but the film’s…
  4. Question 4 (1 mark, Multiple choice) – If ROAD is coded URDG, how is SWAN coded?
  5. Question 5 (1 mark, Multiple choice) – A linear function f has f(−2)=29 and f(3)=39. Find f(5).
  6. Question 6 (2 marks, Multiple choice) – Alexander turned his attention towards India, since he had conquered Persia. Which inference is intended?
  7. Question 7 (2 marks, Multiple choice) – Experts felt that, despite possessing every technical skill needed for top-level batting, a batsman was unlikely to succeed because he lacked…
  8. Question 8 (2 marks, Numerical answer) – The chart shows annual exports and imports in crores of rupees from 2000 to 2007. In which year was the combined percentage increase in imports and…
  9. Question 9 (2 marks, Multiple choice) – Which equation describes the thick line in the plotted graph?
  10. Question 10 (2 marks, Multiple choice) – Five of P,Q,R,S,T,U receive the portfolios Home,Power,Defense,Telecom,Finance. U refuses a portfolio if S gets one. R wants Home or Finance or no…
  11. Question 11 (1 mark, Multiple choice) – What is printed?
  12. Question 12 (1 mark, Multiple choice) – U is the power set of S=1,2,3,4,5,6. T is cardinality, T′ complement in S, and T∖R set difference. Which is true?
  13. Question 13 (1 mark, Multiple choice) – For X(P,Q,R,S,T,U), F=PR→ST, PSU→QR. Which dependency in F⁺ is trivial?
  14. Question 14 (1 mark, Multiple choice) – For a system with n CPUs, the maximum number of processes in the Ready state is
  15. Question 15 (1 mark, Multiple choice) – Among SLR, canonical LR and LALR, select the method easiest to implement followed by the most powerful method.
  16. Question 16 (1 mark, Multiple choice) – Define X\#Y=X+Y on Boolean variables. S1: (P#Q)#R=P#(Q#R). S2: Q#R=R#Q. Which hold?
  17. Question 17 (1 mark, Numerical answer) – For function points: external inputs I=30, outputs O=60, enquiries E=23, files F=8, external interfaces N=2. Their weights are 4,5,4,10,7. Of fourteen…
  18. Question 18 (1 mark, Multiple choice) – Ten server pages have URLs http://www.yourname.com/var.html, with var from 1 to 10. A local edited copy of page 1 contains relative links such as…
  19. Question 19 (1 mark, Multiple choice) – Consider: I TCP connections are full duplex. II TCP has no selective-acknowledgement option. III TCP connections are message streams. Which are…
  20. Question 20 (1 mark, Multiple choice) – For i=0n i3=X, consider I (n4), II (n5), III O(n5), IV (n3). Which may replace X?
  21. Question 21 (1 mark, Numerical answer) – A binary tree has 200 leaves. How many nodes have exactly two children?
  22. Question 22 (1 mark, Numerical answer) – A hash table with 25 slots stores 2000 elements. Find its load factor α.
  23. Question 23 (1 mark, Multiple choice) – For M=pmatrix1&-1&2\\0&1&0\\1&2&1pmatrix, which vectors are eigenvectors for eigenvalue 1? α is any nonzero real number.
  24. Question 24 (1 mark, Multiple choice) – Evaluate x(1+x2)e-x.
  25. Question 25 (1 mark, Numerical answer) – How many four-digit numbers using only 1,2,3 have digits in nondecreasing order from left to right?
  26. Question 26 (1 mark, Multiple choice) – A room contains truth-tellers and liars. An unknown person tosses a fair coin unseen and says: “The result is head if and only if I am telling the…
  27. Question 27 (1 mark, Multiple choice) – Insert 71,65,84,69,67,83 into an empty binary search tree in this order. Which element is at the deepest level?
  28. Question 28 (1 mark, Multiple choice) – Evaluate the postfix expression: 10 5 + 60 6 / * 8 − .
  29. Question 29 (1 mark, Multiple choice) – Cinema(theater,address,capacity) stores theaters. Complete the query to always return addresses of maximum-capacity theaters, assuming non-NULL…
  30. Question 30 (1 mark, Multiple choice) – Find the minimum number of interchanges needed to convert the level-order array [89,19,50,17,12,15,2,5,7,11,6,9,100] into a max-heap.
  31. Question 31 (1 mark, Multiple choice) – Shared varP,varQ start false. These loops deliberately put the critical sections INSIDE the while bodies. Which property holds?
  32. Question 32 (1 mark, Multiple choice) – Over Σ=0,1, let L be represented by Σ*0011Σ*. Find the minimum DFA-state count for its complement.
  33. Question 33 (1 mark, Numerical answer) – A program is seeded with 100 artificial faults. Testing detects 159 faults, of which 75 are seeded. Assume real and seeded faults have the same…
  34. Question 34 (1 mark, Multiple choice) – A byte-addressable machine has 220 bytes of memory, sixteen-byte blocks and a direct-mapped cache with 212 lines. Consecutive addresses include…
  35. Question 35 (1 mark, Multiple choice) – A CSMA/CD network transmits at 100 Mbps over a 1 km cable without repeaters. Minimum frame size is 1250 bytes. Find the signal speed in km/s.
  36. Question 36 (2 marks, Numerical answer) – A motorbike starts from rest. Its velocity v in km/min at times t in minutes is: t 2 4 6 8 10 12 14 16 18 20 --- --- --- --- --- --- --- --- --- ---…
  37. Question 37 (2 marks, Multiple choice) – Worst-case mergesort takes 30 seconds for input size 64. Which best approximates the maximum size sortable in six minutes?
  38. Question 38 (2 marks, Multiple choice) – How many calls to get, including the initial and base-case calls, occur for get(6)?
  39. Question 39 (2 marks, Numerical answer) – A B+ tree has 12-byte search keys, 1024-byte blocks, 10-byte record pointers and 8-byte block pointers. Find the maximum keys in a nonleaf node.
  40. Question 40 (2 marks, Multiple choice) – For F=P+QR, consider S1 F=(4,5,6); S2 F=(0,1,2,3,7); S3 F=(4,5,6); S4 F=(0,1,2,3,7). Which truth-value pattern applies?
  41. Question 41 (2 marks, Multiple choice) – L1≤pL2, L3≤pL2 and L2≤pL4. Which are guaranteed? I: L4∈P implies L2∈P. II: L1∈P or L3∈P implies L2∈P. III: L1∈P iff L3∈P. IV: L4∈P implies L1,L3∈P.
  42. Question 42 (2 marks, Numerical answer) – What is printed?
  43. Question 43 (2 marks, Numerical answer) – What is printed?
  44. Question 44 (2 marks, Multiple choice) – Which languages are context-free? L 1=\ambnanbm:m,n1\; L 2=\ambnambn:m,n1\; L 3=\ambn:m=2n+1\.
  45. Question 45 (2 marks, Multiple choice) – Which policies prevent deadlock with mutually exclusive resources? I: Acquire all resources at the beginning; if any are unavailable, release all…
  46. Question 46 (2 marks, Numerical answer) – In network 200.10.11.144/27, find the final octet of the last host-assignable IP address, in decimal.
  47. Question 47 (2 marks, Numerical answer) – Two systems are 8000 km apart. Bandwidth is 500106 bits/s; propagation speed is 4106 metres/s; average packet size is 107 bits. Neglect processing…
  48. Question 48 (2 marks, Numerical answer) – A pipeline reservation table uses S1 at times 1 and 5, S2 at times 2 and 4, and S3 at time 3. Find its minimum average initiation latency.
  49. Question 49 (2 marks, Multiple choice) – Instructions have form OP Ri,Rj,Rk, writing Ri and reading Rj,Rk: S1: I2 and I5 have an anti-dependence. S2: I2 and I4 have an anti-dependence. S3: An…
  50. Question 50 (2 marks, Multiple choice) – In C, Y has length n and X is n×n, 2≤n≤10. Initially Y is zero and X[i][j]=i+j; all of X lies in one memory page frame. Segment 1 loops i=0,…,n−1 with…
  51. Question 51 (2 marks, Multiple choice) – A partial schedule is: Time T1 T2 --- --- --- 1 read(A) 2 write(A) 3 read(C) 4 write(C) 5 read(B) 6 write(B) 7 read(A) 8 commit 9 read(B) T1 fails…
  52. Question 52 (2 marks, Multiple choice) – The homogeneous equations px+qy+rz=0, qx+ry+pz=0, rx+py+qz=0 have a nonzero real solution. Which condition follows for real p,q,r?
  53. Question 53 (2 marks, Numerical answer) – How many times is printf executed?
  54. Question 54 (2 marks, Multiple choice) – For nonzero x, af(x)+bf(1/x)=1/x-25, where a≠b. Find 12 f(x)\,dx, assuming the parameters make the equations nonsingular.
  55. Question 55 (2 marks, Numerical answer) – A connected undirected graph has 100 vertices and 300 edges. Its minimum spanning-tree weight is 500. Every edge weight is increased by five. Find the…
  56. Question 56 (2 marks, Numerical answer) – Two hosts connect through one packet switch using 107 bits/s links. Each link has 20 μs propagation delay. The switch begins forwarding a packet 35 μs…
  57. Question 57 (2 marks, Multiple choice) – Processes have (arrival,processing) times A=(0,3), B=(1,6), C=(4,4), D=(6,2). Which policy gives the lowest average turnaround time?
  58. Question 58 (2 marks, Multiple choice) – Program X and the control-flow diagrams of Y and sequential composition Z are shown. Give their McCabe cyclomatic complexities in order.
  59. Question 59 (2 marks, Numerical answer) – For unknown number bases x and y, (43)ₓ=(y3)₈. How many integer solutions (x,y) are possible?
  60. Question 60 (2 marks, Multiple choice) – On ordered pairs of positive integers, ((p,q),(r,s))∈R iff p−s=q−r. Which describes R?
  61. Question 61 (2 marks, Numerical answer) – X1,X2,X3 are independent, each equally likely zero or one. Y=(X1X2) XOR X3, where juxtaposition denotes multiplication. Find P(Y=0 X3=0).
  62. Question 62 (2 marks, Numerical answer) – Find the number of prime implicants of f(w,x,y,z)=Σ(0,2,4,5,6,10).
  63. Question 63 (2 marks, Numerical answer) – Find DOSOMETHING(c,a,n) for k=4,c=(1,0,1,1),a=2,n=8.
  64. Question 64 (2 marks, Multiple choice) – For positive integer n, f(n)=n and g(n)=n1+ n. Which hold? I: f=O(g). II: f=Ω(g).
  65. Question 65 (2 marks, Multiple choice) – Grammar G has S→F H, F→p c, H→d c. S1: LL(1) can parse every string using grammar G. S2: LR(1) can parse every string using grammar G. Which are…