FORMAL LANGUAGE & AUTOMATA THEORY
100406Module 1: Introduction & Regular Languages
Q1a. The minimum number of states required to recognize an octal number divisible by 3 is: (i) 1 (ii) 3 (iii) 5 (iv) 720222m
Module 1: Introduction & Regular Languages
View this question on its own page →The minimum number of states required to recognize an octal number divisible by 3 is:
(i) 1
(ii) 3
(iii) 5
(iv) 7Q1b. Which of the following is a regular language? (i) Strings whose length is a sequence of prime numbers (ii) Palindrome strings (iii) Strings containing substring ww^r (iv) Strings with even number of 0’s20242m
Module 1: Introduction & Regular Languages
View this question on its own page →Which of the following is a regular language?
(i) Strings whose length is a sequence of prime numbers
(ii) Palindrome strings
(iii) Strings containing substring
(iv) Strings with even number of ’sQ1b. 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-3Q1b. For a given Moore machine, given input = 101010, the output would be of length: (i) |Input| + 1 (ii) |Input| (iii) |Input| − 1 (iv) Cannot be predicted20222m
Module 1: Introduction & Regular Languages
View this question on its own page →For a given Moore machine, given input =
101010, the output would be of length:(i) |Input| + 1
(ii) |Input|
(iii) |Input| − 1
(iv) Cannot be predictedQ1b. 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 statesQ1c. 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 DFAQ1c. NFA has 'non-deterministic' in its name because: (i) The result is undetermined (ii) The choice of path is nondeterministic (iii) The next state is nondeterministic (iv) All of the mentioned20242m
Module 1: Introduction & Regular Languages
View this question on its own page →NFA has 'non-deterministic' in its name because:
(i) The result is undetermined
(ii) The choice of path is nondeterministic
(iii) The next state is nondeterministic
(iv) All of the mentionedQ1c. The total number of states and transitions required to form a Moore machine that produces residue mod 3 are: (i) 3 and 6 (ii) 3 and 5 (iii) 2 and 4 (iv) 2 and 520222m
Module 1: Introduction & Regular Languages
View this question on its own page →The total number of states and transitions required to form a Moore machine that produces residue mod 3 are:
(i) 3 and 6
(ii) 3 and 5
(iii) 2 and 4
(iv) 2 and 5Q1d. Which of the following is NOT a component of a finite automaton? (i) States (ii) Input alphabet (iii) Transition function (iv) Output tape20242m
Module 1: Introduction & Regular Languages
View this question on its own page →Which of the following is NOT a component of a finite automaton?
(i) States
(ii) Input alphabet
(iii) Transition function
(iv) Output tapeQ1d. Which of the following is a correct statement? (i) Moore machine has no accepting states. (ii) Mealy machine has accepting states. (iii) We can convert Mealy to Moore but not vice versa. (iv) All of the above20222m
Module 1: Introduction & Regular Languages
View this question on its own page →Which of the following is a correct statement?
(i) Moore machine has no accepting states.
(ii) Mealy machine has accepting states.
(iii) We can convert Mealy to Moore but not vice versa.
(iv) All of the aboveQ1d. 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
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. A DFA can have: (i) Multiple start states (ii) Multiple accepting states (iii) Transitions on \varepsilon (iv) None of the above20242m
Module 1: Introduction & Regular Languages
View this question on its own page →A DFA can have:
(i) Multiple start states
(ii) Multiple accepting states
(iii) Transitions on
(iv) None of the aboveQ1e. 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)Q1e. The minimum number of transitions to reach the final state as per the regular expression: \{a, b\}^* baaa is: (i) 4 (ii) 5 (iii) 6 (iv) 320222m
Module 1: Introduction & Regular Languages
View this question on its own page →The minimum number of transitions to reach the final state as per the regular expression:
is:
(i) 4
(ii) 5
(iii) 6
(iv) 3Q1f. Which of the following is a type of grammar in the Chomsky hierarchy? (i) Regular (ii) Context-Free (iii) Context-Sensitive (iv) All of the above20242m
Module 1: Introduction & Regular Languages
View this question on its own page →Which of the following is a type of grammar in the Chomsky hierarchy?
(i) Regular
(ii) Context-Free
(iii) Context-Sensitive
(iv) All of the aboveQ1f. Let w = xyz, y is the middle portion and |y| > 0. Repeating y zero or more times before checking membership in L is known as: (i) Generating (ii) Pumping (iii) Producing (iv) None of the above20222m
Module 1: Introduction & Regular Languages
View this question on its own page →Let , is the middle portion and . Repeating zero or more times before checking membership in is known as:
(i) Generating
(ii) Pumping
(iii) Producing
(iv) None of the aboveQ1g. For an NFA with n states, the minimized DFA has: (i) m \le 2^n (ii) n \le m (iii) one accept state (iv) m = 2^n20212m
Module 1: Introduction & Regular Languages
View this question on its own page →For an NFA with states, the minimized DFA has:
(i)
(ii)
(iii) one accept state
(iv)Q1g. 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 these represents a regular language? (i) \{ a^n b^n \mid n \ge 0 \} (ii) Strings with equal number of a’s and b’s (iii) \{ a^n \mid n \text{ is prime} \} (iv) \{ w \mid w \text{ starts with 'a' and ends with 'b'} \}20242m
Module 1: Introduction & Regular Languages
View this question on its own page →Which of these represents a regular language?
(i)
(ii) Strings with equal number of ’s and ’s
(iii)
(iv)Q1i. A minimum state DFA for the language: L = \{ w \in \{0,1\}^* : \#0(w) \equiv 0 \mod 3,\; \#1(w) \equiv 0 \mod 5 \} has: (i) 15 states (ii) 11 states (iii) 10 states (iv) 9 states20212m
Module 1: Introduction & Regular Languages
View this question on its own page →A minimum state DFA for the language:
has:
(i) 15 states
(ii) 11 states
(iii) 10 states
(iv) 9 statesQ1j. 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)Q1j. The construction time for DFA from NFA with m nodes is: (i) O(m^2) (ii) O(2^m) (iii) O(m) (iv) O(\log m)20212m
Module 1: Introduction & Regular Languages
View this question on its own page →The construction time for DFA from NFA with nodes is:
(i)
(ii)
(iii)
(iv)Q2a. What is Automata? Explain classification of Automata.20247m
Module 1: Introduction & Regular Languages
View this question on its own page →What is Automata? Explain classification of Automata.
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.
Q2a. Design a DFA for strings over \{a, b\} containing at least three occurrences of bbb (overlapping allowed). Example: bbbbbb is accepted.20227m
Module 1: Introduction & Regular Languages
View this question on its own page →Design a DFA for strings over containing at least three occurrences of
bbb(overlapping allowed). Example:bbbbbbis accepted.Q2a. Tabulate the Chomsky hierarchy of grammars with an example for each.20217m
Module 1: Introduction & Regular Languages
View this question on its own page →Tabulate the Chomsky hierarchy of grammars with an example for each.
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.
Q2b. Tabulate the Chomsky hierarchy of grammars with an example of each.20247m
Module 1: Introduction & Regular Languages
View this question on its own page →Tabulate the Chomsky hierarchy of grammars with an example of each.
Q2b. Let L \subseteq \{0,1,2\}^* be strings without consecutive identical symbols (no 00, no 11, no 22). Design a DFA for L.20227m
Module 1: Introduction & Regular Languages
View this question on its own page →Let be strings without consecutive identical symbols (no , no , no ). Design a DFA for .
Q2b. Design a finite-state machine (FSM) for a parity checker.20217m
Module 1: Introduction & Regular Languages
View this question on its own page →Design a finite-state machine (FSM) for a parity checker.
Q3a. Construct DFA for all strings over \{0,1\} interpreted as binary numbers divisible by 4.20247m
Module 1: Introduction & Regular Languages
View this question on its own page →Construct DFA for all strings over interpreted as binary numbers divisible by .
Q3a. Construct an NFA accepting strings over \{0,1,2\} beginning with 0, followed by an odd number of 1s, ending with any number of 2s.20217m
Module 1: Introduction & Regular Languages
View this question on its own page →Construct an NFA accepting strings over beginning with 0, followed by an odd number of 1s, ending with any number of 2s.
Q3b. Construct DFA that accepts strings over \Sigma = \{a,b\} which start with aba.20247m
Module 1: Introduction & Regular Languages
View this question on its own page →Construct DFA that accepts strings over which start with .
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. Prove that L = \{ a^i b^i \mid i \ge 0 \} is not regular using the pumping lemma.20247m
Module 1: Introduction & Regular Languages
View this question on its own page →Prove that is not regular using the pumping lemma.
Q4a. Design Mealy and Moore machines to detect the sequence 1010 (overlapping allowed). Then convert the Moore machine into a Mealy machine and prove equivalence.20227m
Module 1: Introduction & Regular Languages
View this question on its own page →Design Mealy and Moore machines to detect the sequence
1010(overlapping allowed). Then convert the Moore machine into a Mealy machine and prove equivalence.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. Convert the following NFA to DFA. 20247m
Module 1: Introduction & Regular Languages
View this question on its own page →Convert the following NFA to DFA.

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.

Q4b. Design a DFA for the regular expression: 1^*(10)^*20217m
Module 1: Introduction & Regular Languages
View this question on its own page →Design a DFA for the regular expression:
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. 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.
Q5a. Give examples of L_1 and L_2 such that: (i) L_1 is regular, L_2 is not regular, and L_1 - L_2 is regular. (ii) L_1 and L_2 are not regular but L_1 \cup L_2 is regular.20227m
Module 1: Introduction & Regular Languages
View this question on its own page →Give examples of and such that:
(i) is regular, is not regular, and is regular.
(ii) and are not regular but is regular.Q5b. Show that the language of palindromes over \{a, b\} is not regular.20227m
Module 1: Introduction & Regular Languages
View this question on its own page →Show that the language of palindromes over is not regular.
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. 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} Q6a. Show that the language: L = \{ a^{n!} : n \ge 0 \} is not regular or not context-free.20217m
Module 1: Introduction & Regular Languages
View this question on its own page →Show that the language:
is not regular or not context-free.
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: