Given the following expression grammar:
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 *
Correct answer is option 'B'. Can you explain this answer?
Related Test: Test: Top Down Parsing

Computer Science Engineering (CSE) Question

Can you answer this question?

People are searching for an answer to this question.
This discussion on Given the following expression grammar:E -> E * F | F + E | FF -> F - F | idwhich of the following is true?a)* has higher precedence than +b)– has higher precedence than *c)+ and — have same precedenced)+ has higher precedence than *Correct answer is option 'B'. Can you explain this answer? is done on EduRev Study Group by Computer Science Engineering (CSE) Students. The Questions and Answers of Given the following expression grammar:E -> E * F | F + E | FF -> F - F | idwhich of the following is true?a)* has higher precedence than +b)– has higher precedence than *c)+ and — have same precedenced)+ has higher precedence than *Correct answer is option 'B'. Can you explain this answer? are solved by group of students and teacher of Computer Science Engineering (CSE), which is also the largest student community of Computer Science Engineering (CSE). If the answer is not available please wait for a while and a community member will probably answer this soon. You can study other questions, MCQs, videos and tests for Computer Science Engineering (CSE) on EduRev and even discuss your questions like Given the following expression grammar:E -> E * F | F + E | FF -> F - F | idwhich of the following is true?a)* has higher precedence than +b)– has higher precedence than *c)+ and — have same precedenced)+ has higher precedence than *Correct answer is option 'B'. Can you explain this answer? over here on EduRev! Apart from being the largest Computer Science Engineering (CSE) community, EduRev has the largest solved Question bank for Computer Science Engineering (CSE).
Ask a question

Share with a friend

Related Content

Upgrade to Infinity