asked 1.9k views
3 votes
Which of the following is a software package that translates and runs a high-level language program one line at a time? Select one.

A. Compiler
B. Interpreter
C. Assembler
D. Run-time program

asked
User MrSponge
by
8.5k points

1 Answer

4 votes

Answer:

B.

Step-by-step explanation:

An interpreter is a software package that translates and runs a high-level language program one line at a time. An interpreter reads each line of code and executes it immediately, unlike a compiler, which translates an entire program into machine code before it can be executed. This approach allows for quicker debugging and faster development, as changes to the code can be tested immediately. However, interpretation can be slower than compilation for large programs or programs that require high performance, which is why some languages can be compiled or interpreted depending on the user's needs.

answered
User Domusvita
by
7.5k points