AT&CD
AT&CD
MID – I QUESTIONS
SET –I
1. Define regular expression. Construct an equivalent FA for the given regular expression
(0+1)*(00+11)(0+1)* [CO1, BTL-5] [10M]
2. Write the leftmost and rightmost derivations, and draw the parse-tree for the string -
aaabbabbba with the grammar.
S → aB | bA
A → a | aS | bAA
B → b | bS | aBB [CO2, BTL-1] [10M]
SET – II
SET – III
1. a) Construct DFA for the language L= {w/ w is of even length and begins with 01}.
[CO1, BTL-5]
[05M]
b) Construct DFA for the language L= {w/ w does not contain 10}? [CO1, BTL-5] [05M]
2. Consider the Grammar: G = ({S}, {a, b}, {S → SbS | a}, S). Find the leftmost derivation,
rightmost derivation, and parse tree for the string: abababa [CO2, BTL-1] [10M]
3. List out the set of recursive procedures in Recursive-Descent parser with suitable example
grammar? [CO3, BTL-1] [10M]
SET – IV