Compiler Design Tools and Techniques MCQs

30 min Score: 0 Attempted: 0/30 Subscribe
1. What is the main purpose of a compiler?





2. Which phase of a compiler checks the syntax of the source code?





3. What is the function of a lexical analyzer?





4. Which tool is commonly used for lexical analysis?





5. Which tool is commonly used for syntax analysis (parsing)?





6. What does a symbol table store?





7. Which phase of a compiler performs type checking?





8. Which form of grammar is commonly used for parsing in compilers?





9. What is an intermediate code in a compiler?





10. Which of the following is a type of parser used in compiler design?





11. What is the main goal of code optimization?





12. Which data structure is often used in syntax-directed translation?





13. What is the function of a symbol table in semantic analysis?





14. What is the output of lexical analysis?





15. Which of the following is NOT a phase of a compiler?





16. What is backpatching in compiler design?





17. Which phase removes comments and white spaces from source code?





18. What is a finite automaton used for in compiler design?





19. Which type of grammar is easiest to parse using top-down parsing techniques?





20. What does a parser do?





21. What is a first set in parsing?





22. What is peephole optimization?





23. Which technique is used to handle ambiguity in grammar?





24. Which of the following is a target of semantic analysis?





25. What is the purpose of intermediate code generation?





26. Which of the following is an example of intermediate code?





27. Which parsing method uses a stack to predict production rules?





28. Which compiler phase deals with register allocation?





29. Which type of errors are detected during lexical analysis?





30. Which tool converts a formal grammar into a parser?





Leave a Comment

All copyrights Reserved by MCQsAnswers.com - Powered By T4Tutorials