2025 question paper
FORMAL LANGUAGE & AUTOMATA THEORY
28 questions
Q1a. A language is said to be recursively enumerable if it is accepted by a (i) DFA (ii) Turing Machine (iii) PDA (iv) Linear Bounded Automaton20252m
Module 4: Turing Machines (TM)
View this question on its own page →A language is said to be recursively enumerable if it is accepted by a
(i) DFA
(ii) Turing Machine
(iii) PDA
(iv) Linear Bounded AutomatonQ1b. Regular languages belong to which type in the Chomsky hierarchy? (i) Type-0 (ii) Type-2 (iii) Type-1 (iv) Type-320252m
Module 1: Introduction & Regular Languages
View this question on its own page →Regular languages belong to which type in the Chomsky hierarchy?
(i) Type-0
(ii) Type-2
(iii) Type-1
(iv) Type-3Q1c. Which of the following languages is NOT regular? (i) {a^n b^n | n \ge 0} (ii) {a, b}* (iii) Finite languages (iv) Languages accepted by DFA20252m
Module 1: Introduction & Regular Languages
View this question on its own page →Which of the following languages is NOT regular?
(i) {}
(ii) {}*
(iii) Finite languages
(iv) Languages accepted by DFAQ1d. Context-free languages are NOT closed under (i) Union (ii) Concatenation (iii) Intersection (iv) Kleene star20252m
Module 2: Context-Free Languages (CFL) and PDA
View this question on its own page →Context-free languages are NOT closed under
(i) Union
(ii) Concatenation
(iii) Intersection
(iv) Kleene starQ1e. Which production is not allowed in a CSG? (i) AB \rightarrow BA (ii) A \rightarrow \epsilon (iii) A \rightarrow a (iv) a B \rightarrow a b20252m
Module 3: Context-Sensitive Languages
View this question on its own page →Which production is not allowed in a CSG?
(i)
(ii)
(iii)
(iv)Q1f. A Turing Machine that prints strings of a language is called (i) Acceptor (ii) Transducer (iii) Generator (iv) Enumerator20252m
Module 4: Turing Machines (TM)
View this question on its own page →A Turing Machine that prints strings of a language is called
(i) Acceptor
(ii) Transducer
(iii) Generator
(iv) EnumeratorQ1g. If \Sigma = \{a, b\}, then \Sigma^* contains (i) Only finite strings (ii) Only infinite strings (iii) All finite strings over \Sigma including \epsilon (iv) Only strings of equal length20252m
Module 1: Introduction & Regular Languages
View this question on its own page →If , then contains
(i) Only finite strings
(ii) Only infinite strings
(iii) All finite strings over including
(iv) Only strings of equal lengthQ1h. The \epsilon-closure of a state is (i) The set of states reachable using \epsilon only (ii) The set of unreachable states (iii) The set of final states (iv) The dead states20252m
Module 1: Introduction & Regular Languages
View this question on its own page →The -closure of a state is
(i) The set of states reachable using only
(ii) The set of unreachable states
(iii) The set of final states
(iv) The dead statesQ1i. Which of the following CFLs is deterministic? (i) {a^n b^n} (ii) Arithmetic expressions (iii) Palindromes (iv) {ww^R}20252m
Module 2: Context-Free Languages (CFL) and PDA
View this question on its own page →Which of the following CFLs is deterministic?
(i) {}
(ii) Arithmetic expressions
(iii) Palindromes
(iv) {}Q1j. Multi-tape TM is (i) More powerful than single-tape TM (ii) Less powerful (iii) Equivalent in power (iv) Not equivalent20252m
Module 4: Turing Machines (TM)
View this question on its own page →Multi-tape TM is
(i) More powerful than single-tape TM
(ii) Less powerful
(iii) Equivalent in power
(iv) Not equivalentQ2a. Given the grammar G = (\{S\}, \{a, b\}, P, S) P: S \rightarrow aSb | ab Derive the string aabb using leftmost derivation, rightmost derivation and also draw the parse tree.20257m
Module 2: Context-Free Languages (CFL) and PDA
View this question on its own page →Given the grammar
Derive the string aabb using leftmost derivation, rightmost derivation and also draw the parse tree.
Q2b. Explain the Chomsky hierarchy of languages with examples.20257m
Module 1: Introduction & Regular Languages
View this question on its own page →Explain the Chomsky hierarchy of languages with examples.
Q3a. Design a context-free grammar (CFG) that generates all palindromes over the alphabet {0, 1}. The grammar should generate both even-length palindromes (e.g., 0110) and odd-length palindromes (e.g., 010).20257m
Module 2: Context-Free Languages (CFL) and PDA
View this question on its own page →Design a context-free grammar (CFG) that generates all palindromes over the alphabet {0, 1}. The grammar should generate both even-length palindromes (e.g., 0110) and odd-length palindromes (e.g., 010).
Q3b. Given the regular expression: (0+1)^*01(0+1) Describe the language generated, and construct an equivalent DFA.20257m
Module 1: Introduction & Regular Languages
View this question on its own page →Given the regular expression:
Describe the language generated, and construct an equivalent DFA.
Q4a. Given a DFA D over the alphabet {a, b}, perform DFA minimization and draw the equivalent minimal DFA accepting the same language. 20257m
Module 1: Introduction & Regular Languages
View this question on its own page →Given a DFA D over the alphabet {a, b}, perform DFA minimization and draw the equivalent minimal DFA accepting the same language.

