Consider the given syntax tree. Assume that division has the lowest precedence than addition, subtraction and multiplication. Addition and subtraction have the same precedence but more than multiplication. Which of the following expression can be given by the following syntax tree?

A. [5 / (p + q) * (q - r)]
B. [5 * (p + q) / (q - r)]
C. [5 + (p + q) * (q - r)]
D. [5 / (p + q) + (q - r)]
Answer: Option A
Join The Discussion