The GATE Grind

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

All 65 questions of GATE 2010 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 most appropriate word: His rather casual remarks on politics his lack of seriousness about the subject.
  2. Question 2 (1 mark, Multiple choice) – Choose the closest meaning of circuitous.
  3. Question 3 (1 mark, Multiple choice) – Choose the most appropriate word: If we manage to our natural resources, we would leave a better planet for our children.
  4. Question 4 (1 mark, Multiple choice) – In a room of 25 people, 15 play hockey, 17 play football, and 10 play both. How many play neither?
  5. Question 5 (1 mark, Multiple choice) – Choose the closest analogy to Unemployed : Worker.
  6. Question 6 (2 marks, Multiple choice) – In an implied number base, 137+276=435. In the same base, find 731+672.
  7. Question 7 (2 marks, Multiple choice) – Hari, Gita, Irfan and Saira are siblings, all born on January 1 in different years. Each successive age gap is less than three years. Hari and Gita…
  8. Question 8 (2 marks, Multiple choice) – Read the passage and choose the best inference. Modern warfare has changed from clashes of large armies to suppression of civilian populations.…
  9. Question 9 (2 marks, Multiple choice) – Five skilled workers complete a job in 20 days, eight semiskilled workers in 25 days, and ten unskilled workers in 30 days. How long will two skilled,…
  10. Question 10 (2 marks, Multiple choice) – Using the available digits 2,2,3,3,3,4,4,4,4 without exceeding their multiplicities, how many distinct four-digit numbers greater than 3000 can be…
  11. Question 11 (1 mark, Multiple choice) – For graph G=(V,E), let (G)= di dd, where i d counts vertices of degree d. If different trees S,T satisfy ξ(S)=ξ(T), what follows?
  12. Question 12 (1 mark, Multiple choice) – Newton–Raphson solves x²−13=0 starting at 3.5. What is the first iterate?
  13. Question 13 (1 mark, Multiple choice) – How many reflexive relations exist on a five-element set?
  14. Question 14 (1 mark, Multiple choice) – S=1,ω,ω², where ω and ω² are cube roots of unity. Under multiplication, (S,*) forms
  15. Question 15 (1 mark, Multiple choice) – Evaluate n(1-1/n)2n.
  16. Question 16 (1 mark, Multiple choice) – Find the minterm expansion of f(P,Q,R)=PQ+Q R+P R.
  17. Question 17 (1 mark, Multiple choice) – A 4 MB main memory uses 1M×1-bit DRAM chips. Every chip has 1K rows of 1K cells. A refresh operation takes 100 ns. Find the time to refresh every cell…
  18. Question 18 (1 mark, Multiple choice) – Signed 16-bit P has two’s-complement hexadecimal representation F87B. Find the representation of 8P.
  19. Question 19 (1 mark, Multiple choice) – The shown 4:1 multiplexer has select inputs P (MSB),Q (LSB). What is f?
  20. Question 20 (1 mark, Multiple choice) – In a binary tree with n nodes, every node has an odd number of descendants, counting itself. How many nodes have exactly one child?
  21. Question 21 (1 mark, Multiple choice) – What is printed?
  22. Question 22 (1 mark, Multiple choice) – Packages A,B process n=10k database records. A needs 0.0001n² time; B needs 10n 10n. Find the smallest integer k for which B is faster.
  23. Question 23 (1 mark, Multiple choice) – Which compiler structure manages information about variables and their attributes?
  24. Question 24 (1 mark, Multiple choice) – Which languages necessarily need heap allocation in their runtime environment?
  25. Question 25 (1 mark, Multiple choice) – Why does an IP datagram contain a Time-to-Live field?
  26. Question 26 (1 mark, Multiple choice) – Which is NOT a client-server application?
  27. Question 27 (1 mark, Multiple choice) – L₁ is recursive. L₂,L₃ are recursively enumerable but nonrecursive. Which is NOT necessarily true?
  28. Question 28 (1 mark, Multiple choice) – A B+ tree allows at most five keys per node. Find the minimum number of keys in any nonroot node.
  29. Question 29 (1 mark, Multiple choice) – Passenger(pid,pname,age) has (0,Sachin,65),(1,Rahul,66),(2,Sourav,67),(3,Anil,69). Reservation(pid,class,tid) has…
  30. Question 30 (1 mark, Multiple choice) – Which protocols ensure both conflict serializability and freedom from deadlock? I: Two-phase locking. II: Timestamp ordering.
  31. Question 31 (1 mark, Multiple choice) – Modules A and B each have cyclomatic complexity ten. They are sequentially integrated as shown. What is the combined complexity?
  32. Question 32 (1 mark, Multiple choice) – Match lifecycle activities P: requirements capture, Q: design, R: implementation, S: maintenance, with (1) module development/integration, (2) domain…
  33. Question 33 (1 mark, Multiple choice) – Shared Boolean S1,S2 start with arbitrary values. P1 waits while S1==S2, enters its critical section, then assigns S1=S2. P2 waits while S1!=S2,…
  34. Question 34 (1 mark, Multiple choice) – FIFO page replacement has four initially empty frames. Access one hundred distinct pages in order, then the same pages in reverse. How many faults…
  35. Question 35 (1 mark, Multiple choice) – Which are true? I: Shortest remaining time first may cause starvation. II: Preemptive scheduling may cause starvation. III: Round robin is better than…
  36. Question 36 (2 marks, Multiple choice) – An assembly is faulty with probability p. A test correctly identifies a faulty or nonfaulty assembly with probability q. What is the probability that…
  37. Question 37 (2 marks, Multiple choice) – A divisor of 1099 is chosen uniformly at random. What is the probability that it is a multiple of 1096?
  38. Question 38 (2 marks, Multiple choice) – Which sequences cannot be degree sequences of simple graphs? I: 7,6,5,4,4,3,2,1 II: 6,6,6,6,3,3,2,2 III: 7,6,6,4,4,3,2,2 IV: 8,7,7,6,4,2,1,1
  39. Question 39 (2 marks, Multiple choice) – The matrix pmatrix2&3\&ypmatrix has eigenvalues 4 and 8. Find x,y.
  40. Question 40 (2 marks, Multiple choice) – Let F(x,y,t) mean that x can fool y at time t. What does x\, y\, t\, F(x,y,t) express?
  41. Question 41 (2 marks, Multiple choice) – Find the output of the NOR-gate network shown.
  42. Question 42 (2 marks, Multiple choice) – Two positive-edge-triggered T flip-flops have T=1. The external clock drives flip-flop 0, whose Q₀ output clocks flip-flop 1. Starting from Q₁Q₀=00,…
  43. Question 43 (2 marks, Multiple choice) – A pipeline has IF, ID, OF, PO and WO stages. IF, ID, OF and WO each take one cycle. PO takes one cycle for ADD/SUB, three for MUL and six for DIV.…
  44. Question 44 (2 marks, Multiple choice) – The weight of a sequence a 0,,a n-1 is a 0+a 1/2++a n-1/2n-1. Subsequences preserve order and may delete elements. Let X be the maximum subsequence…
  45. Question 45 (2 marks, Multiple choice) – What does this C program print?
  46. Question 46 (2 marks, Multiple choice) – For a singly linked list with at least two nodes, fill the blank to move its last node to the front.
  47. Question 47 (2 marks, Multiple choice) – Without spilling values to memory, what is the minimum number of registers needed for this basic block?
  48. Question 48 (2 marks, Multiple choice) – For the grammar S→aSa bSb c, which classification holds?
  49. Question 49 (2 marks, Multiple choice) – Which regular expression denotes all binary strings with an even number of ones?
  50. Question 50 (2 marks, Multiple choice) – For nonnegative i,j, let L 1=\0i1j:i j\, L 2=\0i1j:i=j\, L 3=\0i1j:i=2j+1\ and L 4=\0i1j:i2j\. Which is true?
  51. Question 51 (2 marks, Multiple choice) – Let w be any binary string of length n, and L the set of all its substrings. What is the minimum number of states in an NFA accepting L?
  52. Question 52 (2 marks, Multiple choice) – Find the equivalent serial order for this schedule, listed from first operation to last:
  53. Question 53 (2 marks, Multiple choice) – Relations R(A,B,C) and S(B,D,E) satisfy B→A and A→C. R has 200 tuples and S has 100. What is the maximum tuple count in R natural-join S?
  54. Question 54 (2 marks, Multiple choice) – Choose the tests giving statement coverage of: T1: a=b=c=d. T2: a,b,c,d all distinct. T3: a=b and c≠d. T4: a≠b and c=d.
  55. Question 55 (2 marks, Multiple choice) – Binary semaphores S0,S1,S2 start at 1,0,0. Concurrent processes execute: How many times is zero printed?
  56. Question 56 (2 marks, Multiple choice) – There are n resources R0,…,R(n−1), each with one instance, and k processes P0,…,P(k−1). Process Pi requests resources as below, then uses and releases…
  57. Question 57 (2 marks, Multiple choice) – 10.105.1.113 and 10.105.1.91 belong to the same IP network. Which subnet mask is NOT possible?
  58. Question 58 (2 marks, Multiple choice) – An L1 cache has four-word blocks and 2 ns access time. L2 has sixteen-word blocks and 20 ns access time. Main memory takes 200 ns. Each connecting bus…
  59. Question 59 (2 marks, Multiple choice) – An L1 cache has four-word blocks and 2 ns access time; L2 has sixteen-word blocks and 20 ns access time; main memory takes 200 ns. Both buses transfer…
  60. Question 60 (2 marks, Multiple choice) – The undirected graph on vertices 0,…,4 has weight matrix W=pmatrix0&1&8&1&4\\1&0&12&4&9\\8&12&0&7&3\\1&4&7&0&2\\4&9&3&2&0pmatrix. Find the minimum…
  61. Question 61 (2 marks, Multiple choice) – The undirected graph on vertices 0,…,4 has weight matrix W=pmatrix0&1&8&1&4\\1&0&12&4&9\\8&12&0&7&3\\1&4&7&0&2\\4&9&3&2&0pmatrix. Find the shortest…
  62. Question 62 (2 marks, Multiple choice) – A ten-slot hash table uses h(k)=k mod 10 and linear probing. Its occupied slots are 2:42, 3:23, 4:34, 5:52, 6:46, 7:33; all others are empty. Which…
  63. Question 63 (2 marks, Multiple choice) – A ten-slot hash table uses h(k)=k mod 10 and linear probing. Its occupied slots are 2:42, 3:23, 4:34, 5:52, 6:46, 7:33; all others are empty. How many…
  64. Question 64 (2 marks, Multiple choice) – The network uses distance-vector routing and is initialized with direct-link costs. Wait for convergence after each change. How many links will carry…
  65. Question 65 (2 marks, Multiple choice) – The network uses distance-vector routing and is initialized with direct-link costs. Wait for convergence after each change. First identify the unused…