Definition

A translator converts a program from one language to another. The three core types differ in when and how translation happens.

Key Points

Example

📌 CSS Frequency: Conceptual, asked almost every year as a short/definition-type question (2–5 marks).

Model Answer (short)

"A compiler translates the whole source program into machine code before execution, giving faster runtime but slower initial translation and error detection only after a full scan. An interpreter translates and executes statement-by-statement, giving immediate error feedback but slower execution. An assembler performs a near one-to-one translation of assembly mnemonics into machine code, unlike the compiler's semantic transformation from high-level constructs."