MauryaHub PYQ Practice

Theory of Computation · End Term · May 2026 · AN

Theory of Computation · End Term · May 2026 AN

← Course papers · Start practice / exam

Questions and published explanations below are available without starting a test. Some questions may not have a published solution yet.

0 / 18 published solutions

Question 2 MCQ · 3.0 marks

Consider the DFA below over
Source diagram or notation
.
Source diagram or notation
Which of the following statements correctly describes the language accepted by the DFA?
6406537405849.
All strings containing exactly three
Source diagram or notation
's
6406537405850.
All strings containing at least three
Source diagram or notation
's
6406537405851.
All strings ending with
Source diagram or notation
6406537405852.
All strings containing at least three consecutive
Source diagram or notation
's

A published solution is not available for this question yet.

Report a correction for Q2

Question 3 MCQ · 3.0 marks

Consider the regular expression
Source diagram or notation
Which of the following statements is **correct**?
6406537405858.Source diagram or notation
consists only of strings that begin with
Source diagram or notation
6406537405859.Source diagram or notation
consists only of strings containing an even number of
Source diagram or notation
's
6406537405860.Source diagram or notation
(the language of all binary strings)
6406537405861.Source diagram or notation
excludes the string
Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q3

Question 4 MCQ · 3.0 marks

Let
Source diagram or notation
and consider the language:
Source diagram or notation
What is the index of the Myhill–Nerode equivalence relation
Source diagram or notation
?
6406537405867.
3
6406537405868.
4
6406537405869.
5
6406537405870.
6

A published solution is not available for this question yet.

Report a correction for Q4

Question 5 MCQ · 3.0 marks

Consider the following grammar:
Source diagram or notation
Source diagram or notation
Source diagram or notation
Source diagram or notation
Source diagram or notation
Using the CYK algorithm for the string
Source diagram or notation
, which non-terminals occur in the table entry for the entire string?
6406537405879.Source diagram or notation
6406537405880.Source diagram or notation
6406537405881.Source diagram or notation
6406537405882.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q5

Question 6 MCQ · 3.0 marks

Which of the following languages is context-free?
6406537405892.Source diagram or notation
6406537405893.Source diagram or notation
6406537405894.Source diagram or notation
6406537405895.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q6

Question 7 MCQ · 3.0 marks

Suppose
Source diagram or notation
Which of the following statements must hold?
6406537405914.Source diagram or notation
6406537405915.Source diagram or notation
6406537405916.Source diagram or notation
and
Source diagram or notation
must be equivalent under mapping reduction
6406537405917.
If
Source diagram or notation
is decidable, then
Source diagram or notation
must be undecidable

A published solution is not available for this question yet.

Report a correction for Q7

Question 8 MSQ · 3.0 marks

Consider the following DFA.
Source diagram or notation
Which of the following strings are accepted?
6406537405853.
0
6406537405854.
01
6406537405855.
110
6406537405856.
1011
6406537405857.
1110

A published solution is not available for this question yet.

Report a correction for Q8

Question 9 MSQ · 3.0 marks

Consider the grammar
Source diagram or notation
Which of the following strings can be generated by the grammar?
6406537405871.Source diagram or notation
6406537405872.Source diagram or notation
6406537405873.Source diagram or notation
6406537405874.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q9

Question 10 MSQ · 3.0 marks

Consider the grammar
Source diagram or notation
Which of the following statements are correct?
6406537405875.
The grammar is in Chomsky Normal Form
6406537405876.
The grammar generates only strings of the form
Source diagram or notation
6406537405877.
The grammar generates
Source diagram or notation
6406537405878.
The grammar generates the empty string

A published solution is not available for this question yet.

Report a correction for Q10

Question 11 MSQ · 3.0 marks

