|Que.||The grammar ‘G1’
S ---> OSO| ISI | 0|1|∈
and the grammar ‘G2’ is
S ---> as |asb| X,
X -----> Xa | a.
Which is the correct statement ?
|a.||G1 is ambiguous, G2 is unambiguous|
|b.||G1 is unambiguous, G2 is ambiguous|
|c.||Both G1 and G2 are ambiguous|
|d.||Both G1 and G2 are unambiguous|
Answer:G1 is unambiguous, G2 is ambiguous