B.Tech. Examination, May 2026
Semester: B.Tech. IV Sem. | Paper Code: TU-831(A)
Subject: Theory of Automata and Formal Languages | Subject Code: BT-407 | Branch: IT/CS
Time: 3 Hours | Maximum Marks: 70
Note: Attempt questions from all Sections as per instructions.
Section A – Very Short Answer Questions
Attempt all questions. 5 × 2 = 10 Marks
- Explain string and alphabet.
- Explain the definition of CNF and GNF.
- Explain the definition of ambiguity in CFG.
- What is Turing machine?
- Explain three steps of pumping lemma for regular expression.
Section B – Short Answer Questions
Attempt any two questions. 2 × 9 = 18 Marks
- Construct finite automata equivalent to the following regular expression:
10 + (0 + 11)0*1 - Write regular expression for the following language over the alphabet {0, 1} – "The set of all strings not containing 101 as a substring."
- What is PDA? Explain with example.
Section C – Descriptive Answer Questions
Attempt any three questions. 3 × 14 = 42 Marks
- Explain Church's thesis. Design a Turing machine to compute the function f(n) = n2.
- Consider the grammar ({S, A, B}, {a, b}, P, S) that has the productions:
S → bA / aB
A → bAA / aS / a
B → aBB / bS / b
Find an equivalent grammar in CNF. - Find a deterministic acceptor (DFA) equivalent to M = ({q0, q1, q2}, {a, b}, δ, q0, {q2}), where δ is given in the state table below:
State / Σ a b → q0 q0, q1 q2 q1 q0 q1 q2 (Final) — q0, q1 - Explain the following:
- Context free grammar
- NP hard problem
- What is Regular grammar? Show that the set L = {a2n | n ≥ 1} is not regular.

