GATE CSE Theory of Computation PYQ analysis
Topic-wise weightage of Theory of Computation from the 15 official GATE CSE papers on this site (2017–2026), with every question listed under the syllabus topics it tests.
7.9
average marks per paper
75
PYQs (2017–2026)
4 / 4
syllabus topics asked
#6 of 11
subjects by marks
Theory of Computation weightage by year
Per paper; a year with two sessions shows their average. Of the 75 questions, 40 MCQ, 23 MSQ, 12 NAT; 43 carry 2 marks.
| Measure | 20172 papers | 2018 | 2019 | 2020 | 20212 papers | 2022 | 2023 | 20242 papers | 20252 papers | 20262 papers | Average |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Marks | 9.5 | 8 | 8 | 9 | 8.5 | 8 | 8 | 7 | 7.5 | 6 | 7.9 |
| Questions | 6 | 5 | 5 | 6 | 5.5 | 5 | 5 | 4 | 5 | 4 | 5 |
Theory of Computation topic-wise weightage
Every topic of the official syllabus, most marks first. Year columns show marks per paper; marks count each question once, under its main topic, while “Questions” also counts supporting topics.
| Topic | 20172 papers | 2018 | 2019 | 2020 | 20212 papers | 2022 | 2023 | 20242 papers | 20252 papers | 20262 papers | Marks | Questions | Share |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Regular expressions and finite automata | 2 | 3 | 2 | 3 | 3 | 1 | 3 | 4.5 | 2.5 | 1.5 | 39 | 26 | |
| Regular and context-free languages; pumping lemma | 3.5 | 2 | 4 | 3 | 2 | 4 | 1 | 0.5 | 3.5 | 2 | 37 | 25 | |
| Context-free grammars and push-down automata | 2 | – | – | 1 | 1 | – | 4 | 2 | 1 | 2 | 21 | 17 | |
| Turing machines and undecidability | 2 | 3 | 2 | 2 | 2.5 | 3 | – | – | 0.5 | 0.5 | 21 | 16 |
Theory of Computation PYQs by topic
Newest first. A question can appear under up to three topics; one filed under another subject is marked with that subject.
Regular expressions and finite automata
26 questions · 39 marks as main topic · asked in 10 of 10 years · last in 2026
- 2026 Session 1 · Q26Impossible minimal DFA sizes for a 6-state NFA1M · MSQ
- 2026 Session 2 · Q47Compare the languages of two finite automata D1 and D22M · MSQ
- 2025 Session 1 · Q28False statements about NFA and DFA sizes1M · MSQ
- 2025 Session 1 · Q50Language accepted by a four-state DFA2M · MSQ
- 2025 Session 2 · Q60Minimal DFA for strings whose digit product mod 7 is 22M · NAT
- 2024 Session 1 · Q50Distinguishable states in a 5-state DFA2M · MSQ
- 2024 Session 1 · Q61Strings of length ≤ 5 in neither 0* + 1* nor 01* + 10*2M · NAT
- 2024 Session 2 · Q22Regular expression for a two-state DFA1M · MCQ
- 2024 Session 2 · Q41Regular expression for a 5-state NFA with ε-moves2M · MCQ
- 2024 Session 2 · Q62Strings of length at most 4 in b*ab*(ab*ab*)*2M · NAT
- 2023 · Q14Regular expression for a four-state DFA1M · MCQ
- 2023 · Q63Minimum DFA states for strings without three consecutive 1s2M · NAT
- 2022 · Q12Regular expression for a three-state finite automaton1M · MCQ
- 2021 Set 1 · Q48DFA for binary strings ending in 0112M · MCQ
- 2021 Set 2 · Q19Language that always has a minimal DFA with the same k states1M · MCQ
- 2021 Set 2 · Q27Number of length-8 strings accepted by a given DFA1M · NAT
- 2021 Set 2 · Q57Regular expressions for binary numbers divisible by three2M · MSQ
- 2020 · Q17Regular expression for binary strings with an odd number of 1s1M · MCQ
- 2020 · Q61Minimum DFA states: number of a's divisible by 2 but not by 32M · NAT
- 2019 · Q58Minimum DFA states for strings of permutations composing to identity2M · NAT
- 2018 · Q16States of minimal DFA equivalent to an n-state NFA1M · MCQ
- 2018 · Q47Token sequence from longest-match lexer on bbaacabcCompiler Design · supporting · 2M · MCQ
- 2018 · Q62Order of a unary language accepted by a three-state automaton2M · NAT
- 2017 Session 1 · Q32Minimum DFA states for (a+b)*b(a+b)1M · NAT
- 2017 Session 2 · Q35Minimum DFA states for w1 a w2 with |w1| = 2, |w2| ≥ 31M · NAT
- 2017 Session 2 · Q49Extended transition function of an epsilon-NFA on aba2M · MCQ
Regular and context-free languages; pumping lemma
25 questions · 37 marks as main topic · asked in 10 of 10 years · last in 2026
- 2026 Session 1 · Q51What follows from L1 ∩ L2 and L2 being regular2M · MSQ
- 2026 Session 2 · Q48Constraints on a^i b^j c^k d^l that keep the language context-free2M · MSQ
- 2025 Session 1 · Q44Regularity of αβα languages over {a, b}2M · MCQ
- 2025 Session 1 · Q45Context-freeness of a^m b^m c^(m+n) and a^m b^n c^(m+n)2M · MCQ
- 2025 Session 2 · Q30Match language classes to closure properties1M · MSQ
- 2025 Session 2 · Q52Which counting-based languages are regular2M · MSQ
- 2024 Session 1 · Q23Closure facts for regular and non-regular languages1M · MSQ
- 2023 · Q24Closure of language classes under intersection1M · MSQ
- 2022 · Q23True statements about RE, recursive, CFL and regular languagessupporting · 1M · MSQ
- 2022 · Q47Classify a^n w a^n and w x w^R2M · MSQ
- 2022 · Q48False statements about ww, aⁿbⁿcᵐ and aᵐbⁿcⁿ2M · MSQ
- 2021 Set 1 · Q11Closure of CFLs under operations with a regular language1M · MCQ
- 2021 Set 2 · Q22Closure: regular L1 and context-free L2 combinations1M · MSQ
- 2021 Set 2 · Q46Undecidable subsets of infinite regular languages; finite languagessupporting · 2M · MCQ
- 2021 Set 2 · Q51Which reversal-based languages are context-free2M · MSQ
- 2020 · Q18Regularity of a union and closure under infinite union1M · MCQ
- 2020 · Q42Classify L1 = {wxyx} and L2 = {xy : |x| = |y|, x ≠ y}2M · MCQ
- 2019 · Q17Regular L over {a,b}: which derived language is NOT regular1M · MCQ
- 2019 · Q25Pumping length for L = {a^(2+3k)} ∪ {b^(10+12k)}1M · MCQ
- 2019 · Q41Which language over {a, b} is NOT context-free2M · MCQ
- 2018 · Q45Which of four a^m b^n c^p d^q languages are context-free2M · MCQ
- 2017 Session 1 · Q47Intersection of L(G1) with S → aSb | T and L(G2) with S → bSa | T, T → cT | ε2M · MCQ
- 2017 Session 1 · Q48Union and intersection of a^n b^n c^m and a^m b^n c^n: which are CFLs2M · MCQ
- 2017 Session 2 · Q14Closure of context-free languages: union, complement, minus regular, intersection1M · MCQ
- 2017 Session 2 · Q50Classifying four languages: regular, CFL, DCFL, recursive2M · MCQ
Context-free grammars and push-down automata
17 questions · 21 marks as main topic · asked in 9 of 10 years · last in 2026
- 2026 Session 1 · Q25Ambiguity of S → aSbS | bS | ε1M · MSQ
- 2026 Session 1 · Q52Counts of a's and b's in strings of a given CFG2M · MSQ
- 2026 Session 2 · Q29Which of four grammars are ambiguous1M · MSQ
- 2025 Session 1 · Q19Language generated by S → aaB | Abb1M · MCQ
- 2025 Session 2 · Q24Languages accepted by a deterministic PDA1M · MCQ
- 2024 Session 1 · Q59Derivation length for a 90-symbol string in Chomsky Normal Form2M · NAT
- 2024 Session 2 · Q52Symbol-count relations for S → aS | aSbS | c2M · MSQ
- 2023 · Q39Language of S → aSb | X, X → aX | Xb | a | b2M · MCQ
- 2023 · Q40Language accepted by empty stack by a three-state PDA2M · MCQ
- 2022 · Q48False statements about ww, aⁿbⁿcᵐ and aᵐbⁿcⁿsupporting · 2M · MSQ
- 2021 Set 1 · Q61Strings of length 100 accepted by a PDA2M · NAT
- 2020 · Q20Is {a^n} ∪ {a^n b^n} deterministic context-free or LL(k)?1M · MCQ
- 2018 · Q45Which of four a^m b^n c^p d^q languages are context-freesupporting · 2M · MCQ
- 2017 Session 1 · Q20Language of S → abScT | abcT, T → bT | b1M · MCQ
- 2017 Session 1 · Q44Which string is not generated by S → SaS | aSb | bSa | SS | ε2M · MCQ
- 2017 Session 1 · Q47Intersection of L(G1) with S → aSb | T and L(G2) with S → bSa | T, T → cT | εsupporting · 2M · MCQ
- 2017 Session 2 · Q26Language of S → XY, X → aX | a, Y → aYb | ε1M · MCQ
Turing machines and undecidability
16 questions · 21 marks as main topic · asked in 9 of 10 years · last in 2026
- 2026 Session 2 · Q13Meaning of a Turing machine deciding a language1M · MCQ
- 2025 Session 2 · Q25Decidable question about context-free grammars1M · MCQ
- 2025 Session 2 · Q30Match language classes to closure propertiessupporting · 1M · MSQ
- 2023 · Q24Closure of language classes under intersectionsupporting · 1M · MSQ
- 2022 · Q23True statements about RE, recursive, CFL and regular languages1M · MSQ
- 2022 · Q46Which Turing machine problems are undecidable2M · MSQ
- 2021 Set 1 · Q22Which DFA/PDA emptiness and universality problems are undecidable1M · MSQ
- 2021 Set 1 · Q49Decidability of TMs taking more than 2021 steps on all/some inputs2M · MCQ
- 2021 Set 2 · Q46Undecidable subsets of infinite regular languages; finite languages2M · MCQ
- 2020 · Q36Which Turing machine languages are undecidable2M · MCQ
- 2019 · Q44Which sets of languages and programs are uncountable2M · MCQ
- 2018 · Q17Closure property of recursively enumerable languages1M · MCQ
- 2018 · Q46Decidability of four problems on grammars, Turing machines and NFAs2M · MCQ
- 2017 Session 1 · Q49f computable iff L_f = {x#f(x)} is recursive2M · MCQ
- 2017 Session 2 · Q50Classifying four languages: regular, CFL, DCFL, recursivesupporting · 2M · MCQ
- 2017 Session 2 · Q51Which decision problems on regex, CFG and TM are undecidable2M · MCQ