Given the following expression grammar: E → E ∗ F ∣ F + E ∣ F F → F − F ∣ id…

PYQ TPSC Computer/IT Posts 2025

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 713 students.

Sign up free to check your answer

Sign up free

Explore the full course: Tpsc Assistant Technical Officer

Loading lesson…