Class 6 Chapter 1 Computer
Class 6 Chapter 1 Computer
4. Which of the following does not translate the entire program at once?
4. A/AN interpreter converts a high-level language program into machine language, line-by-line.
Machine language is the only language that a computer directly understands. They are made of
binary numbers, represented by 1s and 0s. Programs can be executed directly in machine
language.
Interpreter Compiler
It translates a program line-by-line It translates the entire program into
machine language at once.
It takes more time. It takes less time to compile source code.
If there are any syntax errors in the source All syntax errors are displayed after entire
program, program statement is interpreted. program is checked.