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 translation scheme. S → ER R → *E{print("*");}R | ε E → F + E {print("+");} | F F → (S) | id {print(id.value);} Here id is a token that represents an integer and id.value represents the corresponding integer value. For an input '2 * 3 + 4', this translation scheme prints
a. 2 * 3 + 4
b. 2 * +3 4
c. 2 3 * 4 +
d. 2 3 4+*
Answer:2 3 4+*
Confused About the Answer? Ask for Details Here
Know Explanation? Add it Here

Similar Questions: