GATE CSE previous-year questions (2007–2026), chapter-wise
Last updated 25 November 2026
Every GATE CS question from 2007 to 2026, sorted into the 12 subjects of the current syllabus and then chapter by chapter, so you can finish Databases or Theory of Computation the way the paper actually asks it. Each question keeps its year and question number, and comes with the official answer and a worked solution.
1,852 questions · 73 tests · 2007–2026 papers · Free to practise
Start the free GATE CSE PYQ tests
GATE CS 2027 full-length mock tests
Exam pattern
GATE CS has 65 questions for 100 marks in 3 hours: 10 General Aptitude questions (15 marks) and 55 from Engineering Mathematics and core CS. Questions are MCQ, MSQ (more than one correct option) or NAT (numerical answer). A wrong MCQ costs 1/3 of its marks; MSQ and NAT have no negative marking.
Subjects and chapters
General Aptitude (7 tests, 245 questions)
- Verbal Aptitude – 99 questions
- Quantitative Aptitude – 110 questions
- Analytical & Spatial Aptitude – 36 questions
Discrete Mathematics (Discrete Maths) (5 tests, 150 questions)
- Propositional & First-Order Logic – 36 questions
- Sets, Relations, Functions & Lattices – 27 questions
- Combinatorics & Recurrences – 31 questions
- Graph Theory – 40 questions
- Groups & Algebraic Structures – 16 questions
Engineering Mathematics (6 tests, 154 questions)
- Linear Algebra – 49 questions
- Calculus – 51 questions
- Probability & Statistics – 54 questions
Digital Logic (Digital Electronics) (4 tests, 117 questions)
- Boolean Algebra & Minimization – 38 questions
- Combinational Circuits – 25 questions
- Sequential Circuits – 21 questions
- Number Systems & Representation – 33 questions
Computer Organization & Architecture (COA) (7 tests, 129 questions)
- Instructions & Addressing Modes – 21 questions
- ALU, Datapath & Control Unit – 6 questions
- Pipelining – 34 questions
- Cache & Memory Hierarchy – 43 questions
- Main & Secondary Memory – 10 questions
- I/O, Interrupts & DMA – 15 questions
Programming & Data Structures (Data Structures) (7 tests, 187 questions)
- C Programming – 82 questions
- Arrays, Stacks, Queues & Linked Lists – 26 questions
- Trees, BST & Heaps – 64 questions
- Hashing – 15 questions
Algorithms (8 tests, 162 questions)
- Asymptotic Analysis & Recurrences – 44 questions
- Searching, Sorting & Divide-and-Conquer – 27 questions
- Greedy Algorithms – 10 questions
- Dynamic Programming – 17 questions
- Graph Algorithms – 55 questions
- P, NP & Complexity – 9 questions
Theory of Computation (TOC) (4 tests, 136 questions)
- Regular Languages & Finite Automata – 64 questions
- Context-Free Languages & PDA – 40 questions
- Turing Machines & Decidability – 32 questions
Compiler Design (Compilers) (5 tests, 103 questions)
- Lexical Analysis – 12 questions
- Parsing – 41 questions
- Syntax-Directed Translation – 15 questions
- Intermediate Code, Optimization & Runtime – 35 questions
Operating Systems (OS) (7 tests, 159 questions)
- Processes, Threads & CPU Scheduling – 45 questions
- Process Synchronization – 24 questions
- Deadlocks – 18 questions
- Memory Management & Virtual Memory – 45 questions
- File Systems & Disk Scheduling – 27 questions
Databases (DBMS) (5 tests, 135 questions)
- ER & Relational Model – 16 questions
- Relational Algebra, Calculus & SQL – 38 questions
- Functional Dependencies & Normalization – 30 questions
- Transactions & Concurrency Control – 29 questions
- File Organization & Indexing – 22 questions
Computer Networks (CN) (6 tests, 150 questions)
- Network Basics & Layering – 14 questions
- Data Link Layer & MAC – 25 questions
- Network Layer, IP & Routing – 48 questions
- Transport Layer, TCP & UDP – 37 questions
- Application Layer & Security – 26 questions
Old Syllabus (SE, Web & IS) (2 tests, 25 questions)
- Software Engineering – 21 questions
- Web Technologies & Information Systems – 4 questions
Sample questions
Question 1 (GATE CS 2026 (Paper 2) · Q61)
Water : P :: Food : Q Choose the P and Q combination from the options below to form a meaningful analogy.
- P = Thirst; Q = Hunger
- P = Drink; Q = Hunger
- P = Thirst; Q = Satiated
- P = Wet; Q = Critic
Answer: (A) P = Thirst; Q = Hunger – Water satisfies thirst as food satisfies hunger.
Question 2 (GATE CS 2026 (Paper 2) · Q60)
'When it is raining, peacocks dance.' Based only on this sentence, which one of the following options is necessarily true?
- Peacocks dance only when it is raining.
- When peacocks dance, it is raining.
- When peacocks are not dancing, it is not raining.
- When it is not raining, peacocks do not dance.
Answer: (C) When peacocks are not dancing, it is not raining. – Only the contrapositive follows: not dancing → not raining.
Question 3 (GATE CS 2026 (Paper 2) · Q56)
Expedite, Hasten, Hurry, __________ Fill the blank by choosing a word with a meaning similar to that of the words given above.
- Accelerate
- Retard
- Provide
- Disable
Answer: (A) Accelerate – All the words mean 'speed up'.
Frequently asked questions
How many GATE CSE previous-year questions are there?
1,852 questions from 2007–2026, in 73 chapter-wise tests across 12 subjects.
Are the GATE CSE PYQs free?
Yes. Every GATE CSE PYQ test on QuizMaster is free. Sign in with a free account to take the tests and keep your scores; there is no card or payment step.
Do the questions have solutions?
Every question shows the official answer and a worked explanation after you submit.
Are these the real exam questions?
Yes. Each question is from a past paper and is tagged with its exam, year (and shift, where the exam has shifts) and question number. Answers follow the official answer keys wherever they were published.
What is the GATE CSE exam pattern?
GATE CS has 65 questions for 100 marks in 3 hours: 10 General Aptitude questions (15 marks) and 55 from Engineering Mathematics and core CS. Questions are MCQ, MSQ (more than one correct option) or NAT (numerical answer). A wrong MCQ costs 1/3 of its marks; MSQ and NAT have no negative marking.
Can I practise on my phone?
Yes. The tests work in any mobile browser and in the QuizMaster Android app, and your progress syncs between them.