Multiple choice

The infix expression A+(B-C)*D is correctly represented in prefix notation as

  1. A+B-C*D

  2. +A*-BCD

  3. A-B+C*D

  4. -A+*BCD

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Prefix notation places operators before operands. A+(B-C)D becomes A+(-BC)*D, then A+(-BCD), and finally +A*-BCD.