Professional Documents
Culture Documents
VIVA QUESTIONS
1. What is NFA?
2. What is subset construction algorithm?
3. What is closure?
4. What is Thompsons construction?
5. What is epsilon transition?
6. Why regular expressions are used to define lexical syntax of a language?
7. Differentiate the uses of regular expressions and grammars?
8. What are the different types of errors a program can contain?
9. Differentiate NFA and DFA.
10. Define DFA.
11. Differentiate between NFA and DFA.
12. Define context free grammar.
13. Define regular expression.
14. What is meant by transition table?
15. What is meant by moves?
16. Define epsilon closure.
17. Give the advantage and disadvantage of transition table.
18. Define recognizer.
19. What is finite automata?
20. Give types of finite automata.
21. What is meant by syntax analysis?
22. What is meant by syntax tree?
23. What is hierarchical analysis?
24. What is the role of parser?
25. What are the error recovery strategies?
26. What is panic-mode recovery?
27. What is phrase level recovery?
28. What is global correction?
29. Classify parser.
30. What is left factored grammar?
31. What is regular expression?
32. What is a translator?
33. Differentiate interpreters and compilers.
34. What are loaders and linkers?
35. What is an assembler?
36. What are the phases of a compiler?
37. What is bootstrapping a compiler?
38. What are the two parts of compilation? Explain briefly.
39. Explain in brief linear analysis.
40. Explain in brief hierarchical analysis.
41. Explain in brief semantic analysis.
42. Give the parse tree for the statement a := b + c * 60.
43. What is a symbol table?
44. Briefly explain code optimization.
45. What are rational preprocessors?
46. What is the use of scanner generator?
Dept of CSE, COMPILER DESIGN LAB manual, 2014-15