Skip to content
AD-604 (C) · Compiler Design/Unsolved PYQ Paper

COMPILER DESIGN - JUN 2025 Question Paper

  1. Unit 1
    7 Marks
    aShow the output generated by each phase for the following expression $$a = \left( \frac{x}{y} \right) * \left( y + x - z \right)$$
  2. Unit 1
    7 Marks
    bWrite a simple Lex program to recognize identifiers.
  3. Unit 1
    7 Marks
    aExplain how identifiers and keywords are recognized by lexical analysis with an example.
  4. Unit 2
    7 Marks
    bConstruct the predictive parser for the following grammar: A -> (B) | a B -> B,B | A
  5. Unit 2
    7 Marks
    aIllustrate the differences among SLR, LALR and LR parser.
  6. Unit 2
    7 Marks
    bConstruct SLR parsing table for the following grammar: S -> S + A | A A -> A B | B B -> B * | a | b
  7. Unit 3
    7 Marks
    aDiscuss in detail about type conversion with a suitable example.
  8. Unit 3
    7 Marks
    bExplain in detail about storage allocation strategies.
  9. Unit 3
    7 Marks
    aDiscuss in brief about polymorphic functions.
  10. Unit 4
    7 Marks
    bWrite a short note on procedure calls.
  11. Unit 4
    7 Marks
    aDiscuss in brief about backpatching using flow of control statements with suitable example.
  12. Unit 4
    7 Marks
    bExplain the procedure to convert the following expression into a DAG: $$a * b + \frac{c}{\left( \frac{d}{e} \right)} * d$$
  13. Unit 5
    7 Marks
    aGive a detailed note on loop optimization techniques.
  14. Unit 4
    7 Marks
    bDiscuss the various characteristics of basic blocks.
  15. Unit 1OR Choice
    7 Marks
    aInput Buffering
  16. Unit 2OR Choice
    7 Marks
    bL-attributed definition
  17. Unit 3OR Choice
    7 Marks
    cOverloading of functions
  18. Unit 4OR Choice
    7 Marks
    dPeephole optimization
Go to where you left off?

Quick Add to Notes

Save questions, your own notes and screenshots into notes filed by unit. It takes a free account.

Create free account

Have an account? Log in