Microprocessor Questions and Answers Part-10

1. The end of a macro can be represented by the directive.
a) END
b) ENDS
c) ENDM
d) ENDD

Answer: c
Explanation: The ENDM directive marks the end of the instructions or statements sequence assigned with the macro name.

2. Inserting the statements and instructions represented by macro, directly at the place of the macroname, in the program, is known as
a) calling a macro
b) inserting a macro
c) initializing a macro
d) none of the mentioned

Answer: a
Explanation: Inserting the statements and instructions at the place of macroname, in the program, is known as calling a macro.

3. The time required for execution of a macro is ________ that of the procedure.
a) greater than
b) less than
c) equal to
d) none of the mentioned

Answer: b
Explanation: The time required for execution of a macro is less than that of procedure as it does not contain CALL and RET instructions as the procedures do.

4. Which of the following statements is incorrect?
a) complete code of instruction string is inserted at each place, wherever the macroname appears
b) macro requires less time of execution than that of procedure
c) macro uses stack memory
d) macroname can be anything except registers and mnemonics

Answer: c
Explanation: Macro does not require stack memory and hence has less time for execution.

5. The beginning of the macro can be represented as
a) START
b) BEGIN
c) MACRO
d) None of the mentioned

Answer: c
Explanation: The beginning of the macro is represented as macroname followed by the directive MACRO.

6. The number of instructions actually executed by the microprocessor depends on the
a) stack
b) loop count
c) program counter
d) time duration

Answer: b
Explanation: As the microprocessor executes each instruction corresponding loop counter value decreases and the microprocessor executes the instructions till the loop counter becomes zero.

7. The step included in generating delays is
a) determining exact required delay
b) selecting instructions for delay loop
c) finding period of clock frequency
d) all of the mentioned

Answer: d
Explanation: The delays can be generated step wise.

8. The Count, N can be defined as
a) required delay/duration for execution
b) duration of execution/required delay
c) required delay/number of clock cycles
d) required delay/period of clock frequency

Answer: a
Explanation: The count N can be defined as the required time delay by the duration for execution of the loop once.
Count, N = required delay (Td)/duration for execution of the loop once (n*T).

9. The maximum count value of 16-bit count register puts a limitation on
a) memory usage
b) storage of address of registers
c) to generate clock pulse
d) to generate maximum delay

Answer: d
Explanation: The maximum count value of 16-bit count register is FFFFH. This may put the limitation on the maximum delay that can be generated using the instructions.

10. When large delays are required, then to serve the purpose
a) one or more count registers can be used
b) one or more shift registers can be used
c) one or more pointer registers can be used
d) one or more index registers can be used

Answer: a
Explanation: One or more count registers can be used to serve large delays.