Solved

The Grammar Whose Productions Are

Question 7

Multiple Choice

The grammar whose productions are
? if id then
? if id then else
? id := id
Is ambiguous because
A- the sentence if a then if b then c:= d has two parse trees
B- the left most and right most derivations of the sentence if a then if b then c:= d give rise to different parse trees
C- the sentence if a then if b then c:= d else c:= f has more than two parse trees
D- the sentence if a then if b then c:= d else c:= f has two parse trees


A) a
B) b
C) c
D) d

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents