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

  1. A.

    * has higher precedence than +

  2. B.

    - has higher precedence than *

  3. C.

    + and - have same precedence

  4. D.

    + has higher precedence than *

Attempted by 505 students.

Sign up free to check your answer

Sign up free

Explore the full course: Tpsc Assistant Technical Officer

Loading lesson…