The GATE Grind

GATE 2013 CS (CS1) – Previous Year Questions with Solutions

All 65 questions of GATE 2013 CS (CS1) 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) – Choose the closest meaning of “nadir”.
  2. Question 2 (1 mark, Multiple choice) – Universalism is to particularism as diffuseness is to .
  3. Question 3 (1 mark, Multiple choice) – What is the maximum sum of the sequence 44,42,40,…?
  4. Question 4 (1 mark, Multiple choice) – Were you a bird, you in the sky.
  5. Question 5 (1 mark, Multiple choice) – Choose the grammatically incorrect sentence.
  6. Question 6 (2 marks, Multiple choice) – Find 11+2+12+3+13+4++180+81.
  7. Question 7 (2 marks, Multiple choice) – A two-digit integer is chosen uniformly from all two-digit integers between 1 and 100. What is the probability it is not divisible by seven?
  8. Question 8 (2 marks, Multiple choice) – After several defeats in wars, Robert Bruce went in exile and wanted to commit suicide. Just before committing suicide, he came across a spider…
  9. Question 9 (2 marks, Multiple choice) – A tourist travels half the journey by train at 60 km/h, half the remainder by bus at 30 km/h, and the rest by cycle at 10 km/h. Find average speed in…
  10. Question 10 (2 marks, Multiple choice) – Current erection cost of a structure is ₹13200. Daily labour wages rise by one fifth of current wages and working hours decrease by one twenty-fourth…
  11. Question 11 (1 mark, Multiple choice) – On the integers define x y=x2+y2. Which property holds?
  12. Question 12 (1 mark, Multiple choice) – Cars per minute at a junction between 5 PM and 6 PM follow a Poisson distribution with mean three. Find the probability of fewer than three cars in a…
  13. Question 13 (1 mark, Multiple choice) – Which determinant does NOT equal vmatrix1&x&x2\\1&y&y2\\1&z&z2vmatrix?
  14. Question 14 (1 mark, Multiple choice) – Find the smallest integer representable in eight-bit two’s complement.
  15. Question 15 (1 mark, Multiple choice) – Inputs D₀,D₁,D₂,D₃ and outputs X₀,X₁,V have rows: 0000→xx0; 1000→001; x100→011; xx10→101; xxx1→111. x is don’t-care, and V=1 iff input is valid. What…
  16. Question 16 (1 mark, Multiple choice) – What is the tightest upper bound on swaps used by selection sort on n numbers?
  17. Question 17 (1 mark, Multiple choice) – What is the tightest worst-case upper bound for inserting into a binary search tree with n nodes?
  18. Question 18 (1 mark, Multiple choice) – L₁=∅ and L₂=a. Evaluate L 1L 2* L 1*.
  19. Question 19 (1 mark, Multiple choice) – A grammar has no ε-productions or unit productions (the source gives types A→ε and A→a). What is the maximum number of bottom-up reduce moves when…
  20. Question 20 (1 mark, Multiple choice) – Priorities are proportional to process waiting times and start at zero. Every T time units the scheduler reevaluates priorities and selects the next…
  21. Question 21 (1 mark, Multiple choice) – Match P: service-oriented computing, Q: heterogeneous communicating systems, R: information representation, S: process description to (1)…
  22. Question 22 (1 mark, Multiple choice) – Which transport protocols are used respectively for real-time multimedia, file transfer, DNS and email?
  23. Question 23 (1 mark, Multiple choice) – X signs message M, encrypts the message/signature pair and sends it to Y. Which key order is used to sign/encrypt and then decrypt/verify?
  24. Question 24 (1 mark, Multiple choice) – S and D communicate through two intermediate routers. How many network-layer and data-link-layer visits occur per packet?
  25. Question 25 (1 mark, Multiple choice) – An index is clustered if
  26. Question 26 (1 mark, Multiple choice) – Binary semaphores a,b,c,d start at one. X needs a,b,c; Y needs b,c,d; Z needs c,d,a, releasing all after its code. Which acquisition order is…
  27. Question 27 (1 mark, Multiple choice) – Which are false? 1: Every nondeterministic TM has an equivalent deterministic TM. 2: TM-recognizable languages are closed under union and complement.…
  28. Question 28 (1 mark, Multiple choice) – Which are true? 1: Undirected cycle detection is in P. 2: Undirected cycle detection is in NP. 3: Every NP-complete problem has a nondeterministic…
  29. Question 29 (1 mark, Multiple choice) – What is Bellman–Ford’s running time on a complete graph with n vertices?
  30. Question 30 (1 mark, Multiple choice) – A k-way cache has v sets of k consecutive lines, with set s preceding s+1. Memory blocks are numbered from zero. To which line range can block j map?
  31. Question 31 (1 mark, Multiple choice) – Which does NOT represent XNOR of x,y?
  32. Question 32 (1 mark, Multiple choice) – Which function is continuous at x=3?
  33. Question 33 (1 mark, Multiple choice) – At x=0,0.3,0.6,0.9,1.2,1.5,1.8,2.1,2.4,2.7,3.0 the values of f are 0,0.09,0.36,0.81,1.44,2.25,3.24,4.41,5.76,7.29,9.00. Approximate its integral from…
  34. Question 34 (1 mark, Multiple choice) – An undirected random graph has eight vertices, each possible edge independently present with probability one half. Find the expected number of…
  35. Question 35 (1 mark, Multiple choice) – For undirected graphs, P: The number of odd-degree vertices is even. Q: The sum of all vertex degrees is even. Which hold?
  36. Question 36 (2 marks, Multiple choice) – The line graph L(G) has one vertex per edge of simple G, and joins vertices iff their G edges share an endpoint. Which are always true? P: A cycle’s…
  37. Question 37 (2 marks, Multiple choice) – With F(x)=“x is my friend” and P(x)=“x is perfect”, translate “None of my friends are perfect”.
  38. Question 38 (2 marks, Multiple choice) – Micro-operations are MBR←PC; MAR←X; PC←Y; Memory←MBR. Which operation can they implement?
  39. Question 39 (2 marks, Multiple choice) – A disk has sixteen surfaces, 16384 cylinders and 64 sectors per surface in a cylinder, with 512 bytes per sector. Address order is…
  40. Question 40 (2 marks, Multiple choice) – How many elements can heap sort sort in ( n) time?
  41. Question 41 (2 marks, Multiple choice) – What is the asymptotic return value, rather than running time?
  42. Question 42 (2 marks, Multiple choice) – L 1=\0p1q0r:p,q,r0\ and L 2=\0p1q0r:p,q,r0,p r\. Which statement is false?
  43. Question 43 (2 marks, Multiple choice) – For the shown DFA A, which are false? 1: Its language complement is context-free. 2: L(A)=L((11*0+0)(0+1)*0*1*). 3: A is minimal. 4: A accepts all…
  44. Question 44 (2 marks, Multiple choice) – x initially zero is shared by W,X,Y,Z. Each process waits on counting semaphore S=2, reads x, computes and stores its update, signals S and…
  45. Question 45 (2 marks, Multiple choice) – Schemas: Students(rollno,sname), Courses(courseno,cname), Registration(rollno,courseno,percent). Which queries give distinct student names scoring >90…
  46. Question 46 (2 marks, Multiple choice) – An Ethernet LAN sends 10000-bit frames at 500 Mb/s. Signals travel at 200000 km/s. Find maximum cable length in km for collision detection.
  47. Question 47 (2 marks, Multiple choice) – An IPv4 datagram has M=0, HLEN=10, total length 400 and fragment offset 300. Identify fragment position and zero-based first/last payload-byte…
  48. Question 48 (2 marks, Multiple choice) – Filled circles in the shown access graphs are methods, unfilled circles attributes. Move method m from M₁ to M₂ while keeping attributes fixed. What…
  49. Question 49 (2 marks, Multiple choice) – X computes a[i]=f(i), then ExitX(R,S), for i=0,…,n−1. Y calls EntryY(R,S), then computes b[i]=g(a[i]), for each i. R,S are binary semaphores initially…
  50. Question 50 (2 marks, Multiple choice) – Two LR(1) item sets share core X→c·X, X→·cX, X→·d. Their lookaheads are respectively c,d and end-marker. Which claims about their LALR merge are…
  51. Question 51 (2 marks, Multiple choice) – Which problems are undecidable? 1: Given CFG G, is L(G)=∅? 2: Given CFG G, is L(G)=Σ*? 3: Given TM M, is L(M) regular? 4: Given DFA A and NFA N, is…
  52. Question 52 (2 marks, MTA) – p starts at five. Find f(p,p). The first parameter is passed by reference and the second by value.
  53. Question 53 (2 marks, Multiple choice) – A BST has preorder 30,20,10,15,25,23,39,35,42. Find its postorder.
  54. Question 54 (2 marks, Multiple choice) – Along with Enqueue/Dequeue, a queue supports MultiDequeue(Q), which sets m=k and repeatedly Dequeues while Q is nonempty and m>0, decrementing m. For…
  55. Question 55 (2 marks, Multiple choice) – A pipeline has FI,DI,FO,EI,WO stage delays 5,7,10,8,6 ns, with one-ns buffers after stages and no branch prediction. A twelve-instruction program has…
  56. Question 56 (2 marks, Multiple choice) – A RAM chip stores 1024 eight-bit words. How many 2-to-4 decoders with enable are needed to build 16K×16 RAM from 1K×8 chips?
  57. Question 57 (2 marks, MTA) – Which formula is NOT equivalent to x( y\, z\,)?
  58. Question 58 (2 marks, Multiple choice) – A processor permits register operands only, at most two sources and one destination per instruction. All variables are dead after this segment. Only…
  59. Question 59 (2 marks, Multiple choice) – For the same register-only architecture and complete segment below, apply register allocation only, with no code motion. Find minimum registers to…
  60. Question 60 (2 marks, Multiple choice) – A has length five; oldc,newc each have length three. The intended operation replaces each original A character at most once using the corresponding…
  61. Question 61 (2 marks, Multiple choice) – A has length five; oldc,newc each have length three. The intended operation replaces each original A character at most once using the corresponding…
  62. Question 62 (2 marks, Multiple choice) – Virtual addresses are 46 bits, physical addresses 32 bits. A three-level page table has one-page T₁, entries of T₁ pointing to T₂ pages and T₂ entries…
  63. Question 63 (2 marks, Multiple choice) – Virtual addresses are 46 bits, physical addresses 32 bits. A three-level page table has one-page T₁, entries of T₁ pointing to T₂ pages and T₂ entries…
  64. Question 64 (2 marks, Multiple choice) – R(A,B,C,D,E,F,G,H) has atomic fields. Exactly the dependencies implied by F=CH→G,A→BC,B→CFH,E→A,F→EG hold. How many candidate keys exist?
  65. Question 65 (2 marks, Multiple choice) – R(A,B,C,D,E,F,G,H) has atomic fields. Exactly the dependencies implied by F=CH→G,A→BC,B→CFH,E→A,F→EG hold. What is the highest normal-form description…