The postfix form of the expression (A + B) * (C * D ‐ E) * F / G is _______ .

2021

The postfix form of the expression (A + B) * (C * D ‐ E) * F / G is _______ .

  1. A.

    A B + C D * E – F G / * *

  2. B.

    A B + C D * E – F * * G /

  3. C.

    A B + C D * E – * F * G /

  4. D.

    A B + C D E * – * F * G /

Attempted by 616 students.

Show answer & explanation

Correct answer: C

Final postfix form: A B + C D * E - * F * G /

  1. Convert the first parenthesis: (A + B) → A B +.

  2. Convert the second parenthesis: (C * D - E). First C * D → C D *; then subtract E → C D * E -.

  3. Multiply the results of the two parenthesized parts: A B + C D * E - *.

  4. Multiply that product by F: A B + C D * E - * F *.

  5. Finally divide the whole result by G: A B + C D * E - * F * G /.

Note: Parentheses determine the grouping; perform each parenthesized conversion first, then apply multiplication and division from left to right on the resulting operands.

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

Explore the full course: Coding For Placement