1.

Consider the following statements about the context-free grammar: G = { S SS, S ab, S ba, S } 1. G is ambiguous. 2. G produces all strings with equal number of a's and b's. 3. G can be accepted by a deterministic PDA. Which combination below expresses all the true statements about G?

A. 1 only
B. 1 and 3
C. 2 and 3
D. 1, 2 and 3
Answer» C. 2 and 3


Discussion

No Comment Found

Related MCQs