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. Given the following statements.

S1: The grammars S → asb | bsa |ss I a and s→ asb | bsa| a are not equivalent.
S2: The grammars S→. ss| sss | asb | bsa| λ and S → ss |asb |bsa| λ are equivalent.

Which of the following is true?
a. Sl is correct anet S2 is not correct
b. Both S1 and S2 are correct
c. S1 is not Correct and S2 is correct
d. Both S1 and S2 are not correct
Answer:Both S1 and S2 are correct
Confused About the Answer? Ask for Details Here
Know Explanation? Add it Here

Similar Questions: