Syntax Analysis questions

Q28

GATE CS 2026 CS-1ParsingMSQ1 mark
Which of the following statements is/are true?
More than one option can be correct.
Show answer without attempting

Answer: C

Q41

GATE CS 2026 CS-2ParsingMCQ2 marks−2/3 if wrong
Consider the canonical LR(0)LR(0) parsing of the grammar below using terminals {a,b,c}\{a, b, c\} and non-terminals {A,B,C,S}\{A, B, C, S\} with SS as the start symbol.

S→ACBS \rightarrow ACB

A→aA∣ϵA \rightarrow aA \mid \epsilon

C→cC∣ϵC \rightarrow cC \mid \epsilon

B→bB∣bB \rightarrow bB \mid b

Which one of the following options gives the number of shift-reduce conflicts that will occur in the LR(0)LR(0) ACTION table?
Show answer without attempting

Answer: D

0/20 correct0 marks