...
Compiler-Design
October 7, 2023
Operating-Systems
October 7, 2023
Compiler-Design
October 7, 2023
Operating-Systems
October 7, 2023

Compiler-Design

Question 24

In the following grammar

         X ::= X ⊕ Y/Y
         Y ::= Z * Y/Z
         Z ::= id  

Which of the following is true?

A
‘⊕’ is left associative while ‘*’ is right associative
B
Both ‘⊕’ and ‘*’ is left associative
C
‘⊕’ is right associative while ‘*’ is left associative
D
None of the above
Question 24 Explanation: 

⊕ is left associative.
* is right associative.
Correct Answer: A
Question 24 Explanation: 

⊕ is left associative.
* is right associative.
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!