Theoretical Foundations MCQs

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





2. Which of the following is NOT a type of formal grammar in the Chomsky hierarchy?





3. What is a language in terms of automata theory?





4. Which automaton recognizes regular languages?





5. Context-free grammars are usually recognized by which type of automaton?





6. Which of the following is a property of regular languages?





7. What is the purpose of derivation in grammar?





8. Which of the following is an example of a context-free language?





9. What does the term “ambiguity” in grammar refer to?





10. Which automaton is equivalent in power to a Turing machine?





11. Which of the following is NOT true about regular expressions?





12. What is the pumping lemma used for?





13. Which of the following is a limitation of finite automata?





14. Deterministic and non-deterministic finite automata are:





15. What is a parse tree?





16. Which of the following is a key difference between context-free and regular grammars?





17. What is the purpose of leftmost derivation in parsing?





18. Which class of languages is recognized by a linear-bounded automaton?





19. In automata theory, what is the “accepting state”?





20. Which of the following is true about Turing machines?





21. What is a “dead state” in finite automata?





22. Which of the following is the highest level in the Chomsky hierarchy?





23. Which of the following is a recursively enumerable language?





24. What is the main difference between deterministic and non-deterministic pushdown automata?





25. What is the main purpose of syntax-directed translation?





26. Which of the following is NOT true about context-sensitive languages?





27. Which property distinguishes deterministic context-free languages?





28. Which theorem is used to prove that certain languages are not regular?





29. Which of the following is a practical application of automata theory in compilers?





30. Which of the following is true about the relation between Chomsky hierarchy and compiler design?





Leave a Comment

All copyrights Reserved by MCQsAnswers.com - Powered By T4Tutorials