Macros MCQ’s

Read Time:1 Minute, 22 Second

This set of Microprocessor Multiple Choice Questions & Answers (MCQs) focuses on “Macros”.

1. The process of assigning a label or macroname to the string is called
a) initialising macro
b) initialising string macro
c) defining a string macro
d) defining a macro

2. A macro within a macro is called
a) macro-within-macro
b) nested macro
c) macro-in-macro
d) none of the mentioned

3. If a number of instructions are repeating through the main program, then to reduce the length of the program, __________ is used.
a) procedure
b) subroutine
c) macro
d) none of the mentioned

4. A macro can be defined as
a) beginning of a program
b) end of a program
c) after initialisation of program
d) anywhere in a program

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

6. 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

7. A macro can be used as ________
a) in data segment
b) to represent directives
c) to represent statements
d) all of the mentioned

8. 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

9. 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

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

Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %

Average Rating

5 Star
0%
4 Star
0%
3 Star
0%
2 Star
0%
1 Star
0%

Leave a Reply

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

Previous post Interrupt Programming, Passing Parameters to Procedures, Handling Programs of Size More Than 64KB MCQ’s
Next post Timings and Delays MCQ’s