2021 question paper
Formal Language & Automata Theory
27 questions
Q1a. Which of the following statements is/are False? A. For every non-deterministic Turing machine, there exists an equivalent deterministic Turing machine. B. Turing recognizable languages are closed under union and complementation. C. Turing decidable languages are closed under intersection and complementation. D. Turing recognizable languages are closed under union and intersection. (i) A and D only (ii) A and C only (iii) B only (iv) C only20212m
Module 4: Turing machines
View this question on its own page →Which of the following statements is/are False?
A. For every non-deterministic Turing machine, there exists an equivalent deterministic Turing machine.
B. Turing recognizable languages are closed under union and complementation.
C. Turing decidable languages are closed under intersection and complementation.
D. Turing recognizable languages are closed under union and intersection.(i) A and D only
(ii) A and C only
(iii) B only
(iv) C onlyQ1b. Enumerator is a Turing machine with (i) an output printer (ii) 5 input tapes (iii) a stack (iv) None of the above20212m
Module 4: Turing machines
View this question on its own page →Enumerator is a Turing machine with
(i) an output printer
(ii) 5 input tapes
(iii) a stack
(iv) None of the aboveQ1c. The language \{a^mb^nc^{m+n} \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-sensitive20212m
Module 2: Context-free languages and pushdown automata
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-sensitiveQ1d. The maximum number of states of a DFA converted from an NFA with n states is (i) n (ii) n^2 (iii) 2^n (iv) None of the above20212m
Module 1: Introduction, Regular languages and finite automata
View this question on its own page →The maximum number of states of a DFA converted from an NFA with states is
(i)
(ii)
(iii)
(iv) None of the aboveQ1e. If L1 and L2 are context-free languages, L1-L2 is \_\_\_\_ context-free. (i) always (ii) sometimes (iii) never (iv) None of the above20212m
Module 2: Context-free languages and pushdown automata
View this question on its own page →If L1 and L2 are context-free languages, L1-L2 is ____ context-free.
(i) always
(ii) sometimes
(iii) never
(iv) None of the aboveQ1f. Which of the following does not have left recursions? (i) Chomsky normal form (ii) Greibach normal form (iii) Backus-Naur form (iv) All of the above20212m
Module 2: Context-free languages and pushdown automata
View this question on its own page →Which of the following does not have left recursions?
(i) Chomsky normal form
(ii) Greibach normal form
(iii) Backus-Naur form
(iv) All of the aboveQ1g. 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^n20212m
Module 1: Introduction, Regular languages and finite automata
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)Q1h. \_\_\_\_ is the acyclic graphical representation of a grammar. (i) Binary tree (ii) Octtree (iii) Parse tree (iv) None of the above20212m
Module 2: Context-free languages and pushdown automata
View this question on its own page →____ is the acyclic graphical representation of a grammar.
(i) Binary tree
(ii) Octtree
(iii) Parse tree
(iv) None of the aboveQ1i. A minimum state deterministic FA accepting the language L = \{w \mid w \in \{0, 1\}^*\} where 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 states20212m
Module 1: Introduction, Regular languages and finite automata
View this question on its own page →A minimum state deterministic FA accepting the language
where 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 statesQ1j. The construction time for DFA from an equivalent NFA (m number of node) is (i) O(m^2) (ii) O(2^m) (iii) O(m) (iv) O(\log m)20212m
Module 1: Introduction, Regular languages and finite automata
View this question on its own page →The construction time for DFA from an equivalent NFA ( number of node) is
(i)
(ii)
(iii)
(iv)Q2a. Tabulate Chomsky hierarchy of grammar with an example for each.20217m
Module 1: Introduction, Regular languages and finite automata
View this question on its own page →Tabulate Chomsky hierarchy of grammar with an example for each.
Q2b. Design a finite state machine or abstract model for Parity checker.20217m
Module 1: Introduction, Regular languages and finite automata
View this question on its own page →Design a finite state machine or abstract model for Parity checker.
Q3a. Construct an NFA that will accept string of 0's, 1's and 2's beginning with a 0's followed by odd number of 1's and ending with any number of 2's.20217m
Module 1: Introduction, Regular languages and finite automata
View this question on its own page →Construct an NFA that will accept string of 0's, 1's and 2's beginning with a 0's followed by odd number of 1's and ending with any number of 2's.
Q3b. Construct a push-down automata that accepts the following language: L = \{uawb : u \text{ and } w \in \{a, b\}^* \text{ and } |u| = |w|\}20217m
Module 2: Context-free languages and pushdown automata
View this question on its own page →Construct a push-down automata that accepts the following language:
Q4a. Design a Turing machine (TM) to compute n \bmod 2.20217m
Module 4: Turing machines
View this question on its own page →Design a Turing machine (TM) to compute .
Q4b. Design a DFA corresponding to regular expression 1^*(10)^*.20217m
Module 1: Introduction, Regular languages and finite automata
View this question on its own page →Design a DFA corresponding to regular expression .
Q5a. Consider the grammar: S \to AB \mid BC A \to BA \mid a B \to CC \mid b C \to AB \mid a Use the CYK algorithm to determine whether the given string "baaba" is in L(G) or not.202114m
Module 2: Context-free languages and pushdown automata
View this question on its own page →Consider the grammar:
Use the CYK algorithm to determine whether the given string "baaba" is in or not.
Q5b. Suppose L is context free and R is regular, justify your answer with the help of example: (i) Is L-R necessarily context free? (ii) Is R-L necessarily context free?202114m
Module 2: Context-free languages and pushdown automata
View this question on its own page →Suppose is context free and is regular, justify your answer with the help of example:
(i) Is necessarily context free?
(ii) Is necessarily context free?Q6a. Show that the language L = \{a^{n!} : n \ge 0\} is not regular or not context-free language.20217m
Module 1: Introduction, Regular languages and finite automata
View this question on its own page →Show that the language is not regular or not context-free language.
Q6b. Let G be a context-free grammar in Chomsky normal form that contains b variable. Show that if G generates some string using a derivation with at least 2^b steps, then L(G) is infinite.20217m
Module 2: Context-free languages and pushdown automata
View this question on its own page →Let be a context-free grammar in Chomsky normal form that contains variable. Show that if generates some string using a derivation with at least steps, then is infinite.
Q7a. State and prove pumping lemma for regular sets.20217m
Module 1: Introduction, Regular languages and finite automata
View this question on its own page →State and prove pumping lemma for regular sets.
Q7b. Show given grammar over alphabet \{a, b\}, verify whether it is ambiguous or unambiguous: S \to aSa \mid bSb \mid a \mid b \mid \epsilon20217m
Module 2: Context-free languages and pushdown automata
View this question on its own page →Show given grammar over alphabet , verify whether it is ambiguous or unambiguous:
Q8a. Show that the sum function f(x, y) = x + y is primitive recursive.20217m
Module 4: Turing machines
View this question on its own page →Show that the sum function
is primitive recursive.
Q8b. Construct a PDA that accepts the language L = \{a^{2n}bc \mid n \ge 0\} by final state and empty stack.20217m
Module 2: Context-free languages and pushdown automata
View this question on its own page →Construct a PDA that accepts the language by final state and empty stack.
Q9a. Write a short note on: Post-correspondence problem20213.5m
Module 5: Undecidability
View this question on its own page →Write a short note on: Post-correspondence problem
Q9b. Write a short note on: Chomsky normal form20213.5m
Module 2: Context-free languages and pushdown automata
View this question on its own page →Write a short note on: Chomsky normal form
Q9c. Write a short note on: Multistack Turing machine20213.5m
Module 4: Turing machines
View this question on its own page →Write a short note on: Multistack Turing machine