System software that translates high-level language into machine code is called
AWord processor
BAssembly language
CSpreadsheet
DCompiler
Answer:
D. Compiler
Read Explanation:
- Compiler is a type of system software that translates source code written in a high-level programming language (such as C, C++, or Java) into machine code (binary) that a computer's processor can execute directly.
- Key characteristics of Compilers:
- It translates the entire source code at once before execution.
- It generates an executable file (e.g., .exe in Windows), which runs faster during execution.
- It performs comprehensive error checking during the compilation process.
- Distinction from Interpreters:
- An Interpreter translates and executes code line-by-line or statement-by-statement.
- Interpreters do not create a separate executable file, making them generally slower during execution compared to compiled code.
- Examples of interpreted languages include Python, JavaScript, and Ruby.
- Assembler: This is another type of translator used specifically to convert Assembly Language (low-level, mnemonic-based) into machine code.
- Source Code vs. Object Code: The original code written by a programmer is known as Source Code, while the output produced by the compiler is called Object Code or Machine Code.
- Compilation Stages: The process typically involves several phases: Lexical Analysis, Syntax Analysis, Semantic Analysis, Intermediate Code Generation, Code Optimization, and finally, Code Generation.
