A directory of Objective Type Questions covering all the Computer Science subjects. Here you can access and discuss Multiple choice questions and answers for various compitative exams and interviews.

Discussion Forum

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

Similar Questions:



View All Questions on: Theory of Computation(TOC)


Start The Conversation: