Compiler Design – Multiple Choice Questions (MCQs)
-
-
2. What is the role of the lexical analyzer (scanner)?
-
3. What is a token?
-
4. What is the role of the syntax analyzer (parser)?
-
5. What is a parse tree?
-
6. What is the role of the semantic analyzer?
-
7. What is type checking in semantic analysis?
-
8. What is intermediate code?
-
9. Which of the following is a common form of intermediate code?
-
10. What is the role of the intermediate code generator?
-
11. What is code optimization?
-
12. What are the two main types of code optimization?