250+ TOP MCQs on Assembly Language and Answers

Computer Organization and Architecture Multiple Choice Questions on “Assembly Language”.

1. __________ converts the programs written in assembly language into machine instructions.
a) Machine compiler
b) Interpreter
c) Assembler
d) Converter

Answer: c
Clarification: An assembler is a software used to convert the programs into machine instructions.

2. The instructions like MOV or ADD are called as ______
a) OP-Code
b) Operators
c) Commands
d) None of the mentioned

Answer: a
Clarification: This OP – codes tell the system what operation to perform on the operands.

3. The alternate way of writing the instruction, ADD #5,R1 is ______
a) ADD [5],[R1];
b) ADDI 5,R1;
c) ADDIME 5,[R1];
d) There is no other way

Answer: b
Clarification: The ADDI instruction, means the addition is in immediate addressing mode.

4. Instructions which won’t appear in the object program are called as _____
a) Redundant instructions
b) Exceptions
c) Comments
d) Assembler Directives

Answer: d
Clarification: The directives help the program in getting compiled and hence won’t be there in the object code.

5. The assembler directive EQU, when used in the instruction: Sum EQU 200 does ________
a) Finds the first occurrence of Sum and assigns value 200 to it
b) Replaces every occurrence of Sum with 200
c) Re-assigns the address of Sum by adding 200 to its original address
d) Assigns 200 bytes of memory starting the location of Sum

Answer: b
Clarification: This basically is used to replace the variable with a constant value.

6. The purpose of the ORIGIN directive is __________
a) To indicate the starting position in memory, where the program block is to be stored
b) To indicate the starting of the computation code
c) To indicate the purpose of the code
d) To list the locations of all the registers used

  250+ TOP MCQs on PCI BUS and Answers

Answer: a
Clarification: This does the function similar to the main statement.

7. The directive used to perform initialization before the execution of the code is ______
a) Reserve
b) Store
c) Dataword
d) EQU

Answer: c
Clarification: None.

8. _____ directive is used to specify and assign the memory required for the block of code.
a) Allocate
b) Assign
c) Set
d) Reserve

Answer: d
Clarification: This instruction is used to allocate a block of memory and to store the object code of the program there.

9. _____ directive specifies the end of execution of a program.
a) End
b) Return
c) Stop
d) Terminate

Answer: b
Clarification: This instruction directive is used to terminate the program execution.

10. The last statement of the source program should be _______
a) Stop
b) Return
c) OP
d) End

Answer: d
Clarification: This enables the processor to load some other process.

11. When dealing with the branching code the assembler ___________
a) Replaces the target with its address
b) Does not replace until the test condition is satisfied
c) Finds the Branch offset and replaces the Branch target with it
d) Replaces the target with the value specified by the DATAWORD directive

Answer: c
Clarification: When the assembler comes across the branch code, it immediately finds the branch offset and replaces it with it.

12. The assembler stores all the names and their corresponding values in ______
a) Special purpose Register
b) Symbol Table
c) Value map Set
d) None of the mentioned

Answer: b
Clarification: The table where the assembler stores the variable names along with their corresponding memory locations and values.

  250+ TOP MCQs on ARM Architecture and Answers

13. The assembler stores the object code in ______
a) Main memory
b) Cache
c) RAM
d) Magnetic disk

Answer: d
Clarification: After compiling the object code, the assembler stores it in the magnetic disk and waits for further execution.

14. The utility program used to bring the object code into memory for execution is ______
a) Loader
b) Fetcher
c) Extractor
d) Linker

Answer: a
Clarification: The program is used to load the program into memory.

15. To overcome the problems of the assembler in dealing with branching code we use _____
a) Interpreter
b) Debugger
c) Op-Assembler
d) Two-pass assembler

Answer: d
Clarification: This creates entries into the symbol table first and then creates the object code.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top