Difficulty: Easy
Correct Answer: A-2, B-3, C-4, D-1
Explanation:
Introduction / Context:
Coding and math evaluation rules share a universal theme: parentheses first, then powers, then multiply/divide, and finally add/subtract. This item verifies your grasp of precedence in a BASIC-style hierarchy.
Given Data / Assumptions:
Concept / Approach:
The canonical order is: parentheses → exponentiation → multiplication/division → addition/subtraction. We simply map each category to its ordinal rank.
Step-by-Step Solution:
Verification / Alternative check:
Evaluate 2 + 3 * 4^2: parentheses first (none), exponent first (4^2=16), then multiply (3*16=48), finally add (2+48=50). This matches the mapped precedence.
Why Other Options Are Wrong:
Common Pitfalls:
Forgetting that nested parentheses are evaluated from the innermost outward, and confusing right-associative exponentiation behavior in some languages (which does not change its rank versus * and +).
Final Answer:
A-2, B-3, C-4, D-1
Discussion & Comments