GATE 2024 set1 Computer Science and Information Technology question: Consider the following syntax-directed definition (SDD). S DHTU S.val = D.val + H.val +…
Consider the following syntax-directed definition (SDD).
| { } | |
|---|---|
| "M" | { } |
| { } | |
| "L" | { } |
| { } | |
| "C" | { } |
| { } | |
| "K" | { } |
Given "MMLK" as the input, which one of the following options is the CORRECT value computed by the SDD (in the attribute )?
Show answer
Official answer: A