Explanation:
A compiler is a program that converts a high-level language (such as C, Java, or Python) into machine language (binary code) so that the computer can execute it. The compilation process happens before execution and translates the entire code at once.
Other Options Explained:
- (A) Linker β Combines multiple object files into a single executable file.
- (B) Assembler β Converts assembly language (low-level) into machine code, not high-level language.
- (C) Interpreter β Translates and executes line by line, unlike a compiler which translates the entire program at once.
Thus, the correct answer is (D) Compiler.
Explanation by: Mr. Dubey
A compiler is a program that converts a high-level language (such as C, Java, or Python) into machine language (binary code) so that the computer can execute it. The compilation process happens before execution and translates the entire code at once.
Other Options Explained:
- (A) Linker β Combines multiple object files into a single executable file.
- (B) Assembler β Converts assembly language (low-level) into machine code, not high-level language.
- (C) Interpreter β Translates and executes line by line, unlike a compiler which translates the entire program at once.
Thus, the correct answer is (D) Compiler.