Error Handling MCQs

30 min Score: 0 Attempted: 0/30 Subscribe
1. What is the main goal of error handling in compilers?





2. Which type of errors can a compiler detect?





3. What is panic-mode error recovery?





4. Which of the following is an advantage of panic-mode recovery?





5. What is phrase-level recovery?





6. Which error recovery method is more precise but complex?





7. What is the main disadvantage of panic-mode recovery?





8. What is an error recovery set?





9. In which phase of compilation are most error recovery techniques applied?





10. What is the purpose of an error message in a compiler?





11. Which of the following is NOT a common strategy for compiler error handling?





12. What are error productions in a parser?





13. Which type of errors do error productions mainly handle?





14. Which error recovery technique is best for real-time systems requiring fast compilation?





15. What is backtracking recovery?





16. What is a semantic error recovery method?





17. Which of the following is a characteristic of good error handling?





18. What is a common problem if error recovery is not implemented?





19. Which technique modifies the grammar to include common mistakes?





20. What is a “synchronizing token” in panic-mode recovery?





21. Why is error handling important in educational compilers?





22. Which of the following is an example of phrase-level recovery?





23. How does the compiler typically indicate multiple errors in a program?





24. What type of error handling is most suitable for beginner-friendly compilers?





25. Which of the following is a runtime error, not a compile-time error?





26. What is the term for errors that occur during code execution rather than compilation?





27. In panic-mode recovery, what happens if no synchronizing token is found?





28. Which error recovery method tries to make minimal changes to continue parsing?





29. Which compiler phase is least concerned with error recovery?





30. What is a common output of an error-handling mechanism in a compiler?





Leave a Comment

All copyrights Reserved by MCQsAnswers.com - Powered By T4Tutorials