The Gateway to Computer Science Excellence
+1 vote
232 views
For synthesized attribute, value is only computed when symbol is on the _____ side of production. For inherited attribute, value is computed in productions where symbol is on the _____ side.

1. Left, Right   2. Right, Right    3. Right, Left    4. Left, Left
closed with the note: duplicate
in Compiler Design by Loyal (7.7k points)
closed by | 232 views
0
1. Left, Right ???
0
3. Right, Left ??
0

https://gateoverflow.in/81245/testbook

Answer is Left and Right .

0

For synthesized attribute, value is only computed when symbol is on the _____ side of production. 

What does symbol mean in this question? Does symbol mean here that for which we are calculating the value (attribute on LHS) or which helps in calculating the value (attributes on the RHS)?

0
i think so
0
symbol here means grammar symbol, i.e. terminal and non-terminal
0
obviously, the symbol is either terminal or variable but I am asking it is present on LHS part or RHS part?
0
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,645 questions
56,601 answers
195,854 comments
102,227 users