None of the Options is correct here ... The answer has to be "precedence of + is higher than * " and "both * and + are right associative"
Here we will never come across an RR conflict because we dont have 2 productions with the same RHS but different LHS ...
EX : In the grammar,
S->A/a,
A->a
we have 2 productions with the same RHS (which is a) but different LHS (S and A) ... Now while parsing a string I might come across a single state with productions as A->a. and S->a. Now this state will create a conflict on whether should I reduce string "a" to S or A ... So clearly there is an RR conflict here ....
But in the given grammar it is not the case ...
While parsing a string say "num+num*num" from the above grammar,I will come across an SR conflict ... When ?? after scanning num+num , I have a choice on whether should I shift on * (as good as giving higher precedence to * over +) or reduce "num+num" to E (as good as giving higher precedence to + over *) ... So here there is an SR conflict ...
YACC tool always goes in-favour of SHIFT incase of SR conflict (and first reduce incase of RR conflict) ...
So,since we are using YACC to resolve conflicts, here + will be given higher precedence over * but incase if we come across a string like 2+3+5 , it will be right associative ...
None of the Options is correct here ...