Question
E -> E * F | F+E | F
F -> F-F | id
which of the following is true?
a.
* has higher precedence than +
b.
– has higher precedence than *
c.
+ and — have same precedence
d.
+ has higher precedence than *
Posted under Compiler Design
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. Given the following expression grammar: E -> E * F | F+E | F F -> F-F | id which of the following is true?
Similar Questions
Discover Related MCQs
Q. Compute E.value for the root of the parse tree for the expression:2 # 3 & 5 # 6 &4.
View solution
Q. Which of the following grammar rules violate the requirements of an operator grammar?
(i) P -> QR
(ii) P -> QsR
(iii) P -> ε
(iV) P -> QtRr
View solution
Q. The process of assigning load addresses to the various parts of the program and adjusting the code and data in the program to reflect the assigned addresses is called
View solution
Q. Which of the following derivations does a top-down parser use while parsing an input string?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Compiler Design? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!