MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

COMPUTER ARCHITECTURE

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
____ are used to translate high level language programs into machine code
A
Assemblers
B
Compilers
C
Interpreters
D
None of these
Explanation: 

Detailed explanation-1: -A compiler is a computer program that translates a program written in a high-level language to the machine language of a computer. The compiler is used to translate source code into machine code or compiled code.

Detailed explanation-2: -A compiler is a translator program that converts a high-level language source program into a machine language object program.

Detailed explanation-3: -Compiler. Compilers are used to translate a program written in a high-level language into machine code (object code). Once compiled (all in one go), the translated program file can then be directly used by the computer and is independently executable.

Detailed explanation-4: -Compilers convert high-level language code to machine (object) code in one session. Compilers can take a while, because they have to translate high-level code to lower-level machine language all at once and then save the executable object code to memory.

Detailed explanation-5: -The compiler is used to translate source code into machine code or compiled code. This does not yet use any of the input data. When the compiled code is executed, referred to as ‘running the program, ’ the program processes the input data to produce the desired output.

There is 1 question to complete.