PCEP-30-02 · Question #131
What do you call a command-line interpreter which lets you interact with your OS and execute Python commands and scripts?
The correct answer is A. A console. A console (A) is a command-line interface that lets you type commands directly to the OS and execute Python code interactively - this matches the definition exactly, making it correct. A compiler (B) translates source code into machine code as a batch process; it doesn't…
Question
Options
- AA console
- BA compiler
- CJython
- DAn editor
How the community answered
(57 responses)- A72% (41)
- B7% (4)
- C4% (2)
- D18% (10)
Explanation
A console (A) is a command-line interface that lets you type commands directly to the OS and execute Python code interactively - this matches the definition exactly, making it correct. A compiler (B) translates source code into machine code as a batch process; it doesn't provide an interactive command-line environment. Jython (C) is a Python implementation that runs on the Java Virtual Machine - it's a runtime/dialect, not a general term for a command-line interpreter. An editor (D) is a tool for writing and modifying code, not for executing commands or scripts interactively.
Memory tip: Think "console = conversation" - a console lets you converse with your OS in real time, one command at a time, just like Python's interactive shell prompt (>>>).
Community Discussion
No community discussion yet for this question.