GATE CS 2017, set 2 question paper
The official GATE CS 2017 set 2 paper, set by IIT Roorkee. PrepWiser has 63 of its questions, each with the answer from the official answer key.
Download free PDF with answer key
This paper in numbers
63 of the paper's 65 questions (97 of 100 marks) on PrepWiser. 29 one-mark and 34 two-mark questions.
- Question types: 44 MCQ · 0 MSQ · 19 NAT
- General Aptitude: 10 questions, 15 marks
- Core CS: 53 questions, 82 marks
| Subject | Questions | Marks |
|---|---|---|
| Engineering Mathematics | 10 | 15 |
| General Aptitude | 10 | 15 |
| Programming and Data Structures | 8 | 13 |
| Theory of Computation | 6 | 9 |
| Algorithms | 5 | 8 |
| Digital Logic | 5 | 8 |
| Computer Networks | 5 | 7 |
| Computer Organization and Architecture | 3 | 6 |
| Databases | 4 | 6 |
| Operating System | 4 | 6 |
| Compiler Design | 3 | 4 |
Digital Logic
- Q1. The representation of the value of a 16-bit unsigned integer X in hexadecimal number…
- Q24. Consider a quadratic equation x² - 13x + 36 = 0 with coefficients in a base b. The…
- Q27. If w, x, y, z are Boolean variables, then which one of the following is INCORRECT?
- Q28. Given f(w,x,y,z) = Σₘ(0,1,2,3,7,8,10) + Σ_d(5,6,11,15), where d represents the…
- Q42. The next state table of a 2-bit saturating up-counter is given below. Q₁ | Q₀ | Q₁⁺ |…
Programming and Data Structures
- Q2. Match the following: (P) static char var; | (i) Sequence of memory locations to store…
- Q13. A circular queue has been implemented using a singly linked list where each node…
- Q14. Consider the following function implemented in C: void printxy(int x, int y) int *ptr; x…
- Q36. The pre-order traversal of a binary search tree is given by 12, 8, 6, 2, 7, 9, 10, 16…
- Q37. Consider the C program fragment below which is meant to divide x by y using repeated…
- Q43. Consider the following snippet of a C program. Assume that swap(&x, &y) exchanges the…
- Q54. Consider the following C Program. #include<stdio.h> int main() { int m = 10; int n, n1…
- Q55. Consider the following C Program. #include<stdio.h> #include<string.h> int main() {…
Algorithms
- Q3. Match the algorithms with their time complexities: Algorithm | Time complexity; (P)…
- Q15. The Breadth First Search (BFS) algorithm has been implemented using the queue data…
- Q30. Consider the recurrence function T(n) = 2T(√n) + 1, n > 2 ; 2, 0 < n ≤ 2 Then T(n) in…
- Q38. Consider the following C function. int fun(int n) int i, j; for(i = 1; i <= n; i++)…
- Q50. A message is made up entirely of characters from the set X = {P, Q, R, S, T}. The table…
Theory of Computation
- Q4. Let L₁, L₂ be any two context-free languages and R be any regular language. Then which…
- Q16. Identify the language generated by the following grammar, where S is the start variable…
- Q25. The minimum possible number of states of a deterministic finite automaton that accepts…
- Q39. Let δ denote the transition function and δ denote the extended transition function of…
- Q40. Consider the following languages. L₁ = {aᵖ | p is a prime number}L₂ = {aⁿ bᵐ c²ᵐ | n ≥…
- Q41. Let L(R) be the language represented by regular expression R. Let L(G) be the language…
Compiler Design
- Q5. Match the following according to input (from the left column) to the compiler phase (in…
- Q6. Which of the following statements about parser is/are CORRECT? I. Canonical LR is more…
- Q32. Consider the following expression grammar G: E -> E - T | T T -> T + F | F F -> (E) | id…
Operating System
- Q7. Which of the following is/are shared by all the threads in a process? I. Program counter…
- Q8. In a file allocation system, which of the following allocation scheme(s) can be used if…
- Q33. A system shares 9 tape drives. The current allocation and maximum requirement of tape…
- Q51. Consider the set of processes with arrival time (in milliseconds), CPU burst time (in…
Computer Networks
- Q9. Consider the following statements about the routing protocols, Routing Information…
- Q18. Consider socket API on a Linux machine that supports connected UDP sockets. A connected…
- Q20. The maximum number of IPv4 router addresses that can be listed in the record route (RR)…
- Q34. Consider a binary code that consists of only four valid codewords as given below: 00000…
- Q35. Consider two hosts X and Y, connected by a single direct link of rate 10⁶ bits/sec. The…
Engineering Mathematics
- Q10. If f(x) = R sin((π x)/2) + S, f'(1/2) = √2 and ∫₀¹ f(x) dx = 2R/π, then the constants R…
- Q11. Let p, q, r denote the statements " It is raining ", " It is cold ", and " It is…
- Q21. Consider the set X = {a, b, c, d, e} under the partial ordering R = {(a,a), (a,b)…
- Q22. Let P = [1, 1, -1; 2, -3, 4; 3, -2, 3] and Q = [-1, -2, -1; 6, 12, 6; 5, 10, 5] be two…
- Q23. G is an undirected graph with n vertices and 25 edges such that each vertex of G has…
- Q26. P and Q are considering to apply for a job. The probability that P applies for the job…
- Q31. For any discrete random variable X, with probability mass function P(X = j) = pⱼ, pⱼ ≥…
- Q47. If the ordinary generating function of a sequence {aₙ}ₙ₌₀^∞ is (1+z)/(1-z)³, then a₃ -…
- Q48. If a random variable X has a Poisson distribution with mean 5, then the expectation…
- Q52. If the characteristic polynomial of a 3 × 3 matrix M over ℝ (the set of real numbers) is…
Databases
- Q17. An ER model of a database consists of entity types A and B. These are connected by a…
- Q19. Consider the following tables T1 and T2. T1 P | Q; 2 | 2; 3 | 8; 7 | 3; 5 | 8; 6 | 9; 8…
- Q44. Two transactions T₁ and T₂ are given as T₁: r₁(X)w₁(X)r₁(Y)w₁(Y)T₂: r₂(Y)w₂(Y)r₂(Z)w₂(Z)…
- Q46. Consider the following database table named top_scorer . top_scorer player | country |…
Computer Organization and Architecture
- Q29. In a two-level cache system, the access times of L₁ and L₂ caches are 1 and 8 clock…
- Q45. The read access times and the hit ratios for different caches in a memory hierarchy are…
- Q53. Consider a machine with a byte addressable main memory of 2³² bytes divided into blocks…
General Aptitude
- Q56. Choose the option with words that are not synonyms.
- Q57. Saturn is ______ to be seen on a clear night with the naked eye.
- Q58. There are five buildings called V, W, X, Y and Z in a row (not necessarily in that…
- Q59. A test has twenty questions worth 100 marks in total. There are two types of questions…
- Q60. There are 3 red socks, 4 green socks and 3 blue socks. You choose 2 socks. The…
- Q61. “We lived in a culture that denied any merit to literary works, considering them…
- Q62. There are three boxes. One contains apples, another contains oranges and the last one…
- Q63. X is a 30 digit number starting with the digit 4 followed by the digit 7. Then the…
- Q64. The number of roots of eˣ + 0.5x² - 2 = 0 in the range [-5, 5] is
- Q65. An air pressure contour line joins locations in a region having the same atmospheric…