2023 question paper
FORMAL LANGUAGE & AUTOMATA THEORY
28 questions
Q1a. A language accepted by deterministic pushdown automata is closed under which of the following? (i) Complement (ii) Union (iii) Both (i) and (ii) (iv) None of the above20232m
Module 2: Context-Free Languages (CFL) and PDA
View this question on its own page →A language accepted by deterministic pushdown automata is closed under which of the following?
(i) Complement
(ii) Union
(iii) Both (i) and (ii)
(iv) None of the aboveQ1b. Let N be an NFA with n states and let M be the minimized DFA with m states recognizing the same language. Which of the following is necessarily true? (i) m \le 2^n (ii) n \le m (iii) M has one accept state (iv) m = 2^n20232m
Module 1: Introduction & Regular Languages
View this question on its own page →Let be an NFA with states and let be the minimized DFA with states recognizing the same language. Which of the following is necessarily true?
(i)
(ii)
(iii) has one accept state
(iv)Q1c. A minimum state deterministic FA accepting the language: L = \{ w \mid w \in \{0,1\}^* \} where the number of 0's and 1's in w are divisible by 3 and 5 respectively, has: (i) 15 states (ii) 11 states (iii) 10 states (iv) 9 states20232m
Module 1: Introduction & Regular Languages
View this question on its own page →A minimum state deterministic FA accepting the language:
where the number of 0's and 1's in are divisible by 3 and 5 respectively, has:
(i) 15 states
(ii) 11 states
(iii) 10 states
(iv) 9 statesQ1d. The language \{ a^n b^n c^{n+m} \mid m, n \ge 1 \} is: (i) regular (ii) context-free but not regular (iii) context-sensitive but not context-free (iv) type 0 but not context-sensitive20232m
Module 3: Context-Sensitive Languages
View this question on its own page →The language is:
(i) regular
(ii) context-free but not regular
(iii) context-sensitive but not context-free
(iv) type 0 but not context-sensitiveQ1e. The string 1101 does not belong to the set represented by: (i) 1^* 0^* (0+1) (ii) 1(0+1)^*101 (iii) (1(0)^*(0+1)^*(0+1))^* (iv) \{00 + (11)^*0\}^*20232m
Module 1: Introduction & Regular Languages
View this question on its own page →The string does not belong to the set represented by:
(i)
(ii)
(iii)
(iv)Q1f. A given grammar is called ambiguous if: (i) two or more productions have the same non-terminal on LHS (ii) a derivation tree has more than one associated sentence (iii) there exists a sentence with more than one derivation tree (iv) brackets are not present in the grammar20232m
Module 2: Context-Free Languages (CFL) and PDA
View this question on its own page →A given grammar is called ambiguous if:
(i) two or more productions have the same non-terminal on LHS
(ii) a derivation tree has more than one associated sentence
(iii) there exists a sentence with more than one derivation tree
(iv) brackets are not present in the grammarQ1g. Which one of the following statements is true? (i) The intersection of two CFLs is context-free (ii) Every CFL can be accepted by a DPDA (iii) The union of two CFLs is context-free (iv) The complement of a CFL is context-free20232m
Module 2: Context-Free Languages (CFL) and PDA
View this question on its own page →Which one of the following statements is true?
(i) The intersection of two CFLs is context-free
(ii) Every CFL can be accepted by a DPDA
(iii) The union of two CFLs is context-free
(iv) The complement of a CFL is context-freeQ1h. From the options, the pair having different expressive powers is: (i) DPDA and NPDA (ii) DFA and NFA (iii) single-tape TM and multi-tape TM (iv) deterministic single-tape TM and nondeterministic single-tape TM20232m
Module 4: Turing Machines (TM)
View this question on its own page →From the options, the pair having different expressive powers is:
(i) DPDA and NPDA
(ii) DFA and NFA
(iii) single-tape TM and multi-tape TM
(iv) deterministic single-tape TM and nondeterministic single-tape TMQ1i. Recursive languages are: (i) a proper superset of CFLs (ii) always recognizable (iii) also called type-0 languages (iv) recognizable by Turing machines20232m
Module 4: Turing Machines (TM)
View this question on its own page →Recursive languages are:
(i) a proper superset of CFLs
(ii) always recognizable
(iii) also called type-0 languages
(iv) recognizable by Turing machinesQ1j. If P and Q are regular expressions (P is not null), then R = Q + RP has the unique solution: (i) R = QP (ii) R = PQ^* (iii) R = QP^* (iv) R = QP^*20232m
Module 1: Introduction & Regular Languages
View this question on its own page →If and are regular expressions ( is not null), then has the unique solution:
(i)
(ii)
(iii)
(iv)Q2a. Discuss the Chomsky hierarchy of grammars with suitable examples.20237m
Module 1: Introduction & Regular Languages
View this question on its own page →Discuss the Chomsky hierarchy of grammars with suitable examples.
Q2b. State the pumping lemma for context-free languages.20237m
Module 2: Context-Free Languages (CFL) and PDA
View this question on its own page →State the pumping lemma for context-free languages.
Q3a. Design a PDA (empty stack and final state both) for L = \{ WW^r \mid W \in \{a,b\}^* \}.20237m
Module 2: Context-Free Languages (CFL) and PDA
View this question on its own page →Design a PDA (empty stack and final state both) for .
Q3b. Eliminate \varepsilon, unit, and useless productions from the grammar: A → bA | Bba | aa B → aba | b | D C → CA | AC | B D → a | \varepsilon20237m
Module 2: Context-Free Languages (CFL) and PDA
View this question on its own page →Eliminate , unit, and useless productions from the grammar:
A → bA | Bba | aa
B → aba | b | D
C → CA | AC | B
D → a |Q4a. Define Chomsky Normal Form. Convert the CFG: S → aSb | ab | Aa A → aab to CNF.20237m
Module 2: Context-Free Languages (CFL) and PDA
View this question on its own page →Define Chomsky Normal Form. Convert the CFG:
S → aSb | ab | Aa
A → aabto CNF.
Q4b. Obtain the regular expression for the given DFA. 20237m
Module 1: Introduction & Regular Languages
View this question on its own page →Obtain the regular expression for the given DFA.

