Skip to content

GATE CS Theory of Computation questions

Practise Theory of Computation questions for GATE CS. Explore official PYQs and original subject-wise quizzes, check answers and view available solutions. Free, no sign-in.

Subject, topic, year and type filter the full library. Match any choice within a filter, and all selected filter categories. Search, source and sort apply to this page.

20 on this page
Official PYQ2008Theory of ComputationUndecidabilityMCQ · 1 mark
If LL and L‾\overline{L} are recursively enumerable then LL is
Official PYQ2008Theory of ComputationUndecidabilityMCQ · 1 mark
Which of the following are decidable? Whether the intersection of two regular languages is infinite Whether a given context-free language is regular Whether two push-down automata accept the same language Whether a given grammar is context-free
Official PYQ2008Theory of ComputationRegular and Context-free LanguagesMCQ · 1 mark
Which of the following is true for the language {ap∣p is a prime }?\left\{ a^p \mid p \text{ is a prime } \right \}?
Official PYQ2007Theory of ComputationRegular Expressions and Finite AutomataMCQ · 1 mark
Consider the following Finite State Automaton: The minimum state automaton equivalent to the above FSA has the following number of states:
Official PYQ2007Theory of ComputationRegular Expressions and Finite AutomataMCQ · 1 mark
Consider the following Finite State Automaton: The language accepted by this automaton is given by the regular expression
Official PYQ2007Theory of ComputationRegular and Context-free LanguagesMCQ · 1 mark
The language L={0i21i∣i≥0}L=\left\{0^i21^i \mid i \geq 0\right\} over the alphabet {0,1,2}\left\{0, 1, 2\right\} is:
Official PYQ2007Theory of ComputationRegular and Context-free LanguagesMCQ · 1 mark
Which of the following languages is regular?
Official PYQ2007Theory of ComputationRegular Expressions and Finite AutomataMCQ · 1 mark
A minimum state deterministic finite automaton accepting the language L={w∣w∈{0,1}∗,L=\{w\mid w \in \{0, 1\}^*, number of 00s and 11s in ww are divisible by 33 and 55, respectively }\} has
Official PYQ2007Theory of ComputationRegular and Context-free LanguagesMCQ · 1 mark
Which of the following is TRUE?
Official PYQ2007Theory of ComputationUndecidabilityMCQ · 1 mark
Which of the following problems is undecidable?
Official PYQ2006Theory of ComputationRegular Expressions and Finite AutomataMCQ · 1 mark
Consider the regular language L=(111+11111)∗.L=(111+11111)^{*}. The minimum number of states in any DFA accepting this languages is:
Official PYQ2006Theory of ComputationRegular and Context-free LanguagesMCQ · 1 mark
Let L1L_1 be a regular language, L2L_2 be a deterministic context-free language and L3L_3 a recursively enumerable, but not recursive, language. Which one of the following statements is false?
Official PYQ2006Theory of ComputationRegular and Context-free LanguagesMCQ · 1 mark
Let SHAM3_3 be the problem of finding a Hamiltonian cycle in a graph G=(V,E)G=(V,E) with ∣V∣|V| divisible by 33 and DHAM3_3 be the problem of determining if a Hamiltonian cycle exists in such graphs. Which one of the following is true?
Official PYQ2006Theory of ComputationRegular and Context-free LanguagesMCQ · 1 mark
For s∈(0+1)∗s\in (0+1)^{*} let d(s)d(s) denote the decimal value of s(s (e.g. d(101)=5).d (101) = 5 ). Let L={s∈(0+1)∗∣d(s) mod 5=2 and d(s) mod 7≠4}L=\left \{ s\in (0+1)^*\mid d(s) \text{ mod } 5=2 \text{ and }d(s) \text{ mod } 7\neq 4 \right \}Which one of the following statements is true?
Official PYQ2006Theory of ComputationRegular and Context-free LanguagesMCQ · 1 mark
If ss is a string over (0+1)∗(0+1)^* then let n0(s)n_0(s) denote the number of 00’s in ss and n1(s)n_1(s) the number of 11’s in ss. Which one of the following languages is not regular?
Official PYQ2006Theory of ComputationContext-free Grammars and Push-down AutomataMCQ · 1 mark
Let L1={0n+m1n0m∣n,m≥0}L_1=\{0^{n+m}1^n0^m\mid n,m\geq 0 \}, L2={0n+m1n+m0m∣n,m≥0}L_2=\{0^{n+m}1^{n+m}0^m\mid n,m\geq 0\} and L3={0n+m1n+m0n+m∣n,m≥0}L_3=\{0^{n+m}1^{n+m}0^{n+m}\mid n,m\geq 0\}. Which of these languages are NOT context free?
Official PYQ2005Theory of ComputationRegular Expressions and Finite AutomataMCQ · 1 mark
The following diagram represents a finite state machine which takes as input a binary number from the least significant bit. Which of the following is TRUE?
Official PYQ2005Theory of ComputationUndecidabilityMCQ · 1 mark
Consider the following two problems on undirected graphs: α\alpha: Given G(V,E)G(V, E), does GG have an independent set of size |V| - 44? β\beta: Given G(V,E)G(V, E), does GG have an independent set of size 55? Which one of the following is TRUE?
Official PYQ2005Theory of ComputationContext-free Grammars and Push-down AutomataMCQ · 1 mark
Consider the languages: L1={wwR∣w∈{0,1}∗}L_1 = \left\{ww^R \mid w \in \{0, 1\}^* \right\} L2={w#wR∣w∈{0,1}∗}L_2 = \left\{w\text{\#}w^R \mid w \in \{0, 1\}^* \right\}, where #\text{\#} is a special symbol L3={ww∣w∈{0,1}∗}L_3 = \left\{ww \mid w \in \{0, 1\}^* \right\} Which one of the following is TRUE?
Official PYQ2005Theory of ComputationUndecidabilityMCQ · 1 mark
Let L1L_1 be a recursive language, and let L2L_2 be a recursively enumerable but not a recursive language. Which one of the following is TRUE?