Comprehensive and Detailed Explanation From Exact Extract:
An interpreted language is executed directly by an interpreter, which reads and executes the source code line by line without requiring a separate compilation step. According to foundational programming principles, this allows for flexibility, such as running code interactively or one statement at a time.
Option A: "Generates syntax errors during compilation." This is incorrect. Interpreted languages (e.g., Python, JavaScript) do not undergo a compilation phase. Syntax errors are detected during execution by the interpreter, not during a compilation step.
Option B: "Can be run by a user one statement at a time." This is correct. Interpreted languages often support interactive execution, where users can input and execute code one statement at a time (e.g., in Python’s REPL or JavaScript’s browser console). This is a hallmark of interpreters.
Option C: "Has a programmer writing machine code." This is incorrect. No high-level programming language, interpreted or compiled, requires programmers to write machine code. Interpreted languages use high-level source code executed by an interpreter.
Option D: "Is restricted to running on one machine." This is incorrect. Interpreted languages are typically portable across machines, as long as the interpreter is available (e.g., Python runs on Windows, macOS, and Linux with the same source code).
Certiport Scripting and Programming Foundations Study Guide (Section on Interpreted Languages).
Python Documentation: “Interactive Mode”
W3Schools: “JavaScript Introduction”