GATE CS 2022 question paper
The official GATE CS 2022 paper, set by IIT Kharagpur. PrepWiser has 55 of its questions, each with the answer from the official answer key.
Download free PDF with answer key
This paper in numbers
55 of the paper's 65 questions (83 of 100 marks) on PrepWiser. 27 one-mark and 28 two-mark questions.
- Question types: 30 MCQ · 12 MSQ · 13 NAT
- General Aptitude: 10 questions, 15 marks
- Core CS: 45 questions, 68 marks
| Subject | Questions | Marks |
|---|---|---|
| General Aptitude | 10 | 15 |
| Engineering Mathematics | 9 | 14 |
| Operating System | 6 | 10 |
| Theory of Computation | 5 | 8 |
| Computer Networks | 4 | 7 |
| Computer Organization and Architecture | 5 | 7 |
| Programming and Data Structures | 5 | 7 |
| Databases | 4 | 5 |
| Digital Logic | 3 | 5 |
| Algorithms | 2 | 3 |
| Compiler Design | 2 | 2 |
General Aptitude
- Q1. The ______ is too high for it to be considered ______.
- Q2. A function y(x) is defined in the interval [0, 1] on the x-axis as y(x) = 2 if 0 ≤ x <…
- Q3. Let r be a root of the equation x² + 2x + 6 = 0. Then the value of the expression…
- Q4. Given below are four statements. Statement 1: All students are inquisitive. Statement 2…
- Q5. A palindrome is a word that reads the same forwards and backwards. In a game of words, a…
- Q6. Some people believe that “what gets measured, improves”. Some others believe that “what…
- Q7. In a recently conducted national entrance test, boys constituted 65% of those who…
- Q8. A box contains five balls of same size and shape. Three of them are green coloured balls…
- Q9. The corners and mid-points of the sides of a triangle are named using the distinct…
- Q10. A plot of land must be divided between four families. They want their individual plots…
Theory of Computation
- Q12. Which one of the following regular expressions correctly represents the language of the…
- Q23. Which of the following statements is/are TRUE?
- Q46. Which of the following is/are undecidable?
- Q47. Consider the following languages: L₁ = {aⁿ w aⁿ | w ∈ {a,b}^*}L₂ = {w x w^R | w, x ∈…
- Q48. Consider the following languages: L₁ = {ww | w ∈ {a,b}^*}L₂ = {aⁿ bⁿ cᵐ | m,n ≥ 0}L₃ =…
Compiler Design
- Q13. Which one of the following statements is TRUE?
- Q29. Consider the augmented grammar with {+, *, (, ), id} as the set of terminals. S' → SS →…
Databases
- Q14. In a relational data model, which one of the following statements is TRUE?
- Q25. Consider the following three relations in a relational database. Employee(eId, Name)…
- Q31. Consider a relation R(A,B,C,D,E) with the following three functional dependencies. AB →…
- Q39. Let Rᵢ(z) and Wᵢ(z) denote read and write operations on a data element z by a…
Programming and Data Structures
- Q15. Consider the problem of reversing a singly linked list. To take an example, given the…
- Q21. What is printed by the following ANSI C program? #include<stdio.h> int main(int argc…
- Q28. Suppose a binary search tree with 1000 distinct elements is also a complete binary tree…
- Q43. What is printed by the following ANSI C program? #include<stdio.h> int main(int argc…
- Q44. What is printed by the following ANSI C program? #include<stdio.h> int main(int argc…
Algorithms
- Q16. Suppose we are given n keys, m hash table slots, and two simple uniform hash functions…
- Q49. Consider a simple undirected weighted graph G, all of whose edge weights are distinct…
Computer Organization and Architecture
- Q17. Which one of the following facilitates transfer of bulk data from hard disk to main…
- Q24. Let WB and WT be two set associative cache organizations that use LRU algorithm for…
- Q33. A cache memory that has a hit rate of 0.8 has an access latency 10 ns and miss penalty…
- Q54. Consider a system with 2 KB direct mapped data cache with a block size of 64 bytes. The…
- Q61. A processor X₁ operating at 2 GHz has a standard 5-stage RISC instruction pipeline…
Digital Logic
- Q18. Let R1 and R2 be two 4-bit registers that store numbers in 2's complement form. For the…
- Q40. Consider a digital display system (DDS) shown in the figure that displays the contents…
- Q41. Consider three floating point numbers A, B and C stored in registers R_A, R_B and R_C…
Operating System
- Q19. Consider the following threads, T₁, T₂, and T₃ executing on a single processor…
- Q26. Which of the following statements is/are TRUE with respect to deadlocks?
- Q38. Which one of the following statements is FALSE?
- Q42. Consider four processes P, Q, R, and S scheduled on a CPU as per round robin algorithm…
- Q63. Consider two files systems A and B, that use contiguous allocation and linked…
- Q64. Consider a demand paging system with four page frames (initially empty) and LRU page…
Engineering Mathematics
- Q20. Consider the following two statements with respect to the matrices A_(m × n), B_(n × m)…
- Q27. Which of the following statements is/are TRUE for a group G?
- Q30. Consider a simple undirected graph of 10 vertices. If the graph is disconnected, then…
- Q34. The value of the following limit is ______. lim(x → 0+) √x/(1 - e^(2√x))
- Q36. Which one of the following is the closed form for the generating function of the…
- Q37. Consider a simple undirected unweighted graph with at least three vertices. If A is the…
- Q50. The following simple undirected graph is referred to as the Peterson graph. The standard…
- Q53. Which of the following is/are the eigenvector(s) for the matrix given below? (-9, -6…
- Q58. Let G(V,E) be a directed graph, where V = {1,2,3,4,5} is the set of vertices and E is…
Computer Networks
- Q22. Consider an enterprise network with two Ethernet segments, a web server and a firewall…
- Q57. Consider a network with three routers P, Q, R shown in the figure below. All the links…
- Q59. Consider a 100 Mbps link between an earth station (sender) and a satellite (receiver) at…
- Q60. Consider the data transfer using TCP over a 1 Gbps link. Assuming that the maximum…