COMPUTER FUNDAMENTALS

COMPUTER SOFTWARE

PROGRAMMING LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which type of major language translator executes a program directly?
A
Interpreter
B
Compiler
C
Either A or B
D
None of the above
Explanation: 

Detailed explanation-1: -Compilers. Compilers translate an entire computer program into machine language before execution. Interpreters. Interpreters, on the other hand, translate programs one line at a time during execution.

Detailed explanation-2: -Programming languages that use interpreters include Python, Ruby, and JavaScript, while programming languages that use compilers include Java, C++, and C.

Detailed explanation-3: -Interpreter − An interpreter is a program that executes the programming code directly rather than only translating it into another format.

Detailed explanation-4: -An interpreter translates code like a compiler but reads the code and immediately executes on that code, and therefore is initially faster than a compiler. Thus, interpreters are often used in software development tools as debugging tools, as they can execute a single in of code at a time.

Detailed explanation-5: -compilers. interpreters. assemblers.

There is 1 question to complete.