CD Assignment-I (2024-25)
CD Assignment-I (2024-25)
Assignment-I [CO1]
Section-A
Answer All Questions
1. Find Regular Expression over ∑={0,1}, for all the string beginning with 00
and ending with 11. [2 Marks][L3]
2. What is Lex? Describe the structure of a LEX program. [2 Marks][L2]
3. What is the role of Preprocessor? [2 Marks}[L2]
4. What is Left Recursion? How to eliminate it from Grammar. [2 Marks][L2]
Section-B
Answer All Questions
1. What is the role of Lexical Analysis? What are the Lexical Errors?
[6 Marks[]L2]
2. Convert the following NFA to equivalent DFA. [6 Marks][L3]
0 1
→q0 { q0, q1} q0
q1 q2
*q2
Section-C
Answer All Questions