let's put the level at each statements
E-> E/X | X....................1(root)
X-> T-X | X*T | T..............2
T-> T+F | F....................3
F-> (E) | id...................4
Precedence
op which is in the max level has the max precedence so id, (, ) has highest precedence folowed by + then -,* then /
so + has the highest precedence as per option
Associativity
Note A->Ax is left recursive and A-xA is right recursive grammer Now
E-> E/X is left recursive so / is left associated
X-> T-X is right recursive so - is right associated
X-> X*T is left recursive so / is left associated
T-> T+F | F is left recursive so / is left associated
so ans of Q1 is d :)