Computer Science and Information Technology
GATE CSE Theory of Computation PYQs
Build your understanding with focused practice from past exam papers.
Questions 51–60 of 83. Imported answers require independent review unless marked reviewed.
Question 51
Open questionCSNAT2 marksNeeds review
In a pushdown automaton
, a transition of the form
where
,
, and
, represents
.Consider the following pushdown automaton over the input alphabet
and stack alphabet
.
The number of strings of length 100 accepted by the above pushdown automaton is __________.
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 7
Open questionCSMCQ1 markNeeds review
Which one of the following regular expressions represents the set of all binary strings with an odd number of 1’s?
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 8
Open questionCSMCQ1 markNeeds review
Consider the following statements.
I. If
is regular, then both
and
must be regular.II. The class of regular languages is closed under infinite union.
Which of the above statements is/are TRUE?
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 10
Open questionCSMCQ1 markNeeds review
Consider the language
and the following statements.I.
is deterministic context-free.II.
is context-free but not deterministic context-free.III.
is not LL(k) for any
.Which of the above statements is/are TRUE?
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 questionCSNAT1 markNeeds review
Consider the following grammar.
The number of reduction steps taken by a bottom-up parser while accepting the string
is ________.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 questionCSMCQ2 marksNeeds review
Which of the following languages are undecidable? Note that
indicates encoding of the Turing machine
.
on input
reaches state
in exactly 100 steps
is not recursive
contains at least 21 members
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 32
Open questionCSMCQ2 marksNeeds review
Consider the following languages.
. Which one of the following is TRUE?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 51
Open questionCSNAT2 marksNeeds review
Consider the following language.
The minimum number of states in a DFA that accepts
is ______.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 7
Open questionCSMCQ1 markNeeds review
If
is a regular language over
, which one of the following languages is NOT regular?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 15
Open questionCSMCQ1 markNeeds review
For
, let us consider the regular language
. Which one of the following can be a pumping length (the constant guaranteed by the pumping lemma) for
?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