What this Python language-knowledge question tests
This is a medium-difficulty Python question that probes your understanding of how built-in functions interact and how Python evaluates expressions in sequence. It rewards careful attention to function behavior and type handling rather than memorization.
To solve it, you need to trace through the evaluation step by step: understand what round() returns, how range() interprets its arguments, and what the + operator does when applied to the result. The question tests whether you can predict output without running the code—a skill that matters when debugging or reasoning about edge cases in live trading systems.
- Built-in function return types and their constraints
- Operator overloading and type coercion in Python
- Expression evaluation order