Skip to content
Gatebreaker

Learn

  • Dashboard
  • Syllabus
  • Questions
  • PYQ Bank
  • Tests
  • Mocks

Improve

Community

Me

You are browsing as a guest. Sign in to attempt questions and track your preparation.

Create free account

Questions

Sign inCreate account

70days to GATE 2027

Exam date 6 Feb 2027

Back to list
1 of 2 PrevNext

Compiler Design › ParsingGATE CSE 2026 Set 2, Q31

MCQMediumPYQ 20262 marks · −0.67 if wrong

Consider the canonical LR(0)L R(0)LR(0) parsing of the grammar below using terminals {a,b,c}\{a, b, c\}{a,b,c} and non-terminals {A,B,C,S}\{A, B, C, S\}{A,B,C,S} with SSS as the start symbol.

S→ACBA→aA∣ϵC→cC∣ϵB→bB∣b\begin{array}{l} S \rightarrow A C B \\ A \rightarrow a A \mid \epsilon \\ C \rightarrow c C \mid \epsilon \\ B \rightarrow b B \mid b \end{array}S→ACBA→aA∣ϵC→cC∣ϵB→bB∣b​

Which one of the following options gives the number of shift-reduce conflicts that will occur in the LR(0)L R(0)LR(0) ACTION table?

Pick an answer, then press Check. You will be asked to sign in first.