Which of the following statements is/are true?
["C"]
Step-by-Step Solution
Insight: LL(1) parsers are predictive and non-backtracking. They require grammars to be free of left recursion and left-factored to avoid FIRST set conflicts.
Exam route: Evaluate each statement against the core properties of LL(1) grammars and parser hierarchy.
Learning route:
Step 1: Evaluate Option A. LL(1) parsers are predictive; they use the parsing table to make deterministic choices without backtracking. FALSE.
Step 2: Evaluate Option B. Left recursion causes infinite loops in top-down parsing and guarantees FIRST-FIRST conflicts. It must be eliminated, not required. FALSE.
Step 3: Evaluate Option C. If a grammar has common prefixes (e.g., ), their FIRST sets will overlap, violating the LL(1) disjointness condition. Left factoring is the necessary transformation to resolve this. TRUE.
Step 4: Evaluate Option D. The parser power hierarchy is LL(1) SLR LALR CLR. SLR is strictly more powerful than LL(1). FALSE.
Conclusion: Only Option C is true.