COMPUTER PROGRAMMING FUNDAMENTALS
PROGRAMMING LANGUAGES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
A program to convert assembly language programs into machine language.
|
|
A program that translates a high level language into machine language at once.
|
|
A program that translates a high level language into machine language and executes it line by line.
|
|
None of the above
|
Detailed explanation-1: -In computer science, an interpreter is a computer program that directly executes instructions written in a programming or scripting language, without requiring them previously to have been compiled into a machine language program.
Detailed explanation-2: -A program that converts a high-level language source file into a machine-language file is called a compiler.
Detailed explanation-3: -A compiler is a translator program which translates a high level programming language into equivalent machine language programs.
Detailed explanation-4: -Interpreters and translators convert information from one language into another language. Interpreters work in spoken or sign language; translators work in written language.
Detailed explanation-5: -An interpreter is a computer program, which converts each high-level program statement into the machine code. This includes source code, pre-compiled code, and scripts. Both compiler and interpreters do the same job which is converting higher level programming language to machine code.