Computer Science and Information Technology
GATE CSE Theory of Computation PYQs
Build your understanding with focused practice from past exam papers.
How to practice Theory of Computation
Attempt a question, record the concept and assumptions, then check the available answer. Rework mistakes after revising the relevant concepts. Topic tags can overlap; review the question context.
Questions 1–10 of 83. Imported answers require independent review unless marked reviewed.
Question 13
Open questionCS2MCQ1 markNeeds review
Which one of the following statements is equivalent to the following assertion?
Turing machine
decides the language
Your answerChoose one option.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 25
Open questionCSMSQ1 markNeeds review
Consider the following grammar where
is the start symbol, and
and
are terminal symbols.
Which of the following statements is/are true?
Your answerSelect all correct options. You can choose more than one.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 26
Open questionCSMSQ1 markNeeds review
Let
be a nondeterministic finite automaton (NFA) with 6 states over a finite alphabet.Which of the following options CANNOT be the number of states in the minimal deterministic finite automaton (DFA) that is equivalent to
?Your answerSelect all correct options. You can choose more than one.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 29
Open questionCS2MSQ1 markNeeds review
Which of the following grammars is/are ambiguous?
Your answerSelect all correct options. You can choose more than one.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 47
Open questionCS2MSQ2 marksNeeds review
Consider the following two finite automata
and
. 
Which of the following statements is/are true?
Your answerSelect all correct options. You can choose more than one.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 48
Open questionCS2MSQ2 marksNeeds review
Let
and let
.Which of the following constraints ensure(s) that the language
is context-free?Your answerSelect all correct options. You can choose more than one.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 51
Open questionCSMSQ2 marksNeeds review
Let
and
be two languages over a finite alphabet, such that
and
are regular languages. Which of the following statements is/are always true?Your answerSelect all correct options. You can choose more than one.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 52
Open questionCSMSQ2 marksNeeds review
Consider the following context-free grammar
.
In the above grammar,
is the start symbol,
and
are terminal symbols, and
and
are non-terminal symbols.Let
be the language generated by the grammar
. For a string
, let
be the number of
’s in
and
be the number of
’s in
.Which of the following statements is/are true?
Your answerSelect all correct options. You can choose more than one.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 19
Open questionCSMCQ1 markNeeds review
Consider the following context-free grammar
, where
,
, and
are the variables (non-terminals),
and
are the terminal symbols,
is the start variable, and the rules of
are described as:
Which ONE of the languages
is accepted by
?Your answerChoose one option.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 24
Open questionCSMCQ1 markNeeds review
Which ONE of the following languages is accepted by a deterministic pushdown automaton?
Your answerChoose one option.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answer