Consider the following infix expression Q: ((A+B) * D) ↑ (E − F). The…

2025

Consider the following infix expression Q: ((A+B) * D) ↑ (E − F). The equivalent postfix expression of Q is

  1. A.

    A B + D * E F ↑ -

  2. B.

    A B + D * - ↑ E F

  3. C.

    A B + D E * F - ↑

  4. D.

    A B + D * E F - ↑

Attempted by 802 students.

Show answer & explanation

Correct answer: D

Solution:

Final postfix expression: A B + D * E F - ↑

  • Handle the parentheses first: (A+B) becomes A B + and (E−F) becomes E F -.

  • Multiply the left group by D: put the D after the left group's postfix to get A B + D *.

  • Apply the exponent: place the right group's postfix (E F -) and then the exponent operator, yielding A B + D * E F - ↑.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Coding For Placement