GATE CS 2024 (Afternoon) — Question 29

Compiler DesignSyntax-Directed Translation & Runtime EnvironmentsMSQ1 markMedium

Which of the following statements is/are FALSE?
  1. A
    An attribute grammar is a syntax-directed definition (SDD) in which the functions in the semantic rules have no side effects.
  2. B
    The attributes in a L-attributed definition cannot always be evaluated in a depth first order.
  3. C
    Synthesized attributes can be evaluated by a bottom-up parser as the input is parsed.
  4. D
    All L-attributed definitions based on LR(1) grammar can be evaluated using a bottom-up parsing strategy.
Practise the full 2024-AN paper
Challenge a friend: WhatsApp Telegram
Recommended book · affiliate linkCompilers: Principles, Techniques & ToolsThe "Dragon Book" for parsing, syntax-directed translation and code generation.
Practise more on Syntax-Directed Translation & Runtime EnvironmentsTimed, in the real exam interface · free to start

A GATE question every morning

One real past-paper question every morning for your branch, answer hidden until you tap. Free on Telegram.

Join
Stuck? Ask in the student group