Professional Documents
Culture Documents
QUESTION BANK
Sem/Subject/Code: 5th/AUTOMATA THEORY AND COMPILER DESIGN
/21CS51
Prepared By: Mala M
Module-2 Compiler Questions
1. Explain the role of Lexical Analyzer. Define Tokens, Patterns and Lexemes.
2. Define Token, Patterns and Lexeme for the statement char a[]= “Hello”
3. What is meant by input buffering? Explain the use of sentinels with Lookahead
code.
4. Write regular definitions for Identifiers, unsigned numbers and draw the
transition diagram for the same
5. Construct the transition diagram to recognize the tokens given below, also write
the regular definitions:
1) Identifier
2) Relational operator
3) Unsigned numbers
Module-3