Q5a. Prove that if L_1 and L_2 are regular, then L_1 \cup L_2 is regular.20237m
Module 1: Introduction & Regular Languages
View this question on its own page →Prove that if and are regular, then is regular.
Q5b. Design a Turing machine that recognizes strings containing equal number of 0’s and 1’s.20237m
Module 4: Turing Machines (TM)
View this question on its own page →Design a Turing machine that recognizes strings containing equal number of ’s and ’s.
Q6a. Given the \varepsilon-NFA, compute \varepsilon-closures and convert to DFA. | State | \varepsilon-transition | a-transition | b-transition | |-------|--------------------------|--------------|--------------| | → | {r} | {q} | {p,r} | | q | ∅ | {p} | ∅ | | r | {p,q} | {r} | {p} |20237m
Module 1: Introduction & Regular Languages
View this question on its own page →Given the -NFA, compute -closures and convert to DFA.
State -transition a-transition b-transition → {r} {q} {p,r} q ∅ {p} ∅ r {p,q} {r} {p} Q6b. Construct NFA for the regular expression: (0+1)^*00(0+1)^*20237m
Module 1: Introduction & Regular Languages
View this question on its own page →Construct NFA for the regular expression:
Q7a. Construct NPDA for the grammar: S \to \alpha ABB \mid \alpha AA \\ A \to \alpha BB \mid \alpha \\ B \to bBB \mid A20237m
Module 2: Context-Free Languages (CFL) and PDA
View this question on its own page →Construct NPDA for the grammar:
Q7b. Prove the identity: (1+00^*1) + (1+00^*1)(0+10^*1)^*(0+10^*1) = 0^*1(0+10^*1)^*20237m
Q8a. Construct a Moore machine equivalent to the given Mealy machine.20237m
Module 1: Introduction & Regular Languages
View this question on its own page →Construct a Moore machine equivalent to the given Mealy machine.
Q8b. Given the grammar: S \to aB \mid ba \\ B \to b \mid bs \mid aBB For the string aaabbabbba find: 1. Leftmost derivation 2. Rightmost derivation 3. Parse tree20237m
Module 2: Context-Free Languages (CFL) and PDA
View this question on its own page →Given the grammar:
For the string find:
- Leftmost derivation
- Rightmost derivation
- Parse tree
Q9a. Write short notes on: Post Correspondence Problem.20237m
Module 5: Undecidability
View this question on its own page →Write short notes on: Post Correspondence Problem.
Q9b. Write short notes on: Multi-tape Turing Machine.20237m
Module 4: Turing Machines (TM)
View this question on its own page →Write short notes on: Multi-tape Turing Machine.
Q9c. Write short notes on: NP-hard and NP-complete problems.20237m
Module 5: Undecidability
View this question on its own page →Write short notes on: NP-hard and NP-complete problems.
Q9d. Write short notes on: Pumping lemma for CFL.20237m
Module 2: Context-Free Languages (CFL) and PDA
View this question on its own page →Write short notes on: Pumping lemma for CFL.