GATE CSE previous year question papers (PYQ) from 2017 to 2026 are free to download here: 15 GATE CS question papers for the Computer Science and Information Technology (CS) paper. Papers from 2020 to 2026 come with the official answer key, and the 2017 to 2019 papers have the answers marked inside the PDF. Solve them as timed 3-hour tests to prepare for GATE 2027, which IIT Madras is organising.
GATE CSE PYQ: Year-wise Question Papers
Pick a year to see every GATE paper of that year, or download the CS papers and answer keys below.
Download GATE CSE Question Papers with Answer Keys (2017–2026)
- PDFGATE 2026 CS Question Paper (Session 1)AglaSem DocsView
- PDFGATE 2026 CS Question Paper (Session 2)AglaSem DocsView
- PDFGATE 2025 CS Question Paper (Session 1)AglaSem DocsView
- PDFGATE 2025 CS Question Paper (Session 2)AglaSem DocsView
- PDFGATE 2024 CS Question Paper (Session 1)AglaSem DocsView
- PDFGATE 2024 CS Question Paper (Session 2)AglaSem DocsView
- PDFGATE 2023 CS Question PaperAglaSem DocsView
- PDFGATE 2022 CS Question PaperAglaSem DocsView
- PDFGATE 2021 CS Question Paper (Session 1)AglaSem DocsView
- PDFGATE 2021 CS Question Paper (Session 2)AglaSem DocsView
- PDFGATE 2020 CS Question PaperAglaSem DocsView
- PDFGATE 2019 CS Question PaperAglaSem DocsView
- PDFGATE 2018 CS Question PaperAglaSem DocsView
- PDFGATE 2017 CS Question Paper (Set 1)AglaSem DocsView
- PDFGATE 2017 CS Question Paper (Set 2)AglaSem DocsView
Answer keys
- PDFGATE 2026 CS Answer Key (Session 1)AglaSem DocsView
- PDFGATE 2026 CS Answer Key (Session 2)AglaSem DocsView
- PDFGATE 2025 CS Answer Key (Session 1)AglaSem DocsView
- PDFGATE 2025 CS Answer Key (Session 2)AglaSem DocsView
- PDFGATE 2024 CS Answer Key (Session 1)AglaSem DocsView
- PDFGATE 2024 CS Answer Key (Session 2)AglaSem DocsView
- PDFGATE 2023 CS Answer KeyAglaSem DocsView
- LINKGATE 2023 CS Detailed SolutionsOfficial site · docs.aglasem.comOpen
- PDFGATE 2022 CS Answer KeyAglaSem DocsView
- PDFGATE 2021 CS Answer Key (Session 1)AglaSem DocsView
- PDFGATE 2021 CS Answer Key (Session 2)AglaSem DocsView
- PDFGATE 2020 CS Answer KeyAglaSem DocsView
GATE Computer Science Question Paper PDF
Below is the GATE 2026 CS (Session 1) paper.
GATE CSE Previous Year Papers at a Glance
This table shows every year on this page, the institute that set the paper and what you get for each year.
| Year | Organised by | Papers on this page | Answers |
|---|---|---|---|
| GATE 2026 CS question paper | IIT Guwahati | 2 papers (Session 1, Session 2) | Official key |
| GATE 2025 CS question paper | IIT Roorkee | 2 papers (Session 1, Session 2) | Official key |
| GATE 2024 CS question paper | IISc Bangalore | 2 papers (Session 1, Session 2) | Official key |
| GATE 2023 CS question paper | IIT Kanpur | 1 paper | Official key + detailed solutions |
| GATE 2022 CS question paper | IIT Kharagpur | 1 paper | Official key |
| GATE 2021 CS question paper | IIT Bombay | 2 papers (Session 1, Session 2) | Official key |
| GATE 2020 CS question paper | IIT Delhi | 1 paper | Official key |
| GATE 2019 CS question paper | IIT Madras | 1 paper | Answers marked in the PDF |
| GATE 2018 CS question paper | IIT Guwahati | 1 paper | Answers marked in the PDF |
| GATE 2017 CS question paper | IIT Roorkee | 2 papers (Set 1, Set 2) | Answers marked in the PDF |
About the GATE Computer Science Paper
| Paper code | CS: Computer Science and Information Technology |
|---|---|
| Years on this page | 2017 to 2026 |
| Files on this page | 15 question papers, 11 answer keys and 1 detailed solution PDF |
| Answer key | Official answer keys for 2020 to 2026; answers marked inside the PDF for 2017 to 2019 |
| Pattern (GATE 2027) | 65 questions, 100 marks, 3 hours: General Aptitude 15 marks, Engineering Mathematics 13 marks, CS subject 72 marks |
| Papers in more than one session | 2017: 2 papers; 2021: 2 papers; 2024: 2 papers; 2025: 2 papers; 2026: 2 papers |
Multiple select questions (MSQ) appear from GATE 2021 onward. The 2017 to 2020 papers have only MCQ and numerical answer (NAT) questions, so use them for topic practice and the 2021 to 2026 papers for full mock tests.
For GATE 2023, detailed solution PDFs are also listed for CS, along with the official key.
GATE CSE Syllabus Covered in the Papers
Every GATE CS paper is set from the official syllabus. The GATE 2027 syllabus for CS has 10 sections, listed below. Tag each question you solve with its section, so you can see which parts of the syllabus come up most and where you lose marks. The full syllabus is on our GATE syllabus page.
| Syllabus section | Main topics |
|---|---|
| Engineering Mathematics | Discrete Mathematics, Graphs, Combinatorics, Linear Algebra, Calculus, Probability and Statistics |
| Digital Logic | Boolean algebra and minimization – algebraic technique, Karnaugh map, tabular method; Design of combinational and sequential circuits |
| Computer Organization and Architecture | Instruction set and addressing modes; Design of arithmetic and logic unit (ALU); Design of control unit – hardwired and microprogrammed |
| Programming and Data Structures | Programming in C. Recursion; Arrays, stacks, queues, linked lists, trees, binary search trees, binary heaps, graphs |
| Algorithms | Searching, sorting, hashing; Asymptotic worst case time and space complexity |
| Theory of Computation | Regular expressions and finite automata; Context-free grammars and push-down automata; Regular and context-free languages, pumping lemma |
| Compiler Design | Lexical analysis, parsing, syntax-directed translation; Runtime environments; Intermediate code generation |
| Operating System | System calls, processes, threads, inter‐process communication, concurrency and synchronization; Deadlock; CPU and I/O scheduling |
| Databases | ER‐model; Relational model: relational algebra, tuple calculus, SQL. Integrity constraints, normal forms |
| Computer Networks | Principles of Layering; Basics of switching (circuit, packet and virtual circuit) and performance metrics; Data link layer: error detection, Medium Access Control |
How to Use GATE CSE PYQs
- Start with 2026, then go back. The 2026 and 2025 CS papers are closest to the GATE 2027 pattern. Solve each one in a single 3-hour sitting.
- Do not skip Engineering Mathematics. It carries 13 marks in every CS paper, and General Aptitude carries another 15. Together they are over a quarter of the paper.
- Practise MSQ and NAT questions. They have no negative marks, so never leave them blank. They appear in the 2021 to 2026 papers.
- Check with the official key. Use the official answer key for 2020 to 2026; NAT answers are accepted within the range given in the key. For 2017 to 2019, the answers are marked inside each PDF.
- Use both sessions. In 2017, 2021 and 2024 to 2026, CS was held in more than one session, so each of those years gives you more than one full paper.














































