Computer Science EngineeringHard

An LL(1) grammar has 4 non-terminals and 5 terminals. The predictive parsing table (with the end marker $ as an extra column) has how many entries?

  1. A. 20
  2. B. 24
  3. C. 30
  4. D. 9

Correct answer: B. 24

The table has 4 rows and 5 + 1 = 6 columns, so 24 entries.

More Theory of Computation, Compilers & Digital Logic (ISRO CS) questions

Exams that ask this topic