Skip to content
Sign in
Assistant (2020) PPSC

Which program is used to convert a high-level programming language to low-level machine code?

Tap an option to check the answer. You can also press A–D.

Explanation
A compiler is a program that translates a high-level programming language (such as C, Java, or Python) into low-level machine code that the computer's processor can execute directly. Related facts: An assembler only translates low-level assembly language into machine code, not high-level languages. A compiler translates the whole program at once before execution; an interpreter translates and runs code line by line. Machine code consists of binary instructions (0s and 1s) understood directly by the CPU. Exam tip: This is a commonly tested basic fact in PPSC and FPSC computer sections: compiler = high-level language to machine code; assembler = assembly language to machine code.