Consider the language
Source diagram or notation
A PDA is designed to recognize
Source diagram or notation
by using the symbol
Source diagram or notation
as a unique middle marker. In the standard stack-based PDA construction described above, which of the following operations are performed?
6406537405883.
Push each symbol of
Source diagram or notation
before reading
Source diagram or notation
6406537405884.
Change to a popping state after reading
Source diagram or notation
6406537405885.
Match each symbol after
Source diagram or notation
with the stack top
6406537405886.
Push all symbols after
Source diagram or notation
before comparing them
6406537405887.
Accept when the input is exhausted and the stack is back at its bottom marker

A published solution is not available for this question yet.

Report a correction for Q11

Question 12 MSQ · 3.0 marks

A Pushdown Automaton (PDA) has the following transition:
Source diagram or notation
Which of the following statements are correct?
6406537405888.
The transition consumes an input symbol
6406537405889.
The PDA can move to either
Source diagram or notation
or
Source diagram or notation
6406537405890.
One possible move removes
Source diagram or notation
from the stack
6406537405891.
One possible move replaces
Source diagram or notation
by
Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q12

Question 13 MSQ · 3.0 marks

Let
Source diagram or notation
Which of the following statements are correct?
6406537405909.Source diagram or notation
is a semantic property of the language recognized by
Source diagram or notation
6406537405910.Source diagram or notation
is a non-trivial property
6406537405911.
Rice's Theorem implies that
Source diagram or notation
is undecidable
6406537405912.Source diagram or notation
depends only on the number of states of
Source diagram or notation
6406537405913.Source diagram or notation
is decidable because only one input,
Source diagram or notation
, is checked

A published solution is not available for this question yet.

Report a correction for Q13

Question 14 NAT · 3.0 marks

Consider the following NFA over
Source diagram or notation
:
Source diagram or notation
**Transition Table:**
Source diagram or notation
Using standard subset construction and considering only reachable subsets, how many states does the equivalent DFA have?

A published solution is not available for this question yet.

Report a correction for Q14

Question 15 NAT · 3.0 marks

A nondeterministic Turing Machine has at most
Source diagram or notation
possible transitions from every configuration. Suppose the machine is explored using breadth-first search up to depth
Source diagram or notation
, including the initial configuration. What is the maximum number of configurations explored?

A published solution is not available for this question yet.

Report a correction for Q15

Question 16 MCQ · 2.0 marks

Let
Source diagram or notation
Which of the following statements are Incorrect?
6406537405863.Source diagram or notation
is regular
6406537405864.
A DFA can remember the first symbol using finitely many states
6406537405865.Source diagram or notation
requires an unbounded stack
6406537405866.Source diagram or notation
can be recognized by a regular expression

A published solution is not available for this question yet.

Report a correction for Q16

Question 17 MCQ · 2.0 marks

Consider the language
Source diagram or notation
Which of the following statements correctly classifies
Source diagram or notation
in the Chomsky hierarchy?
6406537405896.Source diagram or notation
is regular
6406537405897.Source diagram or notation
is context-free
6406537405898.Source diagram or notation
is context-sensitive but not context-free
6406537405899.Source diagram or notation
is not recursively enumerable

A published solution is not available for this question yet.

Report a correction for Q17

Question 18 MCQ · 2.0 marks

Consider a deterministic Turing Machine with one tape. Which of the following statements is **Incorrect**?
6406537405901.
The machine can revisit a tape cell
6406537405902.
The machine can overwrite a previously written symbol
6406537405903.
The machine must move right after every transition
6406537405904.
The tape provides unbounded storage

A published solution is not available for this question yet.

Report a correction for Q18

Question 19 MCQ · 2.0 marks

Let
Source diagram or notation
Which of the following statements is **correct** regarding the language
Source diagram or notation
?
6406537405905.Source diagram or notation
is recursive (decidable)
6406537405906.Source diagram or notation
is recursively enumerable but undecidable
6406537405907.Source diagram or notation
is not recursively enumerable
6406537405908.Source diagram or notation
is decidable because a Universal Turing Machine can simulate
Source diagram or notation
on
Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q19