GATE CS 2019 question paper
The official GATE CS 2019 paper, set by IIT Madras. PrepWiser has 60 of its questions, each with the answer from the official answer key.
Download free PDF with answer key
This paper in numbers
60 of the paper's 65 questions (91 of 100 marks) on PrepWiser. 29 one-mark and 31 two-mark questions.
- Question types: 37 MCQ · 0 MSQ · 23 NAT
- General Aptitude: 8 questions, 11 marks
- Core CS: 52 questions, 80 marks
| Subject | Questions | Marks |
|---|---|---|
| Engineering Mathematics | 9 | 12 |
| Programming and Data Structures | 7 | 12 |
| General Aptitude | 8 | 11 |
| Computer Networks | 5 | 9 |
| Databases | 5 | 8 |
| Operating System | 5 | 8 |
| Theory of Computation | 5 | 8 |
| Digital Logic | 5 | 7 |
| Algorithms | 4 | 6 |
| Compiler Design | 4 | 6 |
| Computer Organization and Architecture | 3 | 4 |
General Aptitude
- Q1. The expenditure on the project ______ as follows: equipment Rs.20 lakhs, salaries Rs.12…
- Q2. The search engine's business model ______ around the fulcrum of trust.
- Q3. Two cars start at the same time from the same location and go in the same direction. The…
- Q4. Ten friends planned to share equally the cost of buying a gift for their teacher. When…
- Q5. A court is to a judge as ______ is to a teacher.
- Q6. The police arrested four criminals – P, Q, R and S. The criminals knew each other. They…
- Q7. In the given diagram, teachers are represented in the triangle, researchers in the…
- Q8. “A recent High Court judgement has sought to dispel the idea of begging as a disease —…
Computer Organization and Architecture
- Q11. A certain processor uses a fully associative cache of size 16 kB. The cache block size…
- Q12. The chip select logic for a certain DRAM chip in a memory system design is shown below…
- Q55. A certain processor deploys a single-level cache. The cache block size is 8 words and…
Compiler Design
- Q13. Which one of the following kinds of derivation is used by LR parsers?
- Q29. Consider the grammar given below: S → Aa ; A → BD ; B → b | ε ; D → d | ε Let a, b, d…
- Q46. Consider the following grammar and the semantic actions to support the inherited type…
- Q53. Consider the augmented grammar given below: S' → SS → ⟨ L ⟩ | idL → L,S | S Let I₀ =…
Digital Logic
- Q14. In 16-bit 2's complement representation, the decimal number -28 is:
- Q16. Which one of the following is NOT a valid identity?
- Q18. Consider Z = X - Y, where X, Y and Z are all in sign-magnitude form. X and Y are each…
- Q40. Consider three 4-variable functions f₁, f₂, and f₃, which are expressed in…
- Q60. What is the minimum number of 2-input NOR gates required to implement a 4-variable…
Engineering Mathematics
- Q15. Let U = {1,2,…,n}. Let A = {(x,X) | x ∈ X, X ⊆ U}. Consider the following two statements…
- Q19. Let X be a square matrix. Consider the following two statements on X. I. X is…
- Q20. Let G be an arbitrary group. Consider the following relations on G: R₁: ∀ a, b ∈ G, a R₁…
- Q23. Compute lim(x → 3) (x⁴-81)/(2x²-5x-3)
- Q31. The value of 3⁵¹ mod 5 is ______.
- Q32. Two numbers are chosen independently and uniformly at random from the set {1, 2, …, 13}…
- Q54. Consider the following matrix: R = [1, 2, 4, 8; 1, 3, 9, 27; 1, 4, 16, 64; 1, 5, 25…
- Q56. Let T be a full binary tree with 8 leaves. (A full binary tree has every level full.)…
- Q57. Suppose Y is distributed uniformly in the open interval (1,6). The probability that the…
Theory of Computation
- Q17. If L is a regular language over Σ = {a, b}, which one of the following languages is NOT…
- Q25. For Σ = {a, b}, let us consider the regular language L = { x | x = a²⁺³ᵏ or x = b¹⁰⁺¹²ᵏ…
- Q41. Which one of the following languages over Σ = {a, b} is NOT context-free?
- Q44. Consider the following sets: S1. Set of all recursively enumerable languages over the…
- Q58. Let Σ be the set of all bijections from {1, …, 5} to {1, …, 5}, where id denotes the…
Databases
- Q21. Consider the following two statements about database transaction schedules: I. Strict…
- Q24. Which one of the following statements is NOT correct about the B+ tree data structure…
- Q42. Let the set of functional dependencies F = {QR → S, R → P, S → Q} hold on a relation…
- Q61. A relational database contains two tables Student and Performance as shown below…
- Q65. Consider the following relations P(X,Y,Z), Q(X,Y,T) and R(Y,V). P X | Y | Z; X1 | Y1 |…
Computer Networks
- Q26. Which of the following protocol pairs can be used to send and retrieve e-mails (in that…
- Q38. Consider three machines M, N, and P with IP addresses 100.10.5.2, 100.10.5.5, and…
- Q39. Suppose that in an IP-over-Ethernet network, a machine X wishes to find the MAC address…
- Q59. Consider that 15 machines need to be connected in a LAN using 8-port Ethernet switches…
- Q64. In an RSA cryptosystem, the value of the public modulus parameter n is 3007. If it is…
Operating System
- Q27. The following C program is executed on a Unix/Linux system: #include <unistd.h> int…
- Q33. Consider three concurrent processes P1, P2 and P3 as shown below, which access a shared…
- Q43. Assume that in a certain computer, the virtual addresses are 64 bits long and the…
- Q49. Consider the following snapshot of a system running n concurrent processes. Process i is…
- Q51. Consider the following four processes with arrival times (in milliseconds) and their…
Programming and Data Structures
- Q28. Consider the following C program: #include <stdio.h> int jumble(int x, int y) x=2*x+y…
- Q34. Consider the following C program: #include <stdio.h> int main() int…
- Q36. Consider the following C function. void convert(int n) if(n<0) printf("%d",n); else…
- Q37. Consider the following C program: #include <stdio.h> int r(){ static int num=7; return…
- Q50. Consider the following statements: I. The smallest element in a max-heap is always at a…
- Q62. Consider the following C program: #include <stdio.h> int main() float sum = 0.0, j =…
- Q63. Consider the following C program: #include <stdio.h> int main() int a[] = 2, 4, 6, 8…
Algorithms
- Q30. An array of 25 distinct elements is to be sorted using quicksort. Assume that the pivot…
- Q35. Consider a sequence of 14 elements: A = [-5, -10, 6, 3, -1, -2, 13, 4, -9, -1, 4, 12…
- Q47. There are n unsorted arrays: A₁, A₂, …, Aₙ. Assume that n is odd. Each of A₁, A₂, …, Aₙ…
- Q48. Let G be any connected, weighted, undirected graph. I. G has a unique minimum spanning…