GATE CS 2021, set 2 question paper
The official GATE CS 2021 set 2 paper, set by IIT Bombay. PrepWiser has 54 of its questions, each with the answer from the official answer key.
Download free PDF with answer key
This paper in numbers
54 of the paper's 65 questions (81 of 100 marks) on PrepWiser. 27 one-mark and 27 two-mark questions.
- Question types: 27 MCQ · 12 MSQ · 15 NAT
- General Aptitude: 6 questions, 8 marks
- Core CS: 48 questions, 73 marks
| Subject | Questions | Marks |
|---|---|---|
| Engineering Mathematics | 9 | 13 |
| Theory of Computation | 6 | 9 |
| Databases | 5 | 8 |
| General Aptitude | 6 | 8 |
| Algorithms | 5 | 7 |
| Compiler Design | 4 | 7 |
| Programming and Data Structures | 5 | 7 |
| Computer Organization and Architecture | 4 | 6 |
| Digital Logic | 4 | 6 |
| Computer Networks | 3 | 5 |
| Operating System | 3 | 5 |
General Aptitude
- Q1. Gauri said that she can play the keyboard ______ her sister.
- Q3. If θ is the angle, in degrees, between the longest diagonal of the cube and any one of…
- Q4. If (x-1/2)²-(x-3/2)²=x+2, then the value of x is:
- Q5. Pen : Write :: Knife : ______ Which one of the following options maintains a similar…
- Q6. Listening to music during exercise improves exercise performance and reduces discomfort…
- Q8. The number of students in three classes is in the ratio 3:13:6. If 18 students are added…
Algorithms
- Q11. Let G be a connected undirected weighted graph. Consider the following two statements…
- Q18. What is the worst-case number of arithmetic operations performed by recursive binary…
- Q26. Consider a complete binary tree with 7 nodes. Let A denote the set of first 3 elements…
- Q49. For constants a ≥ 1 and b > 1, consider the following recurrence defined on the…
- Q65. In a directed acyclic graph with a source vertex s, the quality-score of a directed path…
Programming and Data Structures
- Q12. Let H be a binary min-heap consisting of n elements implemented as an array. What is the…
- Q20. Consider the following ANSI C program. #include <stdio.h> int main(){ int arr[4][5]; int…
- Q33. Consider the following ANSI C function: int SomeFunction(int x, int y) if ((x == 1) ||…
- Q45. Consider the following ANSI C program: #include <stdio.h> #include <stdlib.h> struct…
- Q59. Consider the following ANSI C program. #include <stdio.h> int foo(int x, int y, int q) {…
Digital Logic
- Q15. Which one of the following circuits implements the Boolean function given below?…
- Q28. If x and y are two decimal digits and (0.1101)₂ = (0.8xy5)₁₀, the decimal value of x+y…
- Q38. Suppose we want to design a synchronous circuit that processes a string of 0's and 1's…
- Q62. Consider a Boolean function f(w, x, y, z) such that f(w, 0, 0, z) = 1 ; f(1, x, 1, z) =…
Databases
- Q16. Consider the following statements S1 and S2 about the relational data model: S1: A…
- Q31. A data file consisting of 1,50,000 student-records is stored on a hard disk with block…
- Q41. The relation scheme given below is used to store information about the employees of a…
- Q42. Let S be the following schedule of operations of three transactions T₁, T₂ and T₃ in a…
- Q50. Suppose the following functional dependencies hold on a relation U with attributes P, Q…
Computer Networks
- Q17. Consider the three-way handshake mechanism followed during TCP connection establishment…
- Q44. Consider the cyclic redundancy check (CRC) based error detecting scheme having the…
- Q55. Consider a computer network using the distance vector routing algorithm in its network…
Theory of Computation
- Q19. Let L ⊆ {0,1}^* be an arbitrary regular language accepted by a minimal DFA with k…
- Q22. Let L₁ be a regular language and L₂ be a context-free language. Which of the following…
- Q27. Consider the following deterministic finite automaton (DFA). DFA with six states, drawn…
- Q46. Consider the following two statements about regular languages: S₁: Every infinite…
- Q51. For a string w, we define w^R to be the reverse of w. For example, if w = 01101 then w^R…
- Q57. Which of the following regular expressions represent(s) the set of all binary numbers…
Engineering Mathematics
- Q21. Consider the following sets, where n ≥ 2: S₁: Set of all n × n matrices with entries…
- Q25. Choose the correct choice(s) regarding the following propositional logic assertion S: S…
- Q32. For a given biased coin, the probability that the outcome of a toss is a head is 0.4…
- Q34. Suppose that P is a 4 × 5 matrix such that every solution of the equation Px = 0 is a…
- Q35. Suppose that f: ℝ → ℝ is a continuous function on the interval [-3, 3] and a…
- Q39. In an examination, a student can choose the order in which two questions (QuesA and…
- Q43. A bag has r red balls and b black balls. All balls are identical except for their…
- Q47. For two n-dimensional real vectors P and Q, the operation s(P,Q) is defined as follows…
- Q60. Let S be a set consisting of 10 elements. The number of tuples of the form (A, B) such…
Compiler Design
- Q23. In the context of compilers, which of the following is/are NOT an intermediate…
- Q40. Consider the following ANSI C code segment: z = x + 3 + y->f1 + y->f2; for (i = 0; i <…
- Q48. For a statement S in a program, in the context of liveness analysis, the following sets…
- Q61. Consider the following augmented grammar with {#, @, <, >, a, b, c} as the set of…
Operating System
- Q24. Which of the following statement(s) is/are correct in the context of CPU scheduling?
- Q52. Consider the following multi-threaded code segment (in a mix of C and pseudo-code)…
- Q53. Consider a computer system with multiple shared resource types, with one instance per…
Computer Organization and Architecture
- Q29. Consider a set-associative cache of size 2KB (1KB = 2¹⁰ bytes) with cache block size of…
- Q30. Consider a computer system with DMA support. The DMA module is transferring one 8-bit…
- Q37. Assume a two-level inclusive cache hierarchy, L1 and L2, where L2 is the larger of the…
- Q54. If the numerical value of a 2-byte unsigned integer on a little endian computer is 255…