Computer Science EngineeringHardISRO SC

Consider the grammar S -> A a | b A c | d c | b d a; A -> d. The number of terminals (including the end marker $) in FOLLOW(A) is

  1. A. 2
  2. B. 3
  3. C. 1
  4. D. 4

Correct answer: A. 2

Computed from FOLLOW propagation: FOLLOW(A) = {a, c}.

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

Exams that ask this topic