2022 Afl End Regular Question
2022 Afl End Regular Question
(A) 111000
(B) 000111
(C) 010101
(D) All from the list.
Which of the strings is not accepted by the Conc C. 010001
following FA. ept 1
(A) 111000
(B) 000111
(C) 010001
(D) 010011
A regular expression for the below FA is: Conc C.
ept 1 10+(0+11)0*1.
(A) 10+(0+1)0*1.
(B) 11+(0+11)0*1.
(C) 10+(0+11)0*1.
(D) None
Which of the following language is regular? Conc B. {ak bk |
(A) {an bn | n>=0} ept 1 0<k<5}
(B){ak bk | 0<k<5}
(C) {am bm | m>=1}
(D)None
Q.N MCQ Consider the following two statements: Conc D. Both S1 and
o:2 ept 2 S2 false
S1. The minimal number of states required to
construct a DFA to accept set of all strings of
length greater than equal to 5 is ≥ 5.
S2. The minimal number of states required to
construct a DFA to accept set of all strings of
length exactly 6 is 7.
Which one of the following is correct?
Conc B. an cm bn (n, m
ept 3 ≥1)
The language generated by the grammar
S-> aSb | aAb
A->cA|c is:
(A) an bn cn (n, m ≥1)
(B) an cm bn (n, m ≥1)
(C) an bn cm, (n, m ≥1)
(D) am cm bn (n, m ≥1)
8. (i) Convert the given NFA to DFA. Find equivalent DFA that has minimum number of states
from the obtained DFA.
8. (ii) Construct a left-linear and a Right-linear grammar equivalent to your DFA. Find a regular
expression for the DFA.
8. (i) Convert the following NFA to DFA. Find equivalent DFA that has minimum number of
states.
.
8. (ii) Construct a left-linear and a Right-linear grammar equivalent to the DFA. Find a regular
expression for the DFA.
8. (i) Convert the following NFA to DFA. Null transition is from state q1 to q3. Find equivalent
DFA that has minimum number of states.
8. (ii) Construct a left-linear and a Right-linear grammar for the DFA. Find a regular expression for
the DFA.
9. (i) Transform the CFG into Chomsky normal form (CNF) and Greibach Normal form (GNF).
S → AB|aB,
A → abb|λ,
B → bbA
9. (ii) Design a DFA that accepts the language generated by the following grammar. Find a
left-linear grammar for the DFA.
S → abA,
A → baB,
B → aA|bb.
9. (i) Transform the following CFG into Chomsky normal form (CNF) and Greibach Normal form
(GNF).
S → ASA|aB
A → B/S
B → b/ λ
9. (ii)
Find a regular grammar that generates the language
L = {w ∈ {a, b}∗ : na (w) + 3nb (w) is odd} .
9 (i) Transform the following grammar into Chomsky normal form(CNF) and Greibach Normal
form(GNF).
S → baAB,
A → bAB|λ,
B → BAa |A| λ
Q9. (ii)
Find a regular grammar for the language L = {anbm : n + m is odd}.
11(ii) Using pumping lemma for context-free-languages prove that the language
L = { w : na(w) = nb(w) = nc(w) + 2 } is not context-free.
11(i) Design a Turing machine for the language of all binary strings that
starts with aa and ends with bb.
11(ii) Using pumping lemma for context-free-languages prove that the language
L = { w : 2na(w) = nb(w) = nc(w) } is not context-free.
11(i) Design a Turing machine for the language L = { anbnc2n: m, n ≥ 1 }.
11(ii) Using Pumping lemma for regular languages prove that the language
L = { w : na(w) =2 nb(w) + 1 } is not regular.