M
Q. The grammar whose productions are
<stmt> → if id then <stmt>
<stmt> → if id then <stmt> else <stmt>
<stmt> → 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
Related MCQs
Q. Which of the following runs on Xen Hypervisor?
Q. A parallel algorithm is evaluated by its runtime in function of
Q. A set of ________ models are used to approach a complex system.
Q. What is the primary difference between a pivot table report and a cross tab query?
Q. The main organizational justification for implementing a data warehouse is to provide__________.
Q. In protocol the information is directly written into the main memory.
Q. The following devices can be used to input data into a database
Discusssion
Login to discuss.