Q4b. Use the pumping lemma to prove that the language L = \{a^n b^n : n \ge 1\} is not regular.20257m
Module 1: Introduction & Regular Languages
View this question on its own page →Use the pumping lemma to prove that the language is not regular.
Q5a. Show that the following grammar is ambiguous: S \rightarrow SS | aSb | bSa | \epsilon20257m
Module 2: Context-Free Languages (CFL) and PDA
View this question on its own page →Show that the following grammar is ambiguous:
Q5b. Construct an NFA that accepts all strings over the alphabet {0, 1, 2} that begin with one or more 0s, followed by an odd number of 1s, and end with any number of 2s.20257m
Module 1: Introduction & Regular Languages
View this question on its own page →Construct an NFA that accepts all strings over the alphabet {0, 1, 2} that begin with one or more 0s, followed by an odd number of 1s, and end with any number of 2s.
Q6a. Prove that every context-free language is context-sensitive, but the converse is not true. Support your answer with a suitable language example.20257m
Module 3: Context-Sensitive Languages
View this question on its own page →Prove that every context-free language is context-sensitive, but the converse is not true. Support your answer with a suitable language example.
Q6b. Given the following context-sensitive grammar: S \rightarrow aSBC | abc CB \rightarrow BC aB \rightarrow ab bB \rightarrow bb bC \rightarrow bc cC \rightarrow cc Identify the language generated by the grammar. Derive the string aabbcc step by step.20257m
Module 3: Context-Sensitive Languages
View this question on its own page →Given the following context-sensitive grammar:
Identify the language generated by the grammar. Derive the string aabbcc step by step.
Q7a. Define a Linear Bounded Automaton (LBA). Design an LBA that accepts the language L = \{a^n b^n c^n | n \ge 1\}. Explain how tape length is restricted.20257m
Module 3: Context-Sensitive Languages
View this question on its own page →Define a Linear Bounded Automaton (LBA). Design an LBA that accepts the language . Explain how tape length is restricted.
Q7b. Design a Turing Machine that enumerates all strings over {a, b} in lexicographic order. Explain the working of the machine.20257m
Module 4: Turing Machines (TM)
View this question on its own page →Design a Turing Machine that enumerates all strings over {a, b} in lexicographic order. Explain the working of the machine.
Q8a. Design a single-tape Turing Machine that multiplies two unary numbers, where the input is of the form 1^m 0 1^n and the output is 1^{m \times n}. Clearly define the input alphabet, tape alphabet, and halting condition. Simulate the working of the Turing Machine on the input string 1101.20257m
Module 4: Turing Machines (TM)
View this question on its own page →Design a single-tape Turing Machine that multiplies two unary numbers, where the input is of the form and the output is . Clearly define the input alphabet, tape alphabet, and halting condition. Simulate the working of the Turing Machine on the input string .
Q8b. Given the regular expression r = (a+b)^* (i) Construct a context-free grammar that generates the language described by r. (ii) Explain why the grammar correctly represents the given regular expression.20257m
Module 2: Context-Free Languages (CFL) and PDA
View this question on its own page →Given the regular expression
(i) Construct a context-free grammar that generates the language described by .
(ii) Explain why the grammar correctly represents the given regular expression.Q9a. Write a short note on Rice's Theorem with an application.20254.66m
Module 5: Undecidability
View this question on its own page →Write a short note on Rice's Theorem with an application.
Q9b. Write a short note on Deterministic vs Nondeterministic PDA.20254.66m
Module 2: Context-Free Languages (CFL) and PDA
View this question on its own page →Write a short note on Deterministic vs Nondeterministic PDA.
Q9c. Write a short note on Universal Turing Machine.20254.66m
Module 5: Undecidability
View this question on its own page →Write a short note on Universal Turing Machine.
Q9d. Write a short note on Greibach Normal Form (GNF).20254.66m
Module 2: Context-Free Languages (CFL) and PDA
View this question on its own page →Write a short note on Greibach Normal Form (GNF).