COMPILER DESIGN

CODE GENERATION

ROLE OF CODE GENERATION

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
High and low-level programming languages can be understood by a computer.
A
False
B
True
C
Either A or B
D
None of the above
Explanation: 

Detailed explanation-1: -Low level languages are the basic computer instructions or better known as machine codes. A computer cannot understand any instruction given to it by the user in English or any other high level language. These low level languages are very easily understandable by the machine.

Detailed explanation-2: -A high-level language cannot be understood directly by a computer, and it needs to be translated into machine code. There are two ways to do this, and they are related to how the program is executed: a high-level language can be compiled or interpreted.

Detailed explanation-3: -Low-level languages are languages that sit close to the computer’s instruction set . An instruction set is the set of instructions that the processor understands. Two types of low-level language are: machine code.

There is 1 question to complete.