MauryaHub PYQ Practice

Theory of Computation · End Term · Jan 2026 · FN

Theory of Computation · End Term · Jan 2026 FN

← 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 / 20 published solutions

Question 2 MSQ · 3.0 marks

Consider an
Source diagram or notation
-NFA
Source diagram or notation
with states
Source diagram or notation
, start state
Source diagram or notation
, and accepting state
Source diagram or notation
. The transitions are: •
Source diagram or notation
,
Source diagram or notation
•
Source diagram or notation
,
Source diagram or notation
•
Source diagram or notation
,
Source diagram or notation
•
Source diagram or notation
has no outgoing transitions Let
Source diagram or notation
be the DFA obtained using subset construction. Which of the following statements is/are correct?
6406536959223.
The start state of
Source diagram or notation
is
Source diagram or notation
6406536959224.
The start state of
Source diagram or notation
is
Source diagram or notation
6406536959225.
The DFA accepts all binary strings that end with either
Source diagram or notation
or
Source diagram or notation
6406536959226.
The DFA accepts all strings containing both
Source diagram or notation
and
Source diagram or notation
6406536959227.
Every accepting state of
Source diagram or notation
must contain
Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q2

Question 3 MCQ · 3.0 marks

Consider the DFA below. start state =
Source diagram or notation
, and accepting state =
Source diagram or notation
.
Source diagram or notation
What language does the given DFA accept?
6406536959228.
All strings of length
Source diagram or notation
6406536959229.
All strings with equal number of
Source diagram or notation
's and
Source diagram or notation
's
6406536959230.
All strings consisting only of
Source diagram or notation
's or only of
Source diagram or notation
's
6406536959231.
All strings that do not contain the substring
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

Consider a PDA with the following behavior: • For every
Source diagram or notation
, it pushes one symbol
Source diagram or notation
onto the stack. • For every
Source diagram or notation
, it pops one
Source diagram or notation
from the stack. • After the stack becomes
Source diagram or notation
, it can read any number of
Source diagram or notation
'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?
6406536959245.Source diagram or notation
6406536959246.Source diagram or notation
6406536959247.Source diagram or notation
6406536959248.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q4

Question 5 MCQ · 3.0 marks

Consider a 2-tape Turing Machine with the transition:
Source diagram or notation
Initially: • Head
Source diagram or notation
is at position 3 • Head
Source diagram or notation
is at position 2 After one transition, where will the heads be?
6406536959259.Source diagram or notation
6406536959260.Source diagram or notation
6406536959261.Source diagram or notation
6406536959262.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

Consider the PCP instance with tiles:
Source diagram or notation
Apply the sequence
Source diagram or notation
. What are the unmatched suffixes?
6406536959273.
top:
Source diagram or notation
, bottom:
Source diagram or notation
6406536959274.
top:
Source diagram or notation
, bottom:
Source diagram or notation
6406536959275.
top:
Source diagram or notation
, bottom:
Source diagram or notation
6406536959276.
No mismatch

A published solution is not available for this question yet.

Report a correction for Q6

Question 7 MSQ · 2.0 marks

Consider the grammar
Source diagram or notation
. Which of the following statements is/are correct?
6406536959232.
The language generated by
Source diagram or notation
is
Source diagram or notation
6406536959233.
Every string generated by
Source diagram or notation
ends with the substring
Source diagram or notation
6406536959234.
The grammar generates infinitely many strings
6406536959235.
The grammar generates all strings with equal number of
Source diagram or notation
's and
Source diagram or notation
's
6406536959236.
The empty string
Source diagram or notation
is in the language

A published solution is not available for this question yet.

Report a correction for Q7

Question 8 MSQ · 2.0 marks

Let:
Source diagram or notation
Which of the following languages is/are necessarily context-free?
6406536959241.Source diagram or notation
6406536959242.Source diagram or notation
6406536959243.Source diagram or notation
6406536959244.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q8

Question 9 MSQ · 2.0 marks

Consider the PDA transition:
Source diagram or notation
Which of the following statements is/are correct?
6406536959249.
The input symbol
Source diagram or notation
is consumed
6406536959250.
The stack top
Source diagram or notation
is replaced by
Source diagram or notation
6406536959251.
The symbol
Source diagram or notation
becomes the new top of the stack
6406536959252.
The stack size decreases by 1
6406536959253.
The PDA remains in state
Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q9

