GATE CS 2024 (Forenoon) — Question 37

Compiler DesignSyntax-Directed Translation & Runtime EnvironmentsMCQ2 marks · −2/3 if wrongMedium

Consider the following syntax-directed definition (SDD).
Question image
Given “MMLK” as the input, which one of the following options is the CORRECT value computed by the SDD (in the attribute S.val)?
  1. A
    45
  2. B
    50
  3. C
    55
  4. D
    65
Practise the full 2024-FN 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