Role of the Lexical Analyzer MCQs

10 min Score: 0 Attempted: 0/10 Subscribe
1. What is the primary function of the lexical analyzer in the compilation process?





2. Which of the following tasks is NOT performed by the lexical analyzer?





3. What does the lexical analyzer use to match input patterns and generate tokens?





4. How does the lexical analyzer handle whitespace and comments in the source code?





5. Which of the following is an output of the lexical analysis phase?





6. What is the role of regular expressions in the lexical analysis process?





7. What happens when the lexical analyzer encounters an invalid token?





8. In which phase of compilation does the lexical analyzer operate?





9. Which of the following does the lexical analyzer NOT do?





10. What is the role of the symbol table in lexical analysis?





Leave a Comment

All copyrights Reserved by MCQsAnswers.com - Powered By T4Tutorials