FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

PROGRAMMING LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Assembly code does not have to be translated into machine code before it can be executed
A
True
B
False
C
Either A or B
D
None of the above
Explanation: 

Detailed explanation-1: -Assembly language is a low-level programming language . It equates to machine code but is more readable. It can be directly translated into machine code, but it uses mnemonics to represent the instructions to make it easier to understand.

Detailed explanation-2: -Because machine code instructions are the only ones the CPU can execute, the source code for ALL other programming languages must be converted into machine code before it can be executed. This translation is carried out by special programs called compilers, translators or assemblers.

Detailed explanation-3: -The Assembler (a program) translates assembly code into machine code. Assembler language is just a more readable version of machine language (machine language in symbolic form instead of binary form). You write Assembly code; Assembler translates it into machine code; Control unit runs machine code.

Detailed explanation-4: -An assembler is a program that reads assembly language commands and translates then into a sequence of binary instructions, addresses and data values that is called machine code. The machine code is stored in the computer’s memory and can be executed by the computer at some later time.

There is 1 question to complete.