Free Online Directory Context-Free Grammars and Parse Trees MCQs - MCQs Answers

Context-Free Grammars and Parse Trees MCQs

10 min Score: 0 Attempted: 0/10 Subscribe
1. What is a Context-Free Grammar (CFG)?





2. Which of the following components make up a Context-Free Grammar?





3. In a Context-Free Grammar, which of the following is always replaced by a non-terminal symbol?





4. What is the purpose of a parse tree in syntax analysis?





5. Which of the following is true about a parse tree?





6. In a Context-Free Grammar, the start symbol:





7. Which of the following is an example of a valid production rule in a Context-Free Grammar?





8. In a Context-Free Grammar, what is a terminal symbol?





9. What is the maximum depth of a parse tree in terms of the grammar rules?





10. Which of the following does NOT result in a correct parse tree?





Leave a Comment

All copyrights Reserved by MCQsAnswers.com - Powered By T4Tutorials