What determines the order of evaluation of a prefix expression?

2025

What determines the order of evaluation of a prefix expression?

  1. A.

    precedence and associativity

  2. B.

    precedence only

  3. C.

    associativity only

  4. D.

    depends on the parser

Attempted by 439 students.

Show answer & explanation

Correct answer: A

Answer: a

Explanation: Precedence is a very important factor in determining the order of evaluation. If two operators have the same precedence, associativity comes into action.

Explore the full course: Accenture Preparation