1.

If a state does not know whether it will make a shift operation or reduction for a terminal is called _________(a) Shift/reduce conflict(b) Reduce /shift conflict(c) Shift conflict(d) Reduce conflictThe question was asked at a job interview.I'm obligated to ask this question of LR Parser in section Bottom Up Parsing of Compiler

Answer»

Correct OPTION is (a) Shift/REDUCE CONFLICT

For explanation: As the name SUGGESTS that the conflict is between shift and reduce HENCE it is called shift reduce conflict.



Discussion

No Comment Found

Related InterviewSolutions