GATE CS Syntax-directed Translation questions
Practise Syntax-directed Translation questions for GATE CS. Explore official PYQs and original topic-wise quizzes, check answers and view available solutions. Free, no sign-in.
Subject, topic, year and type filter the full library. Match any choice within a filter, and all selected filter categories. Search, source and sort apply to this page.
15 on this page
Consider the following two syntax-directed definitions and for type declarations. …
Given the following syntax directed translation rules: Rule 1: Rule 2: Rule 3: Which ONE is the CORRECT option among the following?
Consider the following syntax-directed definition . …
Which of the following statements is/are FALSE?
Consider the syntax directed translation given by the following grammar and semantic rules. Here and are non-terminals. is the starting non-terminal, and and are lexical tokens corresponding to input letters respectively. denotes the synthesized attribute (a …
Consider the following grammar along with translation rules. …
Consider the following grammar (that admits a series of declarations, followed by expressions) and the associated syntax directed translation actions, given as pseudo-code …
Consider the productions and . Each of the five non-terminals and has two attributes: is a synthesized attribute, and is an inherited attribute. Consider the following rules. Rule and Rule and …
Consider the following grammar and the semantic actions to support the inherited type declaration attributes. Let , and be the placeholders for the non-terminals or in the following table: …
Consider the following Syntax Directed Translation Scheme , with non-terminals and terminals . Using the above , the output printed by a bottom-up parser, for the input is:
Consider the expression tree shown. Each leaf represents a numerical value, which can either be or . Over all possible choices of the values at the leaves, the maximum possible value of the expression represented by the tree is ___.
Consider the grammar with the following translation rules and as the start symbol …
Consider the syntax directed definition shown below. …
In a bottom-up evaluation of a syntax directed definition, inherited attributes can
A shift reduce parser carries out the actions specified within braces immediately after reducing with the corresponding rule of grammar What is the translation of using the syntax directed translation scheme described by the …
