Question Detail

COM 101 Computer Software and Programming Languages Objective Question

Question

How does an interpreter translate a high-level language program?
Options
A It converts the whole program to machine language at once.
B It converts the program to machine language line by line.
Correct Answer
C It converts assembly language to machine language.
D It manages the execution of other programs.
Correct Answer

Option B is the correct answer.

Detailed Explanation

An interpreter is defined as a language translator that converts a high-level language program to machine language line by line, executing each line as it is translated.

Hint

This translator reads and executes the source code one statement at a time.

Question Info