Question 1 | MCQ
THIS IS QUESTION PAPER FOR THE SUBJECT "DEGREE LEVEL : THEORY OF COMPUTATION
(COMPUTER BASED EXAM)"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
(COMPUTER BASED EXAM)"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
Solution
Consider an
-NFA
with states
, start state
, and accepting state
. The transitions are:
-
, 
-
, 
-
, 
-
has no outgoing transitions
Let
be the DFA obtained using subset construction.
Which of the following statements is/are correct?
-
-
-
-
Let
Which of the following statements is/are correct?
Solution
Consider the DFA below.
start state =
, and accepting state =
.

What language does the given DFA accept?
start state =
What language does the given DFA accept?
Solution
Consider a PDA with the following behavior:
- For every
, it pushes one symbol
onto the stack.
- For every
, it pops one
from the stack.
- After the stack becomes
, it can read any number of
's without changing the stack.
- The PDA accepts by final state after all input is consumed.
Which of the following languages is recognized by this PDA?
- For every
- For every
- After the stack becomes
- The PDA accepts by final state after all input is consumed.
Which of the following languages is recognized by this PDA?
Solution
Consider a 2-tape Turing Machine with the transition:

Initially:
- Head
is at position 3
- Head
is at position 2
After one transition, where will the heads be?
Initially:
- Head
- Head
After one transition, where will the heads be?
Solution
Consider the PCP instance with tiles:

Apply the sequence
. What are the unmatched suffixes?
Apply the sequence
Solution
Consider the grammar
.
Which of the following statements is/are correct?
Which of the following statements is/are correct?
Solution
Let:

Which of the following languages is/are necessarily context-free?
Which of the following languages is/are necessarily context-free?
Solution
Consider the PDA transition:

Which of the following statements is/are correct?
Which of the following statements is/are correct?
Solution
Which of the following statements is/are correct?
Solution
Which of the following statements about mapping reductions are correct?
Solution
Inscript
Consider a DFA
.
Let
and
denote the sets of strings that take
from state
and
to an accepting state, respectively.


How many strings of length exactly
belong to
?
Consider a DFA
Let
How many strings of length exactly
Solution
Inscript
Let

What is the index of the Nerode equivalence relation
?
Let
What is the index of the Nerode equivalence relation
Solution
Inscript
Consider the grammar:

How many distinct parse trees exist for the string:

Consider the grammar:
How many distinct parse trees exist for the string:
Solution
Inscript
Let a string
have length
.
In the CYK algorithm, how many entries
are there such that
?
Let a string
In the CYK algorithm, how many entries
Solution
Inscript
A non-deterministic Turing Machine has a branching factor 3.
How many total configurations are explored by BFS up to level 4 (including level 0)?
A non-deterministic Turing Machine has a branching factor 3.
How many total configurations are explored by BFS up to level 4 (including level 0)?
Solution
Inscript
Consider the language

What is the minimum number of states required in a DFA that recognizes
?
Consider the language
What is the minimum number of states required in a DFA that recognizes
Solution
Which of the following languages is context-sensitive but not context-free?
Solution
An enumerator prints strings of a language
in the following order:

A machine
recognizes
by:
- Simulating the enumerator step-by-step
- Accepting when the input string
is printed
If
and the enumerator prints one string every 3 steps, when will
accept?
A machine
- Simulating the enumerator step-by-step
- Accepting when the input string
If
Solution
Let
and
be decision problems such that
and
is undecidable.Which of the following must be true?
Solution
If
and
is known to be recursively enumerable but not decidable, what can be concluded about
?
Solution
Shape
Thickness [ / ]
3
All colors