FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

PROGRAMMING LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Describe the purpose of assemblers
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: -The assembler is a program that translates the mnemonics/ assembly language into machine language (0’s and 1’s) and stores it into the memory. Compiler: The compiler reads the whole program written in High-level language, first and translates into the object code that is executed by the microprocessor.

Detailed explanation-2: -Assembly code is converted into executable machine code by a utility program referred to as an assembler.

Detailed explanation-3: -The purpose of an assembler is to translate assembly language into object code. Whereas compilers and interpreters generate many machine code instructions for each high-level instruction, assemblers create one machine code instruction for each assembly instruction.

Detailed explanation-4: -An assembler converts assembly language into machine language. A disassembler converts machine language into assembly.

Detailed explanation-5: -Since the assembly language code uses mnemonics which isn’t understandable by the CPU directly, it needs a translator to convert mnemonic codes(assembly language code) into machine language(machine or object or binary code). It is done with the help of a compiler known as assembler.

There is 1 question to complete.