TOC Question Bank - Unit - 1 - 2 - 3 - 4 - 2022
TOC Question Bank - Unit - 1 - 2 - 3 - 4 - 2022
TOC Question Bank - Unit - 1 - 2 - 3 - 4 - 2022
QUESTION BANK
UNIT-1
Q. Blooms Course
Questions
No. Taxonomy Outcomes
level Mapped
1 1
Define with an example (i) Alphabet (ii) Power of an alphabet (iii)
1
Concatenation (iv) Language
6 Obtain the NFA to accept strings of a's and b's ending with bba and 1
convert the same into DFA. 1
8 Define the formal definition of DFA, and also design a DFA to accept 1
strings of a’s and b’s ending with ab or ba. Trace the string by
considering the example: aab and abb, show that the string is accepted 1
or rejected.
UNIT-2
Q. Blooms Course
Questions
No. Taxonomy Outcomes
level Mapped
1 Draw a DFSM for the following regular expression (i) aa*(a+b) (ii) 1
ab(a+b)* (ii) a*b*c*
2
UNIT-3
Q. Blooms Course
Questions
No. Taxonomy Outcomes
level Mapped
1 State pumping lemma theorem for regular language and prove that the 1
language 1
L={ wwR| w ε {a,b}*} is not regular.
2 Define distinguishable and indistinguishable states. Minimize the DFA 1
depicted in
S 0 1
A B F
B G C
*C A C 3
D C G
E H F
F C G
G G E
H G C
3 Define grammar, derivation and sentential form with example. 1
3
4 Define ambiguity in grammar. Show the following grammar is 1
ambiguous.
S→ aB|bA 3
A→ aS|bAA|a
B→ bS|aBB|b
5 1
Let G be the grammar,
S→ aB|bA
3
A→ aS|bAA|a
B→ bS|aBB|b
For the string aaabbabbba find a (i) Left most derivation (ii) Right most
derivation (iii) Parse tree
6 Show that the Following grammar is ambiguous. 1
S->aB | bA
3
A-> aS | bAA | a
B-> bS | aBB | b
7 Obtain the Grammar for the following Languages. 1
i. Strings of a's and b's with at least one a or one b.
ii. Strings of 0's and 1's having the substring 101. 2
iii. L={ anb2n | n>=0 }
iv. Set of all palindromes over Σ={0,1}
8 Pumping Lemma is to be applied to show that certain languages are not 1
regular. It should never be used to show a language is regular. State and 2
prove pumping lemma for regular languages
9 All languages are not regular. To prove certain languages are not 1
regular we use Pumping Lemma. Show that L = { anbn | n≥ 0} is not
2
regular
10 Define Context Free grammar. Design the context free grammars for the 1
following languages.
i) L = { an b2n : n ≥ 0}
3
ii) L = {wwR where w ϵ {a,b}* }
14 If L1 and L2 are regular, then show that the regular language is closed 1
2
under intersection
15 1
Minimize the following DFA.
δ a b
3
->A B C
B D E
C F G
*D D E
E F G
*F D E
*G F G
UNIT-4
Q. Blooms Course
Questions
No. Taxonomy Outcomes
level Mapped
1 4
Explain the following terms
(i) Push down automata (ii) Language of a PDA (iii) Instantaneous
description of PDA.
Convert the following CFG to PDA 3
S→ aABB|aAA
A→ aBB|a
B→ bBB|A
C→ a
2 Simplify the following grammar 1
S→ aA|a|Bb|cC
A→ aB
3
B→ a|Aa
C→ cCD
D→ ddd
3 Construct a PDA to accept the language L={ wwR| w ε {a,b}*}. 2
3
4 a) State pumping lemma for context free grammar. Show that the 1
language L= { anbncn | n≥0} is not context free. 2
5 For Certain languages there are no solution from the Finite Automata. 1
For those type of problems can be modeled by using PDA. Define the
3
PDA and Construct the PDA to accept the language L={anbn | n>=1}