Toc
Toc
i. b*ab*ab*ab*
ii. (a + b)*
iii. b*a (a + b)*
iv. b* ab* ab*
2. Consider the following deterministic finite automaton (DFA) defined over the alphabet, Σ = {a, b}. Identify which
of the following language(s) is/are accepted by the given DFA.
i. Regular
ii. Context free
iii. Context sensitive
iv. All of the above
4. Identify the language generated by the following grammar, where S is the start variable.
S-XY
X-aX | a
Y-aYb | ∈
i. {ambn | m ≥ n, n > 0}
ii. {ambn | m ≥ n, n ≥ 0}
iii. {ambn | m > n, n ≥ 0}
iv. {ambn | m > n, n > 0}
i. Input Alphabet
ii. Transition function
iii. Output Alphabet
iv. Initial State
6. Given the language L = {ab, aa, baa}, which of the following strings are in L?
i. abaabaaabaa
ii. aaaabaaaa
iii. baaaaabaa
iv. All of these
7. The finite automata are called NFA when there exists ________ for a specific input from current state to next
state
i. Multiple paths
ii. Single path
iii. Only two paths
iv. None
8. What is the relation between DFA and NFA on the basis of computational power?
11. The minimum possible number of states of a deterministic finite automation that accepts the regular language
L = {W₁aW2 | W1, W2 ∈ (a,b)*, |W₁| = 2, |W2| ≥ 3} is________.
i. 8
ii. 5
iii. 4
iv. 2
12. Language L₁ is defined by the grammar: S₁ aS₁b | ∈
Language L₂ is defined by the grammar: S2 abS2 | ∈
Consider the following statements:
P: L₁ is regular
Q: L2 is regular
13. If L is a regular language over ∑ = (a, b), which one of the following languages is NOT regular?
i. L. LR = {xy | x ∈ L, yR ∈ L}
ii. {wwR | w ∈ L}
iii. Prefix (L) = {x ∈ Σ* | Ǝx ∈ Σ* such that xy ∈ L}
iv. Suffix (L) = {y ∈ Σ* | Ǝx ∈ Σ* such that xy ∈ L}
14. Let G1, G2 be Context-Free Grammars (CFGs) and R be a regular expression. For a grammar G, let L(G) denote
the language generated by G.
Which ONE among the following questions is decidable?
i. Is L(G1) = L(G2)?
ii. Is L(G1) ꓵ L(G2)?
iii. Is L(G1) = L(R)?
iv. Is L(G1) = ∅?
15. Consider the language L given the regular expression (a+b)*b(a+b) over the alphabet {a,b}. The smallest
number of states needed in a deterministic finite-state automation (DFA) accepting L is ________.
i. 6
ii. 4
iii. 2
iv. 8
16. Which ONE of the following languages is accepted by a deterministic pushdown automaton?
i. ∅
ii. 𝛿
iii. ∑
iv. 𝜺
i. 𝛅: 𝐐 × ∑→ 𝐐
ii. W: Q × ∑→ Q
iii. δ: Q × ∑→ W
iv. δ: Q × ∑→ F
i. Be a context-free language.
ii. Be a regular language.
iii. Be a non-regular language.
iv. Not be a language.
i. 2
ii. 1
iii. 4
iv. 5
i. Only S1 is true
ii. Only S2 is true
iii. Both S1 and S2 are true
iv. Neither S1 nor S2 is true
5-15 Marks
1. Definition of DFA, NFA, GRAMMAR, Mealy, Moore Machine, (Clean Closer, Positive Closer and relation
between them)
2. DFA minimisation
3. Construct DFA & Regular Expression
4. CA questions
5. Chomsky Hierarchy
6. Production rules to Grammar
7. Ambiguous Unambiguous checking
8. Arden's theorem
9. What is pumping lemma for regular Expression
10. Pushdown Automata