Home › AKTU PYQ › Compiler Design › Important Questions › Unit 3

Compiler Design Unit 3 – Syntax-Directed Translation and Intermediate Code: important questions for AKTU

Unit 3 (Syntax-Directed Translation and Intermediate Code) questions that AKTU repeats most often. This unit carries about 29 marks per paper. Start with the repeated questions, then the most asked topics.

Most repeated Unit 3 questions

  • Determine the quadruples, triples, and indirect triples for the following expression: (x+y) * (y+z) + (x+y+z) (10 marks, 2024, Quadruples and Triples) – also asked in 2019, 2022
  • Write the quadruple, triple, indirect triple for the following expression (x + y)*(y + z) + (x + y + z) (10 marks, 2022, Quadruples and Triples) – also asked in 2019, 2024
  • Write syntax directed definition for a given assignment statement: S → id=E E → E+E E →E*E E→-E E → (E) E→id (10 marks, 2024, Translation of Assignment Statements) – also asked in 2022

Most important Unit 3 topic

  • Quadruples and Triples (Unit 3: Syntax-Directed Translation and Intermediate Code) – asked 11 times in 2017, 2018, 2019, 2021, 2022, 2023, 2024, 2025, 2026

Most asked Unit 3 topics

  • Quadruples and Triples – asked 11 times
  • Syntax-Directed Translation Schemes – asked 7 times
  • Intermediate Code – asked 7 times

More Unit 3 previous year questions

  • Define Boolean expression translation. (2 marks, 2026, Translation of Boolean Expressions)
  • Why are quadruples preferred over triples in an optimizing compiler? (2 marks, 2026, Quadruples and Triples)
  • Describe translation schemes for assignment statements and arithmetic expressions. (7 marks, 2026, Translation of Assignment Statements)
  • Explain three-address code representation and discuss quadruples, triples, and indirect triples. (7 marks, 2026, Three-Address Code)
  • Generate postfix notation and three-address code for : (a+b)∗(c−d)+e (7 marks, 2026, Intermediate Code)

Unit 3 syllabus topics

  • Syntax-Directed Translation Schemes
  • Implementation of Syntax-Directed Translators
  • Intermediate Code
  • Postfix Notation
  • Parse Trees and Syntax Trees
  • Three-Address Code
  • Quadruples and Triples
  • Translation of Assignment Statements
  • Translation of Boolean Expressions
  • Translation of Statements That Alter the Flow of Control
  • Postfix Translation
  • Translation with a Top-Down Parser