Correct option is B
The correct answer is (b) Interpreter.
An interpreter is a system program that reads, translates, and executes one instruction at a time from a high-level programming language into machine code.
Unlike a compiler, which translates the entire program before execution, the interpreter works line-by-line, making it suitable for real-time execution and debugging.
Information Booster:
Interpreter: Executes source code line by line (e.g., Python, JavaScript).
Compiler: Converts the whole source code into machine code before execution (e.g., C, C++).
Assembler: Converts assembly language into machine code.
Operating System: Manages hardware and software resources; not directly responsible for code translation.
Additional Information:
Program Type | Function | Examples |
---|---|---|
Interpreter | Translates & executes line-by-line | Python Interpreter |
Compiler | Translates entire code before execution | GCC (GNU Compiler) |
Assembler | Converts assembly code to machine code | NASM, MASM |
Operating System | Manages system resources | Windows, Linux, macOS |