FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

PROGRAMMING LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Describe the purpose of a translator
A
To convert programming code into machine code. The programming code could be high level source code or low level assembly instructions.
B
Converts assembly code into machine code.
C
Converts programs written in a high-level language into machine code instructions.
D
Converts source code into machine code instructions and execute those instructions immediately, line by line.
Explanation: 

Detailed explanation-1: -Language translators allow computer programmers to write sets of instructions in specific programming languages. These instructions are converted by the language translator into machine code. The computer system then reads these machine code instructions and executes them.

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: -Answer: Programs written in the machine language of a given type of computer can be directly executed by the CPU of that type of computer. High-level language programs must be translated into machine language before they can be executed.

Detailed explanation-4: -Compiler. A Compiler is a computer program that translates code written in a high level language to a lower level language, object/machine code.

There is 1 question to complete.