Given the following prefix expression : * + 3 + 3 ↑ 3 + 3 3 3 What is the…
2016
Given the following prefix expression :
* + 3 + 3 ↑ 3 + 3 3 3
What is the value of the prefix expression ?
Answer: C. 2205 — Solution: Evaluate the prefix expression step by step. Write the tokens in prefix order: * + 3 + 3 ↑ 3 + 3 3 3 Evaluate the innermost addition: + 3 3 = 6.…
- A.
2178
- B.
2199
- C.
2205
- D.
2232
Attempted by 321 students.
Show answer & explanation
Correct answer: C
Solution: Evaluate the prefix expression step by step.
Write the tokens in prefix order: * + 3 + 3 ↑ 3 + 3 3 3
Evaluate the innermost addition: + 3 3 = 6.
Evaluate the exponent using that result: ↑ 3 6 = 3^6 = 729.
Evaluate the next addition: + 3 729 = 732.
Evaluate the next addition: + 3 732 = 735.
Multiply the two operands of the initial *: * 735 3 = 735 × 3 = 2205.
Final answer: 2205
Loading lesson…