In the following grammar X :: = X⊕Y / Y Y :: = Z*Y / Z Z :: = id Which of the…

GATE · 1997 · CS · Question 1 subparts

In the following grammar

X :: = X⊕Y / Y

Y :: = Z*Y / Z

Z :: = id

Which of the following is true?

  1. A.
    '⊕' is left associative while '*' is right associative

  2. B.
    Both '⊕' and '*' are left associative

  3. C.
    '⊕' is right associative while '*' is left associative

  4. D.
     None of the above

Attempted by 100 students.

Show answer

Correct answer: A

The worked solution is available to enrolled students.

Explore the full course: Iocl Engineers Officers Grade A Paper 2

Loading lesson…