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. Consider the following grammar.

S -> S * E
S -> E
E -> F + E
E -> F
F -> id

Consider the following LR(0) items corresponding to the grammar above.

(i) S -> S * .E
(ii) E -> F. + E
(iii) E -> F + .E

Given the items above, which two of them will appear in the same set in the canonical sets-of-items for the grammar?
a. (i) and (ii)
b. (ii) and (iii)
c. (i) and (iii)
d. None of the above
Answer:None of the above
Confused About the Answer? Ask for Details Here
Know Explanation? Add it Here

Similar Questions: