Podcast
Questions and Answers
Which of the following best describes the role of an interpreter in programming?
Which of the following best describes the role of an interpreter in programming?
- An interpreter is a program that translates the source code of a programming language into machine language before executing it.
- An interpreter is a program that compiles the source code of a programming language into an executable file before it is executed.
- An interpreter is a program that directly executes the source code of a programming language without the need to compile it first. (correct)
- An interpreter is a program that debugs the source code of a programming language for errors before it is executed.
Which of the following best describes the role of a compiler in programming?
Which of the following best describes the role of a compiler in programming?
- A compiler is a program that directly executes the source code of a programming language without the need to compile it first.
- A compiler is a program that debugs the source code of a programming language for errors before it is executed.
- A compiler is a program that translates the source code of a programming language into machine language before executing it. (correct)
- A compiler is a program that compiles the source code of a programming language into a plain text file.