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
Let
be recognized by a DFA
. A new DFA
is constructed from
by interchanging the accepting and non-accepting states.
A student claims that
always recognizes
.
Which of the following conditions is essential for the claim to be valid?
A student claims that
Which of the following conditions is essential for the claim to be valid?
Solution
Consider the language

A student proposes to prove that
is non-regular using the Pumping Lemma for regular languages.
Which of the following best identifies the flaw in this approach?
A student proposes to prove that
Which of the following best identifies the flaw in this approach?
Solution
Consider the context-free grammar
.
Which of the following best describes
?
Which of the following best describes
Solution
A PDA
recognizes a language
by final state. A new PDA
is obtained by declaring every non- final state of
to be final and every final state to be non-final.
A student claims that
.
Which of the following best explains why the claim is incorrect in general?
A student claims that
Which of the following best explains why the claim is incorrect in general?
Solution
A Turing Machine
has the following high-level behavior on input
:
1. Scan right and mark the leftmost unmarked symbol.
2. Move to the right end of the input.
3. Scan left to locate the rightmost unmarked symbol.
4. Reject if the two selected symbols are different.
5. Mark the rightmost symbol and return to the left end.
6. Repeat until no unmarked symbols remain.
Which language is recognized by
?
1. Scan right and mark the leftmost unmarked symbol.
2. Move to the right end of the input.
3. Scan left to locate the rightmost unmarked symbol.
4. Reject if the two selected symbols are different.
5. Mark the rightmost symbol and return to the left end.
6. Repeat until no unmarked symbols remain.
Which language is recognized by
Solution
Inscript
Consider the language

A DFA is constructed by independently tracking:
- the length of the input modulo
, and
- the parity of the number of 1s.
After removing unreachable states, how many states are present in the DFA?
Consider the language
A DFA is constructed by independently tracking:
- the length of the input modulo
- the parity of the number of 1s.
After removing unreachable states, how many states are present in the DFA?
Solution
Inscript
Consider the regular expression
.
Let
denote the number of distinct strings of length exactly
generated by
. What is the value of
?
Consider the regular expression
Let
Solution
Inscript
Consider the context-free grammar





.
A variable is called useless if it does not participate in the derivation of any terminal string from the start variable
.
How many useless variables are present in the grammar?
Consider the context-free grammar
A variable is called useless if it does not participate in the derivation of any terminal string from the start variable
How many useless variables are present in the grammar?
Solution
Inscript
A PDA begins with stack symbol
.
While reading an input, it performs the following stack operations in order:
1. Replace
by 
2. Replace
by 
3. Replace
by 
4. Replace
by 
5. Replace
by 
6. Replace
by 
Assume the leftmost symbol is the top of the stack.
What is the height of the stack after all six operations, counting
?
A PDA begins with stack symbol
While reading an input, it performs the following stack operations in order:
1. Replace
2. Replace
3. Replace
4. Replace
5. Replace
6. Replace
Assume the leftmost symbol is the top of the stack.
What is the height of the stack after all six operations, counting
Solution
Inscript
A two-tape Turing Machine performs
computational steps.
A single-tape simulation represents the contents of both tapes on one tape. To simulate the
-th
step of the two-tape machine, the single-tape machine performs exactly

transitions.
If the two-tape machine performs exactly
steps, how many transitions are performed by the single-tape simulation?
A two-tape Turing Machine performs
A single-tape simulation represents the contents of both tapes on one tape. To simulate the
step of the two-tape machine, the single-tape machine performs exactly
transitions.
If the two-tape machine performs exactly
Solution
Let
and
be arbitrary regular languages over the same alphabet
. Define
.
Which of the following statements are necessarily TRUE?
Which of the following statements are necessarily TRUE?
Solution
Let
. Suppose there exist infinitely many strings

such that for every
, there exists a string
satisfying exactly one of
and
belongs to
.
Which of the following conclusions are valid?
such that for every
Which of the following conclusions are valid?
Solution
Let
be an arbitrary context-free language and let
be an arbitrary regular language over the same alphabet
.
Which of the following languages are necessarily context-free?
Which of the following languages are necessarily context-free?
Solution
Let

and

Which of the following statements are TRUE?
and
Which of the following statements are TRUE?
Solution
Consider the language
.
A student argues:
"L is context-free because the condition
can be checked by one PDA and the condition
can be checked by another PDA. Therefore, a PDA can check both conditions."
Which of the following statements correctly analyze the argument?
A student argues:
"L is context-free because the condition
Which of the following statements correctly analyze the argument?
Solution
For a Turing Machine
, define

Also define

Which of the following statements are TRUE?
Also define
Which of the following statements are TRUE?
Solution
Shape
Thickness [ / ]
3
All colors