Computer PPSC
A computer program that translates one program instruction at a time into machine language is called a/an:
Show answer
Correct answer: A) Interpreter
An interpreter translates high-level program instructions into machine language one instruction at a time and executes each instruction immediately. This differs from a compiler, which translates the entire program into machine code at once before execution.
Related facts:
A compiler translates the whole program before it runs.
Python and JavaScript are commonly executed using interpreters.
Interpreted programs generally run more slowly than compiled programs.
Exam tip: This is a commonly tested basic fact — remember 'one at a time' = interpreter, 'whole program at once' = compiler.
Explanation
An interpreter translates high-level program instructions into machine language one instruction at a time and executes each instruction immediately. This differs from a compiler, which translates the entire program into machine code at once before execution.
Related facts:
A compiler translates the whole program before it runs.
Python and JavaScript are commonly executed using interpreters.
Interpreted programs generally run more slowly than compiled programs.
Exam tip: This is a commonly tested basic fact — remember 'one at a time' = interpreter, 'whole program at once' = compiler.