IAE Academy

Theory of Computation: notes and questions

For CSE/IT students

Notes for each topic, a formula sheet, practice questions and 48 past GATE questions from 10 papers (2018–2026), 44 of them solved step by step.

previous-year questions
48previous-year questions
solved step by step
44solved step by step
GATE papers, 2018–2026
10GATE papers, 2018–2026
topics with notes
5topics with notes

Foundation

Learn the subject one topic at a time. Each topic has notes, the key formulas and practice questions.

Topic notes and formulas

Notes on every topic, with the key formulas and practice.

  1. Regular expressions and finite automata

    Regular languages are exactly the languages that DFAs, NFAs, epsilon-NFAs and regular expressions describe.

    5 practice questions

  2. Regular languages: closure properties and the pumping lemma

    Regular languages are closed under many operations, so you can often prove a language regular or non-regular without building a machine.

    6 practice questions

  3. Context-free grammars and push-down automata

    A context-free grammar generates strings by rewriting variables, and a push-down automaton (a finite automaton with a stack) accepts exactly the same languages.

    5 practice questions

  4. Context-free languages: closure properties and the pumping lemma

    Context-free languages are closed under some operations (union, concatenation, star, reversal, homomorphism, substitution, inverse homomorphism, intersection with a regular language) and not under others (intersection, complement).

    5 practice questions

  5. Turing machines, decidability and undecidability

    A Turing machine is the most general model of computation in the GATE syllabus: it defines which languages can be recognised (recursively enumerable) or decided (recursive) by any algorithm.

    5 practice questions

GATE

Past GATE questions on Theory of Computation by topic and year, the full papers, practice and the GATE syllabus.

48 questions, by topic and year

How many questions each topic had in the CS papers of each year. This shows what was asked, not what will be asked. We placed each question under a topic ourselves; the exam paper does not label topics.

Topic2018202020222023202420252026Total
Finite automata221353218
Regular languages·1··1215
CFG & PDA···22239
Context-free languages122··218
Turing machines2121·118

Solved papers

GATE 2023 comes from IIT Kanpur's own copy of the paper and its answer key, which numbers the CS questions Q.11 to Q.65. For 2024, 2025 and 2026 both sessions (CS1 and CS2) are included.

The GATE syllabus for Theory of Computation, paper by paper

From the GATE 2027 syllabus PDF: CS Section 6, “Theory of Computation”. Parsing is listed under Section 7, Compiler Design, not here.

Show the GATE CS wording

Regular expressions and finite automata. Context-free grammars and push-down automata. Regular and context-free languages, pumping lemma. Turing machines and undecidability.

Download the full GATE 2027 syllabus PDFs

Preparing in Kolkata? See IAE Academy’s GATE CS coaching.

Other exams

13 questions on Theory of Computation from ISRO's Scientist/Engineer written test (ISRO CS 2025, ISRO CS 2023), by topic. They are not counted in the GATE numbers on this page.

IF YOU WOULD RATHER TALK IT THROUGH

Get a preparation plan
built around your branch.

Book free counselling