Home › PYQ › GATE CSE PYQ

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)

Discrete Mathematics (Discrete Maths) (5 tests, 150 questions)

Engineering Mathematics (6 tests, 154 questions)

Digital Logic (Digital Electronics) (4 tests, 117 questions)

Computer Organization & Architecture (COA) (7 tests, 129 questions)

Programming & Data Structures (Data Structures) (7 tests, 187 questions)

Algorithms (8 tests, 162 questions)

Theory of Computation (TOC) (4 tests, 136 questions)

Compiler Design (Compilers) (5 tests, 103 questions)

Operating Systems (OS) (7 tests, 159 questions)

Databases (DBMS) (5 tests, 135 questions)

Computer Networks (CN) (6 tests, 150 questions)

Old Syllabus (SE, Web & IS) (2 tests, 25 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.

  1. P = Thirst; Q = Hunger
  2. P = Drink; Q = Hunger
  3. P = Thirst; Q = Satiated
  4. 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?

  1. Peacocks dance only when it is raining.
  2. When peacocks dance, it is raining.
  3. When peacocks are not dancing, it is not raining.
  4. 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.

  1. Accelerate
  2. Retard
  3. Provide
  4. 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.

More PYQ practice