GATE CSE SDT, Intermediate Code, Optimization & Code Generation – Compiler Design | Set 1

Questions 1-5 of 100

0% completed (0/100 answered)
Your score 0/100 0 answered
Correct 0 Incorrect 0 Unanswered 100 Accuracy 0%

Question 1

MCQ · Single Correct 1 mark

In Syntax Directed Translation (SDT), an attribute is called a 'Synthesized Attribute' if its value at a parse tree node N is computed from:

Answers for question 1

Question 2

MCQ · Single Correct 1 mark

An attribute is called an 'Inherited Attribute' if its value at a parse tree node N is computed from:

Answers for question 2

Question 3

MCQ · Single Correct 1 mark

Which of the following is TRUE regarding S-attributed and L-attributed Definitions?

Answers for question 3

Question 4

MCQ · Single Correct 1 mark

In an L-attributed Syntax Directed Definition (SDD), inherited attributes for a symbol $X_{j}$ in production A -> $X_{1}$ $X_{2}$ ... $X_{n}$ can depend on:

Answers for question 4

Question 5

MCQ · Single Correct 1 mark

An S-attributed Grammar can be naturally evaluated during which type of parsing?

Answers for question 5
Scroll to Top