wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Consider the grammar defined by the following production rules, with two operators * and +
STP
TU|TU
PQ+P|Q
QId
UId
Which one of the following is TRUE?

A
+ is left associative, while * is right associative
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
+ is right associative, while * is left associative
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
Both + and * are right associative
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
Both + and * are left associative
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Join BYJU'S Learning Program
CrossIcon