Free Online Directory Attribute Grammars MCQs - MCQs Answers

Attribute Grammars MCQs

15 min Score: 0 Attempted: 0/15 Subscribe
1. What is the purpose of attribute grammars in compiler design?





2. In attribute grammars, what are attributes used for?





3. What are the two types of attributes in attribute grammars?





4. Which of the following is an example of a synthesized attribute?





5. In attribute grammars, where do synthesized attributes typically flow?





6. Which of the following describes an inherited attribute?





7. Which of the following operations can attribute grammars perform?





8. In an attribute grammar, what is a semantic rule?





9. Which of the following is an example of a synthesized attribute for an expression in an abstract syntax tree?





10. In an attribute grammar, what is the typical direction of attribute flow for synthesized attributes?





11. Which of the following best describes the main difference between synthesized and inherited attributes?





12. Which of the following is NOT a valid example of an inherited attribute?





13. How are attribute grammars typically used in compilers?





14. Which of the following is true about the attribute grammar formalism?





15. In attribute grammars, which method is used to propagate inherited attributes?





Leave a Comment

All copyrights Reserved by MCQsAnswers.com - Powered By T4Tutorials