Which is the correct statement(s) for Non Recursive predictive parser ? S1 :…

PYQ UGC NET 2013

Which is the correct statement(s) for Non Recursive predictive parser ?

S1 : First(α) = {t| α ⇒* tβ for some string β} ⇒* tβ

S2 : Follow(X)={ a| S ⇒* αXaβ for some strings α and β}

  1. A.

    Both statements S1 and S2 are

    incorrect.

  2. B.

    S1 is incorrect and S2 is

    correct.

  3. C.

    S1 is correct and S2 is

    incorrect.

  4. D.

    Both statements S1 and S2 are

    correct.

Attempted by 149 students.

Sign up free to check your answer

Sign up free

Explore the full course: Nta Ugc Net Paper 2

Loading lesson…