Consider the following grammar S → Aa | bAc | dc | bda A → d Which one of the…

Consider the following grammar

S → Aa | bAc | dc | bda

A → d

Which one of the following represents first(S) and follow (A) respectively?

  1. A.

    {c} , {b, d}

  2. B.

    {b}, {c}

  3. C.

    {d}, {c}

  4. D.

    {b, d} {c, a}

Attempted by 399 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…