GATE CS 2023 question paper
The official GATE CS 2023 paper, set by IIT Kanpur. 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 (93 of 100 marks) on PrepWiser. 27 one-mark and 33 two-mark questions.
- Question types: 32 MCQ · 15 MSQ · 13 NAT
- General Aptitude: 9 questions, 14 marks
- Core CS: 51 questions, 79 marks
| Subject | Questions | Marks |
|---|---|---|
| Engineering Mathematics | 10 | 15 |
| General Aptitude | 9 | 14 |
| Compiler Design | 5 | 8 |
| Computer Networks | 5 | 8 |
| Computer Organization and Architecture | 5 | 8 |
| Digital Logic | 5 | 8 |
| Theory of Computation | 5 | 8 |
| Operating System | 5 | 7 |
| Programming and Data Structures | 5 | 7 |
| Algorithms | 3 | 5 |
| Databases | 3 | 5 |
General Aptitude
- Q1. We reached the station late, and ______ missed the train.
- Q3. A series of natural numbers F₁, F₂, F₃, F₄, F₅, F₆, F₇, … obeys Fₙ₊₁ = Fₙ + Fₙ₋₁ for all…
- Q4. A survey for a certain year found that 90% of pregnant women received medical care at…
- Q5. Looking at the surface of a smooth 3-dimensional object from the outside, which one of…
- Q6. The country of Zombieland is in distress since more than 75% of its working population…
- Q7. Consider two functions of time (t), f(t) = 0.01 t²g(t) = 4 t where 0 < t < ∞. Now…
- Q8. Which one of the following sentence sequences creates a coherent narrative? (i) Once on…
- Q9. f(x) and g(y) are functions of x and y, respectively, and f(x) = g(y) for all real…
- Q10. Which one of the options best describes the transformation of the 2-dimensional figure P…
Compiler Design
- Q11. Consider the following statements regarding the front-end and back-end of a compiler. S1…
- Q19. Consider the following definition of a lexical token id for an identifier in a…
- Q36. Consider the following program: int main() { f1(); f2(2); f3(); return(0); } int f1() {…
- Q37. Consider the control flow graph shown. Control flow graph with four basic blocks. ENTRY…
- Q60. Consider the syntax directed translation given by the following grammar and semantic…
Programming and Data Structures
- Q12. Which one of the following sequences when stored in an array at locations A[1], …, A[10]…
- Q13. Let SLLdel be a function that deletes a node in a singly-linked list given a pointer to…
- Q35. The integer value printed by the ANSI-C program given below is ______. #include<stdio.h>…
- Q46. Let A be a priority queue for maintaining a set of elements. Suppose A is implemented…
- Q47. Consider the C function foo and the binary tree shown. typedef struct node int val…
Theory of Computation
- Q14. Consider the Deterministic Finite-state Automaton (DFA) A shown below. The DFA runs on…
- Q24. Which of the following statements is/are CORRECT ?
- Q39. Consider the context-free grammar G below S → aSb | X ; X → aX | Xb | a | b where S and…
- Q40. Consider the pushdown automaton (PDA) P below, which runs on the input alphabet {a, b}…
- Q63. Consider the language L over the alphabet {0, 1}, given below: L = {w ∈ {0,1}^* | w does…
Engineering Mathematics
- Q15. The Lucas sequence Lₙ is defined by the recurrence relation: Lₙ = Lₙ₋₁ + Lₙ₋₂, for n ≥…
- Q18. Let A = [1, 2, 3, 4; 4, 1, 2, 3; 3, 4, 1, 2; 2, 3, 4, 1] and B = [3, 4, 1, 2; 4, 1, 2…
- Q26. Geetha has a conjecture about integers, which is of the form ∀ x ( P(x) ⇒ ∃ y Q(x, y) )…
- Q28. Let f(x) = x³ + 15x² - 33x - 36 be a real-valued function. Which of the following…
- Q31. The value of the definite integral ∫₋₃³∫₋₂²∫₋₁¹(4x²y - z³) dz dy dx is ______ . (Rounded…
- Q48. Let U = {1, 2, …, n}, where n is a large positive integer greater than 1000. Let k be a…
- Q49. Let f : A → B be an onto (or surjective) function, where A and B are nonempty sets…
- Q51. Let X be a set and 2^X denote the powerset of X. Define a binary operation Δ on 2^X as…
- Q53. Consider a random experiment where two fair coins are tossed. Let A be the event that…
- Q55. Let G be a simple, finite, undirected graph with vertex set {v₁, …, vₙ}. Let Δ(G) denote…
Databases
- Q16. Which one of the options given below refers to the degree (or arity) of a relation in…
- Q61. Consider the following table named Student in a relational database. The primary key of…
- Q62. Consider a database of fixed-length records, stored as an ordered file. The database has…
Computer Networks
- Q17. Suppose two hosts are connected by a point-to-point link and they are configured to use…
- Q25. Which of the following statements is/are INCORRECT about the OSPF (Open Shortest Path…
- Q50. Suppose you are asked to design a new reliable byte-stream transport protocol like TCP…
- Q52. Suppose in a web browser, you click on the www.gate-2023.in URL. The browser cache is…
- Q65. The forwarding table of a router is shown below. Subnet Number | Subnet Mask | Interface…
Digital Logic
- Q21. The output of a 2-input multiplexer is connected back to one of its inputs as shown in…
- Q32. A particular number is written as 132 in radix-4 representation. The same number in…
- Q43. Consider a sequential digital circuit consisting of T flip-flops and D flip-flops as…
- Q44. A Boolean digital circuit is composed using two 4-input multiplexers (M1 and M2) and one…
- Q45. Consider the IEEE-754 single precision floating point numbers P = 0xC1800000 and Q =…
Operating System
- Q22. Which one or more of the following need to be saved on a context switch from one thread…
- Q23. Which one or more of the following options guarantee that a computer system will…
- Q27. Which one or more of the following CPU scheduling algorithms can potentially cause…
- Q38. Consider the two functions incr and decr shown below. incr() wait(s); X = X+1…
- Q57. Consider the following two-dimensional array D in the C programming language, which is…
Algorithms
- Q29. Let f and g be functions of natural numbers given by f(n) = n and g(n) = n². Which of…
- Q54. Consider functions Function_1 and Function_2 expressed in pseudocode as follows…
- Q56. Let U = {1, 2, 3}. Let 2^U denote the powerset of U. Consider an undirected graph G…
Computer Organization and Architecture
- Q33. Consider a 3-stage pipelined processor having a delay of 10 ns (nanoseconds), 20 ns, and…
- Q34. A keyboard connected to a computer is used at a rate of 1 keystroke per second. The…
- Q41. Consider the given C-code and its corresponding assembly code, with a few operands U1–U4…
- Q42. A 4 kilobyte (KB) byte-addressable memory is realized using four 1 KB memory blocks. Two…
- Q64. An 8-way set associative cache of size 64 KB (1 KB = 1024 bytes) is used in a system…