What is the primary difference between compiled and interpreted languages?
A
Compiled languages translate entire code before execution; interpreted languages execute line by line
B
Compiled languages are always slower
C
Interpreted languages cannot handle loops
D
Compiled languages do not require syntax
Correct Answer: Option A — Compiled languages translate entire code before execution; interpreted languages execute line by line
Explanation:
Compiled languages translate the entire source code into machine code before execution using a compiler, resulting in a standalone executabl...
Compiled languages translate the entire source code into machine code before execution using a compiler, resulting in a standalone executable. Interpreted languages, however, execute code line by line at runtime through an interpreter, without prior full translation.