The GATE Grind

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

All 65 questions of GATE 2014 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) – Which option is closest in meaning to “cope with” in: “It is fascinating to see life forms cope with varied environmental conditions”?
  2. Question 2 (1 mark, Multiple choice) – Choose the most appropriate completion: “He could not understand the judges awarding her the first prize, because he thought that her performance was…
  3. Question 3 (1 mark, Multiple choice) – At a press meet on a recent scam, the minister said, “The buck stops here.” What did he convey?
  4. Question 4 (1 mark, Numerical answer) – If (z+1/z)2=98, compute z2+1/z2.
  5. Question 5 (1 mark, Multiple choice) – The roots of ax2+bx+c=0 are real and positive, with real a, b, c. Then ax2+b x +c=0 has .
  6. Question 6 (2 marks, Multiple choice) – The Palghat (Palakkad) Gap, about 30 km wide in the southern Western Ghats in India, is lower than the hilly terrain to its north and south. The exact…
  7. Question 7 (2 marks, Multiple choice) – Geneticists say they are close to confirming the genetic roots of psychiatric illnesses such as depression and schizophrenia, and consequently doctors…
  8. Question 8 (2 marks, Numerical answer) – Round-trip tourist tickets receive a 10% discount on total fare. Groups of 4 or more receive an additional 5% discount on total fare. One-way fare is…
  9. Question 9 (2 marks, Numerical answer) – 300 respondents reported vehicle ownership. Counts (men, women) are: car only (40,34), scooter only (30,20), both (60,46), no vehicle (20,50). What…
  10. Question 10 (2 marks, Numerical answer) – An interior point of a tetrahedron (a solid with four triangular faces) is connected to its corners by straight lines. How many new internal planes…
  11. Question 11 (1 mark, Multiple choice) – “Not all that glitters is gold.” Predicate glitters(x) means x glitters, and gold(x) means x is gold. Which formula represents this statement?
  12. Question 12 (1 mark, Numerical answer) – A unit-length stick is broken at a point chosen uniformly at random. Find the expected length of the shorter stick.
  13. Question 13 (1 mark, Multiple choice) – Let G = (V,E) be a directed graph. Which graph has the same strongly connected components as G?
  14. Question 14 (1 mark, Numerical answer) – Find the number of solutions of 3x+2y=1, 4x+7z=1, x+y+z=3, x-2y+7z=0.
  15. Question 15 (1 mark, Numerical answer) – Find the dot product of eigenvectors corresponding to any pair of different eigenvalues of a 4 × 4 symmetric positive-definite matrix.
  16. Question 16 (1 mark, Multiple choice) – Let f()=vmatrix&&\\(/6)&(/6)&(/6)\\(/3)&(/3)&(/3)vmatrix for [/6,/3]. Which claims are TRUE? I: Some (/6,/3) has f()=0. II: Some θ in that interval…
  17. Question 17 (1 mark, Multiple choice) – Find the minimal sum-of-products form of F(P,Q,R,S)=PQ+ PQR+ PQ RS.
  18. Question 18 (1 mark, Numerical answer) – Find the base (radix) in which 312/20 = 13.1.
  19. Question 19 (1 mark, Numerical answer) – A 32-bit architecture uses one-word instructions and has 64 registers, each 32 bits. It supports 45 instructions having an immediate operand and two…
  20. Question 20 (1 mark, Multiple choice) – Consider this C program: #include <stdio.h> main() int i; int *pi = &i; scanf("%d", pi); printf("%d", i+5); Which statement is TRUE?
  21. Question 21 (1 mark, Multiple choice) – G has n vertices and m edges and is represented by an adjacency matrix. Find the tightest upper bound on Depth First Search running time.
  22. Question 22 (1 mark, Numerical answer) – A rooted n-node binary tree is represented using pointers. The best upper bound for counting subtrees with exactly four nodes is O(nabn). Find a +…
  23. Question 23 (1 mark, Multiple choice) – For the directed graph shown, which statement is TRUE?
  24. Question 24 (1 mark, Multiple choice) – Quicksort P sorts ascending using the first element as pivot. Let t₁ and t₂ count its comparisons on [1,2,3,4,5] and [4,1,5,3,2] respectively. Which…
  25. Question 25 (1 mark, Multiple choice) – Which one of the following is TRUE?
  26. Question 26 (1 mark, Multiple choice) – For the finite automaton shown, find the set of reachable states after input 0011.
  27. Question 27 (1 mark, Multiple choice) – Which compiler statement is FALSE?
  28. Question 28 (1 mark, Multiple choice) – Match models 1: Waterfall, 2: Evolutionary, 3: Component-based software engineering, 4: Spiral development with a: Specifications developed…
  29. Question 29 (1 mark, Numerical answer) – A disk has cylinders 0–200. The arm is at 100 with queued requests 30,85,90,100,105,110,135,145. With Shortest-Seek-Time-First scheduling, how many…
  30. Question 30 (1 mark, Multiple choice) – Which thread statement is FALSE?
  31. Question 31 (1 mark, Multiple choice) – Relation R=(E,F,G,H,I,J,K,L,M,N) has dependencies EF G, F IJ, EH KL, K M, L N. Find its key.
  32. Question 32 (1 mark, Multiple choice) – S1: A foreign-key declaration can always be replaced by an equivalent SQL CHECK assertion. S2: Given R(a,b,c) with primary key (a,b), the following is…
  33. Question 33 (1 mark, Multiple choice) – For link-state and distance-vector routing in a network of 500 nodes and 4000 links: S1: Link-state has higher computational overhead. S2:…
  34. Question 34 (1 mark, Multiple choice) – Which generate message digests for network-security protocols? P: RSA; Q: SHA-1; R: DES; S: MD5.
  35. Question 35 (1 mark, Multiple choice) – Order browser–server operations: 1: Browser requests webpage using HTTP; 2: Browser establishes TCP connection; 3: Server sends requested webpage…
  36. Question 36 (2 marks, Numerical answer) – A 2 km token ring has 10 stations including a monitor. Signal propagation speed is 2 × 10⁸ m/s; token transmission time is ignored. Each station may…
  37. Question 37 (2 marks, Numerical answer) – A TCP connection has congestion window 32 KB when timeout occurs. RTT is 100 ms and MSS is 2 KB. Find time to recover a 32 KB congestion window (ms).
  38. Question 38 (2 marks, Numerical answer) – Selective-repeat sliding-window frames are 1 KB over a 1.5 Mbps link with one-way latency 50 ms. For link utilization 60%, find minimum…
  39. Question 39 (2 marks, Multiple choice) – Three transactions read and write item x using rᵢ and wᵢ. Which schedule is conflict serializable?
  40. Question 40 (2 marks, Multiple choice) – S1: Every table with two single-valued attributes is in 1NF, 2NF, 3NF and BCNF. S2: AB → C, D → E, E → C is a minimal cover of AB → C, D → E, AB → E,…
  41. Question 41 (2 marks, Multiple choice) – Banker’s algorithm manages resource types X,Y,Z for P₀,P₁,P₂. Current allocation vectors are P₀:(0,0,1), P₁:(3,2,0), P₂:(2,1,1); maximum vectors are…
  42. Question 42 (2 marks, Numerical answer) – Single-CPU processes A,B,C,D,E have (arrival,execution) times in ms: A(0,6), B(3,2), C(5,4), D(7,6), E(10,3). Find average turnaround time under…
  43. Question 43 (2 marks, Numerical answer) – Three page frames are initially empty. For reference string 1,2,3,4,2,1,5,3,2,4,6, find page faults using optimal replacement.
  44. Question 44 (2 marks, Multiple choice) – A canonical item set is S → L · > R and Q → R ·. On input symbol <, the set has .
  45. Question 45 (2 marks, Multiple choice) – Let L be a language and L its complement. Which is NOT a viable possibility?
  46. Question 46 (2 marks, Multiple choice) – Which regular expressions represent the shown DFA? I: 0*1(1+00*1)*; II: 0*1*1+11*0*1; III: (0+1)*1.
  47. Question 47 (2 marks, Numerical answer) – Five bags labelled 1–5 each contain equal-weight coins within the bag; some bags have 10 g coins and others 11 g coins. Taking 1,2,4,8,16 coins…
  48. Question 48 (2 marks, Multiple choice) – A polynomial-time algorithm correctly computing the largest clique of any graph is discovered. Which Venn diagram represents P, NP and NP Complete…
  49. Question 49 (2 marks, Numerical answer) – Find the minimum comparisons needed to find both minimum and maximum of 100 numbers.
  50. Question 50 (2 marks, Multiple choice) – A 9-slot hash table uses h(k) = k mod 9 and chaining. Keys 5,28,19,15,20,33,12,17,10 are inserted in that order. Find maximum, minimum and average…
  51. Question 51 (2 marks, Multiple choice) – Consider this C function, where size is the number of elements in E: int MyX(int *E, unsigned int size) int Y = 0, Z, i, j, k; for (i = 0; i < size;…
  52. Question 52 (2 marks, Multiple choice) – Find the total multiplications in this pseudocode (inclusive loop bounds): D = 2 for i = 1 to n for j = i to n for k = j + 1 to n D = D * 3
  53. Question 53 (2 marks, Numerical answer) – A six-stage instruction pipeline has perfectly balanced stages and no cycle-time overhead. If 25% of instructions incur two pipeline stall cycles,…
  54. Question 54 (2 marks, Multiple choice) – A length-N cache-block access sequence contains n unique addresses. Distinct block addresses between consecutive accesses to the same block are…
  55. Question 55 (2 marks, Multiple choice) – For the 4-to-1 multiplexer shown, with select lines S 1 and S 0, find the minimal sum-of-products form of output F.
  56. Question 56 (2 marks, Numerical answer) – The function f(x)=x x satisfies f(x)+f(x)+t x=0. Find t.
  57. Question 57 (2 marks, Multiple choice) – f is continuous on [0,2], with f(0) = f(2) = −1 and f(1) = 1. Which statement must be true?
  58. Question 58 (2 marks, Numerical answer) – Four fair six-sided dice are rolled. Probability that the sum is 22 equals X/1296. Find X.
  59. Question 59 (2 marks, Numerical answer) – A pennant is an ordered sequence of 1s and 2s; an n-pennant has sum n. For example (1,1,2) is a 4-pennant. The 1-pennants are (1), 2-pennants…
  60. Question 60 (2 marks, Numerical answer) – S is the set of all functions f:\0,1\4\0,1\. If N counts functions from S to 0,1, find 2 2N.
  61. Question 61 (2 marks, Numerical answer) – An undirected graph without self-loops has vertices \(i,j):1 i12,\ 1 j12\. Distinct vertices (a,b) and (c,d) are adjacent when a-c 1 and b-d 1. Find…
  62. Question 62 (2 marks, Multiple choice) – A nonincreasing n-tuple is graphic if a simple undirected n-vertex graph has those degrees. Which tuple is NOT graphic?
  63. Question 63 (2 marks, Multiple choice) – Which propositional formula is TRUE exactly when two of p, q, r are TRUE?
  64. Question 64 (2 marks, Multiple choice) – Schema: employees(emp-id, first-name, last-name, hire-date, dept-id, salary); departments(dept-id, dept-name, manager-id, location-id). To display…
  65. Question 65 (2 marks, Numerical answer) – Processors P₁ and P₂ execute the same instruction set. Under identical conditions and input, P₂ takes 25% less time but incurs 20% more CPI than P₁.…