Solved

Consider the Grammar Defined by the Following Production Rules, with Twooperators

Question 19

Multiple Choice

Consider the grammar defined by the following production rules, with twooperators ? and +
S --> T * P
T --> U | T * U
P --> Q + P | Q
Q --> Id
U --> Id
Which one of the following is TRUE?


A) + is left associative, while ? is right associative
B) + is right associative, while ? is left associative
C) Both + and ? are right associative
D) Both + and ? are left associative

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents