Which of the following prefix expressions is obtained on converting the infix…
2017
Which of the following prefix expressions is obtained on converting the infix expression A * ( B - C )?
Answer: D. * A - B C — To convert the infix expression A * ( B - C ) to prefix, solve the parentheses first: (B - C) becomes -BC. Next, apply the multiplication operator to A and…
- A.
A B C * -
- B.
- A * B C
- C.
* - A B C
- D.
* A - B C
Attempted by 411 students.
Show answer & explanation
Correct answer: D
To convert the infix expression A * ( B - C ) to prefix, solve the parentheses first: (B - C) becomes -BC. Next, apply the multiplication operator to A and (-BC), placing the operator at the front: *A-BC. Therefore, the correct option is D.
Loading lesson…