Compiler Design PYQ

22 learning resources

  1. What are the symbol table requirements ? What are the demerits in the uniform structure of symbol table ?
  2. Discuss symbol table with its capabilities ?
  3. Define parse tree. Why parse tree construction is only possible for CFG ?
  4. What is intermediate code generation and discuss benefits of intermediate code ?
  5. What is the difference between S-attributed and L-attributed definitions ?
  6. Differentiate between recursive descent parsing and predictive parsing.
  7. Differentiate between top-down and bottom-up parser.Under which conditions predictive parsing can be constructed for a grammar ?
  8. What are the common conflicts that can be encountered in shift-reduce parser ?
  9. What is parser ? Write the role of parser. What are the most popular parsing techniques ? OR Explain about basic parsing techniques. What is top-down parsing ? Explain in detail.
  10. Describe the capabilities of CFG.
  11. Define parse tree. What are the conditions for constructing a parse tree from a CFG ?
  12. Explain formal grammar and its application to syntax analyzer.
  13. Describe grammar.
  14. What are the various LEX actions that are used in LEX programming ?
  15. Explain the term token, lexeme and pattern.
  16. Explain the automatic generation of lexical analyzer.
  17. Write short notes on lexical analyzer generator.
  18. Explain the implementation of lexical analyzer.
  19. How does finite automata useful for lexical analysis ?
  20. What do you mean by regular expression ? Write the formal recursive definition of a regular expression.
  21. Discuss the role of compiler writing tools. Describe various compiler writing tools.
  22. What are the types of passes in compiler ?