GATE CS 2021, set 1 question paper
The official GATE CS 2021 set 1 paper, set by IIT Bombay. PrepWiser has 52 of its questions, each with the answer from the official answer key.
Download free PDF with answer key
This paper in numbers
52 of the paper's 65 questions (80 of 100 marks) on PrepWiser. 24 one-mark and 28 two-mark questions.
- Question types: 29 MCQ · 10 MSQ · 13 NAT
- General Aptitude: 8 questions, 12 marks
- Core CS: 44 questions, 68 marks
| Subject | Questions | Marks |
|---|---|---|
| Engineering Mathematics | 10 | 15 |
| General Aptitude | 8 | 12 |
| Algorithms | 6 | 9 |
| Databases | 4 | 7 |
| Compiler Design | 4 | 6 |
| Programming and Data Structures | 4 | 6 |
| Theory of Computation | 4 | 6 |
| Computer Networks | 3 | 5 |
| Computer Organization and Architecture | 3 | 5 |
| Digital Logic | 3 | 5 |
| Operating System | 3 | 4 |
General Aptitude
- Q1. The ratio of boys to girls in a class is 7 to 3. Among the options below, an acceptable…
- Q2. A polygon is convex if, for every pair of points, P and Q belonging to the polygon, the…
- Q3. Consider the following sentences: (i) Everybody in the class is prepared for the exam…
- Q5. ______ is to surgery as writer is to ______ Which one of the following options maintains…
- Q6. We have 2 rectangular sheets of paper, M and N, of dimensions 6 cm x 1 cm each. Sheet M…
- Q7. Items | Cost (₹) | Profit % | Marked Price (₹); P | 5,400 | --- | 5,860; Q | --- | 25 |…
- Q8. There are five bags each containing identical sets of ten distinct chocolates. One…
- Q10. Some people suggest anti-obesity measures (AOM) such as displaying calorie information…
Theory of Computation
- Q11. Suppose that L₁ is a regular language and L₂ is a context-free language. Which one of…
- Q22. Let ⟨ M ⟩ denote an encoding of an automaton M. Suppose that Σ = {0, 1}. Which of the…
- Q49. For a Turing machine M, ⟨ M ⟩ denotes an encoding of M. Consider the following two…
- Q61. In a pushdown automaton P = (Q, Σ, Γ, δ, q₀, F), a transition of the form, Two states…
Algorithms
- Q12. Let P be an array containing n integers. Let t be the lowest upper bound on the number…
- Q19. Consider the following array. 23 | 32 | 45 | 69 | 72 | 73 | 89 | 97 Which algorithm out…
- Q27. Consider the following undirected graph with edge weights as shown: An undirected graph…
- Q40. Consider the following recurrence relation. T(n) = T(n/2) + T(2n/5) + 7n if n > 0 ; 1 if…
- Q50. Define Rₙ to be the maximum amount earned by cutting a rod of length n meters into one…
- Q51. An articulation point in a connected graph is a vertex such that removing the vertex and…
Compiler Design
- Q14. Consider the following statements. S₁ : The sequence of procedure calls corresponds to a…
- Q15. Consider the following statements. S₁ : Every SLR(1) grammar is unambiguous but there…
- Q36. Consider the following grammar (that admits a series of declarations, followed by…
- Q41. Consider the following context-free grammar where the set of terminals is {a, b, c, d…
Digital Logic
- Q16. Let the representation of a number in base 3 be 210. What is the hexadecimal…
- Q38. Consider a 3-bit counter, designed using T flip-flops, as shown below: Three T…
- Q52. Consider the following Boolean expression. F = (X + Y + Z)(X̅ + Y)(Y̅ + Z) Which of the…
Engineering Mathematics
- Q17. Let p and q be two propositions. Consider the following two formulae in propositional…
- Q26. In an undirected connected planar graph G, there are eight vertices and five faces. The…
- Q28. The lifetime of a component of a certain type is a random variable whose probability…
- Q29. There are 6 jobs with distinct difficulty levels, and 3 computers with distinct…
- Q30. Consider the following expression. lim(x → -3) (√(2x+22)-4)/(x+3) The value of the above…
- Q44. Let G be a group of order 6, and H be a subgroup of G such that 1 < |H| < 6. Which one…
- Q45. Consider the two statements. S₁: There exist random variables X and Y such that…
- Q46. Let G=(V,E) be an undirected unweighted connected graph. The diameter of G is defined…
- Q53. A relation R is said to be circular if aRb and bRc together imply cRa. Which of the…
- Q62. Consider the following matrix. (0, 1, 1, 1; 1, 0, 1, 1; 1, 1, 0, 1; 1, 1, 1, 0) The…
Computer Networks
- Q18. Consider the following two statements. S₁ : Destination MAC address of an ARP reply is a…
- Q54. A TCP server application is programmed to listen on port number P on host S. A TCP…
- Q55. Consider two hosts P and Q connected through a router R. The maximum transfer unit (MTU)…
Programming and Data Structures
- Q20. A binary search tree T contains n distinct elements. What is the time complexity of…
- Q31. Consider the following sequence of operations on an empty stack. push(54); push(52)…
- Q47. Consider the following ANSI C program. #include <stdio.h> int main() { int i, j, count…
- Q58. Consider the following ANSI C function: int SimpleFunction(int Y[], int n, int x) int…
Operating System
- Q21. In the context of operating systems, which of the following statements is/are correct…
- Q35. Three processes arrive at time zero with CPU bursts of 16, 20 and 10 milliseconds. If…
- Q56. Consider the following pseudocode, where S is a semaphore initialized to 5 in line#2 and…
Databases
- Q23. Suppose a database system crashes again while recovering from a previous crash. Assume…
- Q37. The following relation records the age of 500 employees of a company, where empNo…
- Q42. Let rᵢ(z) and wᵢ(z) denote read and write operations respectively on a data item z by a…
- Q43. Consider the relation R(P,Q,S,T,X,Y,Z,W) with the following functional dependencies. PQ…