GATE CS 2026, set 2 question paper
The official GATE CS 2026 set 2 paper, set by IIT Guwahati. PrepWiser has 57 of its questions, each with the answer from the official answer key.
Download free PDF with answer key
This paper in numbers
57 of the paper's 65 questions (87 of 100 marks) on PrepWiser. 27 one-mark and 30 two-mark questions.
- Question types: 31 MCQ · 9 MSQ · 17 NAT
- General Aptitude: 8 questions, 12 marks
- Core CS: 49 questions, 75 marks
| Subject | Questions | Marks |
|---|---|---|
| Engineering Mathematics | 9 | 13 |
| General Aptitude | 8 | 12 |
| Algorithms | 7 | 10 |
| Programming and Data Structures | 6 | 10 |
| Computer Organization and Architecture | 5 | 9 |
| Digital Logic | 5 | 7 |
| Compiler Design | 4 | 6 |
| Databases | 4 | 6 |
| Computer Networks | 3 | 5 |
| Operating System | 3 | 5 |
| Theory of Computation | 3 | 4 |
General Aptitude
- Q1. Expedite, Hasten, Hurry, ______ Fill the blank by choosing a word with a meaning similar…
- Q3. A day can only be cloudy or sunny. The probability of a day being cloudy is 0.5…
- Q4. The values of Stock A and Stock B on a particular day are Rs. 50 and Rs. 80…
- Q5. ‘When it is raining, peacocks dance.’ Based only on this sentence, which one of the…
- Q6. Water : P :: Food : Q Choose the P and Q combination from the options below to form a…
- Q8. Figures (i) and (ii) represent intercity highway systems. The black dots represent…
- Q9. The figure in Panel I below is a grid of cells with four rows and four columns. The…
- Q10. An unbiased six-faced dice whose faces are marked with numbers 1, 2, 3, 4, 5, and 6 is…
Engineering Mathematics
- Q11. For two different persons x and y, the predicate M(x, y) denotes that x knows y…
- Q14. The probability density function f(x) of a random variable X which takes real values is…
- Q26. Let R be a binary relation on the set {1, 2, …, 10}, where (x, y) ∈ R if the product of…
- Q27. For a real number a, let I(a) = ∫₋₁¹ (3x² - ax + 1) dx. Which of the following…
- Q31. Consider the system of linear equations given below. ax + y = b16x + ay = 24 Suppose the…
- Q36. Consider a complete graph Kₙ with n vertices (n > 4). Note that multiple spanning trees…
- Q62. The determinant of a 4 × 4 matrix A is 3. The value of the determinant of 2A is ______…
- Q63. Suppose an unbiased coin is tossed 6 times. Each coin toss is independent of all…
- Q64. Consider a function f: (0,1) → {0, 1} defined as follows. For a real number r ∈ (0,1)…
Programming and Data Structures
- Q12. The set T represents various traversals over binary tree. The set S represents the order…
- Q19. Consider the following three ANSI-C programs, P1, P2, and P3. P1 #include <stdio.h> int…
- Q49. Consider a binary search tree (BST) with n leaf nodes (n > 0). Given any node V, the key…
- Q50. Consider a stack S and a queue Q. Both of them are initially empty and have the capacity…
- Q60. Consider the following ANSI-C program. #include <stdio.h> int main(){ int *ptr, a, b, c…
- Q61. Consider the following ANSI-C function. int func(int start, int end){ int…
Theory of Computation
- Q13. Which one of the following statements is equivalent to the following assertion? Turing…
- Q29. Which of the following grammars is/are ambiguous?
- Q48. Let Σ = {a, b, c, d} and let L = {aⁱ bʲ cᵏ d^ℓ | i, j, k, ℓ ≥ 0}. Which of the following…
Databases
- Q15. In the context of DBMS, consider the two sets T and S given below. T | S ; I: Logical…
- Q20. Consider concurrent execution of two transactions T1 and T2 in a DBMS, both of which…
- Q42. In the context of schema normalization in relational DBMS, consider a set F of…
- Q46. An index in a DBMS is said to be dense if an index entry appears for every search-key…
Digital Logic
- Q16. Which one of the following options is not a property of Boolean Algebra? Note : + is OR…
- Q28. In a system, numbers are represented using 4-bit two’s complement form. Consider four…
- Q34. The 32-bit IEEE 754 single precision representation of a number is 0xC2710000. The…
- Q40. Consider the following 4-variable Boolean function F(A,B,C,D) = Σ m(0, 1, 2, 3, 8, 9…
- Q59. Consider the digital circuit shown below with two input lines A and B, two select lines…
Compiler Design
- Q17. In C runtime environment, which one of the following is stored in heap?
- Q35. A lexical analyzer uses the following token definitions letter → [A-Za-z] digit → [0-9]…
- Q41. Consider the canonical LR(0) parsing of the grammar below using terminals {a, b, c} and…
- Q45. Consider the control flow graph given below. Control flow graph with four basic blocks…
Computer Organization and Architecture
- Q18. Consider the following two statements about interrupt handling mechanisms in a CPU. S1…
- Q44. Consider a processor that has 16 general purpose registers and it uses 2-byte…
- Q52. Consider a system with a processor and a 4 KB direct mapped cache with block size of 16…
- Q56. Consider a system with 1 MB physical memory and a word length of 1 byte. The system uses…
- Q57. A non-pipelined instruction execution unit that operates at 1.6 GHz clock takes an…
Operating System
- Q23. Which one of the following CPU scheduling algorithms cannot be preemptive?
- Q54. A system has a Translation Lookaside Buffer (TLB) that has a reach of 1 MB. TLB reach is…
- Q55. Consider contiguous allocation of physical memory to processes using variable…
Algorithms
- Q24. Consider the following functions, where n is a positive integer. n^(1/3), log(n)…
- Q25. Which of the following can be recurrence relation(s) corresponding to an algorithm with…
- Q30. The keys 5, 28, 19, 15, 26, 33, 12, 17, 10 are inserted into a hash table using the hash…
- Q32. Consider an array A = [10, 7, 8, 19, 41, 35, 25, 31]. Suppose the merge sort algorithm…
- Q37. Let G be a weighted directed acyclic graph with m edges and n vertices. Given G and a…
- Q38. Consider an array A of integers of size n. The indices of A run from 1 to n. An…
- Q39. Consider a table T, where the elements T[i][j], 0 ≤ i, j ≤ n, represent the cost of the…