Question 10 MSQ · 2.0 marks

Which of the following statements is/are correct?
6406536959264.
Every recursive language is recursively enumerable
6406536959265.
There exists a recursively enumerable language that is not recursive
6406536959266.
Every recursively enumerable language is recursive
6406536959267.
A Turing machine recognizing an RE language may loop on some inputs
6406536959268.
A decider may loop on some inputs

A published solution is not available for this question yet.

Report a correction for Q10

Question 11 MSQ · 2.0 marks

Which of the following statements about mapping reductions are correct?
6406536959281.
If
Source diagram or notation
and
Source diagram or notation
is decidable, then
Source diagram or notation
is decidable
6406536959282.
If
Source diagram or notation
and
Source diagram or notation
is undecidable, then
Source diagram or notation
is undecidable
6406536959283.
If
Source diagram or notation
, then
Source diagram or notation
is harder than
Source diagram or notation
6406536959284.
If
Source diagram or notation
and
Source diagram or notation
, then
Source diagram or notation
6406536959285.
If
Source diagram or notation
, then
Source diagram or notation
and
Source diagram or notation
are equivalent

A published solution is not available for this question yet.

Report a correction for Q11

Question 12 NAT · 3.0 marks

Consider a DFA
Source diagram or notation
. Let
Source diagram or notation
and
Source diagram or notation
denote the sets of strings that take
Source diagram or notation
from state
Source diagram or notation
and
Source diagram or notation
to an accepting state, respectively.
Source diagram or notation
Source diagram or notation
How many strings of length exactly
Source diagram or notation
belong to
Source diagram or notation
?

A published solution is not available for this question yet.

Report a correction for Q12

Question 13 NAT · 3.0 marks

Let
Source diagram or notation
What is the index of the Nerode equivalence relation
Source diagram or notation
?

A published solution is not available for this question yet.

Report a correction for Q13

Question 14 NAT · 3.0 marks

Consider the grammar:
Source diagram or notation
How many distinct parse trees exist for the string:
Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q14

Question 15 NAT · 3.0 marks

Let a string
Source diagram or notation
have length
Source diagram or notation
. In the CYK algorithm, how many entries
Source diagram or notation
are there such that
Source diagram or notation
?

A published solution is not available for this question yet.

Report a correction for Q15

Question 16 NAT · 3.0 marks

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 published solution is not available for this question yet.

Report a correction for Q16

Question 17 NAT · 2.0 marks

Consider the language
Source diagram or notation
What is the minimum number of states required in a DFA that recognizes
Source diagram or notation
?

A published solution is not available for this question yet.

Report a correction for Q17

Question 18 MCQ · 2.0 marks

Which of the following languages is context-sensitive but **not** context-free?
6406536959254.Source diagram or notation
6406536959255.Source diagram or notation
6406536959256.Source diagram or notation
6406536959257.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q18

Question 19 MCQ · 2.0 marks

An enumerator prints strings of a language
Source diagram or notation
in the following order:
Source diagram or notation
A machine
Source diagram or notation
recognizes
Source diagram or notation
by: • Simulating the enumerator step-by-step • Accepting when the input string
Source diagram or notation
is printed If
Source diagram or notation
and the enumerator prints one string every 3 steps, when will
Source diagram or notation
accept?
6406536959269.
5
6406536959270.
10
6406536959271.
15
6406536959272.
May never accept

A published solution is not available for this question yet.

Report a correction for Q19

Question 20 MCQ · 2.0 marks

Let
Source diagram or notation
and
Source diagram or notation
be decision problems such that
Source diagram or notation
and
Source diagram or notation
is undecidable.Which of the following must be true?
6406536959277.Source diagram or notation
is decidable
6406536959278.Source diagram or notation
is undecidable
6406536959279.Source diagram or notation
is decidable
6406536959280.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q20

Question 21 MCQ · 2.0 marks

If
Source diagram or notation
and
Source diagram or notation
is known to be recursively enumerable but not decidable, what can be concluded about
Source diagram or notation
?
6406536959286.Source diagram or notation
must be undecidable
6406536959287.Source diagram or notation
must be recursively enumerable
6406536959288.Source diagram or notation
must not be recursively enumerable
6406536959289.
No definite conclusion can be drawn

A published solution is not available for this question yet.

Report a correction for Q21