Given the following expression grammar: E → E ∗ F ∣ F + E ∣ F F → F − F ∣ id…
ISRO Scientist/Engineer SC · 2015 · Computer ScienceModified — slightly modified from the official paper; see the solutionTPSC Computer/IT Posts · 2025 · Senior Informatics Officer · Section DGATE · 2000 · CS · Question 2 subparts
Given the following expression grammar:
E → E ∗ F ∣ F + E ∣ F
F → F − F ∣ id
Which of the following is true? ISRO 2015
- A.
* has higher precedence than +
- B.
- has higher precedence than *
- C.
+ and - have same precedence
- D.
+ has higher precedence than *
Attempted by 505 students.
Sign up free to check your answer
Sign up freeLoading lesson…