MCQOPTIONS
Saved Bookmarks
| 1. |
Consider the grammar defined by the following production rules, with twooperators and +S --> T * PT --> U | T * UP --> Q + P | QQ --> IdU --> IdWhich 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 |
| Answer» C. Both + and are right associative | |