H13-311_V3.5 · Question #145
Python script execution mode includes interactive mode and script mode
The correct answer is A. True. A (True) is correct because Python genuinely supports two primary execution modes: interactive mode (the REPL, launched by running python with no arguments) where code is entered and executed line-by-line, and script mode where Python runs a .py file from start to finish (e.g…
Question
Python script execution mode includes interactive mode and script mode
Options
- ATrue
- BFalse
How the community answered
(28 responses)- A75% (21)
- B25% (7)
Explanation
A (True) is correct because Python genuinely supports two primary execution modes: interactive mode (the REPL, launched by running python with no arguments) where code is entered and executed line-by-line, and script mode where Python runs a .py file from start to finish (e.g., python my_script.py).
There is no distractor to refute here since this is a True/False question - choosing B (False) would be wrong because it contradicts Python's documented behavior; both modes exist and are used daily by Python developers.
Memory tip: Think of the two modes like two ways to talk to Python - interactive mode is a live conversation (type a line, get a response), while script mode is handing Python a written letter to read all at once.
Topics
Community Discussion
No community discussion yet for this question.