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 CTo 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…

  1. A.

    A B C * -

  2. B.

    - A * B C

  3. C.

    * - A B C

  4. 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.

Explore the full course: Btsc Lab Assistant

Loading lesson…