Assistant Director (2018) PPSC
What is the name of the software program that transforms high-level source code written in a high-level programming language into low-level object code in machine language?
Explanation
A compiler is a software program that translates the entire source code written in a high-level programming language (such as C or Java) into low-level object code or machine language in one step, producing an executable file. This differs from an interpreter, which translates and executes code line by line.
Related facts:
Python, Java and C++ are programming languages, not programs that translate code.
High-level languages are human-readable; machine language is the binary code the processor understands directly.
An assembler converts assembly language (a low-level language) into machine code.
Exam tip: This is a commonly tested basic fact in computer skills sections of PPSC and FPSC papers: compiler means whole-program translation, interpreter means line-by-line execution.