• edited by
1,829 views
3 3 votes

A) SDD is L attributed.

B) SDD is not L attributed because of Rule 1.

C) SDD is L attributed because of Rule 2.

D) SDD is L attributed because of both Rule1 and Rule2.

2 Answers

0 0 votes

If A takes value from R or Q then it is S-attributed 

if Q takes value from A or R takes value from A or Q ( from the left side only)  then it is L-attributed

here Q is taking value from right side R hence neither S nor L attributed 

Answer is B

Position:
Show:

Related questions

1 1 vote
1 1 answer
624
624 views
nishitshah asked Jan 26, 2018
624 views
Answer given is 0.875.I think the answer should be 0.75.I am providing the snapshot of the solution provided by MadeEasy and I think the highlighted part is given wrong.t...
3 3 votes
1 1 answer
1.6k
1.6k views
rahul sharma 5 asked Jan 23, 2018
1,580 views
Consider the following schema shown below:Here ‘num’ is a token that represents an integer and num.val represents the corresponding integer value. For an input string ‘2 ...
1 1 vote
1 1 answer
3.1k
3.1k views
Na462 asked Jan 13, 2019
3,057 views
Consider the following Translation rules for the Grammar G :What will be the output for input string abebebe for bottom up parser ?CBBPBPBPCBBBPPBBCBPBPBPBCBPBBPPB
4 4 votes
1 1 answer
4.9k
4.9k views
Shivam Kasat asked Jan 7, 2019
4,851 views
Consider the following grammar and their Syntax Directed Translation (SDT) rules. (Here id represent a integer and id.val is value of that integer)S1: Given SDT is L-attr...