Correct option is C
The correct answer is (c) compiler.
- A high-level source program is written in a programming language like C, Java, or Python, which is human-readable but not directly understandable by a machine.
- To execute such a program, it must be translated into machine code (binary instructions) that the computer's hardware can understand.
- This translation is done by a software tool called a compiler.
Explanation of Other Options:
- Debugger: A debugger is a tool used to identify and fix errors or bugs in a program. It does not translate high-level code into machine code.
- Assembler: An assembler translates assembly language (a low-level language) into machine code, not high-level source programs.
- Controller refers to hardware or software components that manage a device or process. It is unrelated to translating source programs.
Additional Information:
How a Compiler Works:
- A compiler reads the source code, translates it into machine code (or an intermediate representation), and creates an executable file.
- Example compilers: GCC for C/C++, javac for Java.
Difference Between Compiler and Interpreter:
- A compiler translates the entire program at once, whereas an interpreter translates and executes the program line by line.