MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

SYSTEM SOFTWARE

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Fill in the blank. ____ translate the whole program as an object code at once.
A
Compilers
B
Interpreters
C
Translator
D
None of the above
Explanation: 

Detailed explanation-1: -Answer. The language processor that reads the complete source program written in high level language as a whole in one go and translates it into an equivalent program in machine language is called as a Compiler. In a compiler, the source code is translated to object code successfully if it is free of errors.

Detailed explanation-2: -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-3: -Detailed Solution. The correct answer is Compiler. A compiler takes the program code (source code) and converts the source code to a machine language module (called an object file).

Detailed explanation-4: -Compilers often translate source code for a high-level language, such as C++, to object code for the current computer architecture, such as Intel x64. The object modules produced from multiple high-level language files are then linked into an executable file.

Detailed explanation-5: -A compiler takes the source code as a whole and translates it into object code all in one go. Once converted, the object code can be run at any time. This process is called compilation . All of the object files used in a program must be combined before the program can be run.

There is 1 question to complete.