A ________________ statement declare the name of macro.
1.macro prototype
2.macro definition
3. macro identification
4.None of these
In which way(s) can a macro processor for assembly language be implemented?
1. independent one-pass processor
2.independent two-pass processor
3.processor incorporated into pass of a standard two-pass assembler
4.all of the above
Inserting the statements and instructions represented by macro, directly at the place of the macroname, in the program, is known as
1. calling a macro
2.inserting a macro
3.initializing a macro
4. none of the mentioned
Macro processor is an inbuilt function of -
1.Assembler
2.Loader
3.Linker
4.Editor
Nested Macro calls are expanded using the
1.FIFO rule (First in first out)
2. LIFO (Last in First out)
3.FILO rule (First in last out)
4.None of the above
The beginning of the macro can be represented as
1.START
2.BEGIN
3.MACRO
4.none of the mentioned
The end of a macro can be represented by the directive
1.END
2.ENDS
3.ENDM
4.ENDD
The translator which perform macro expansion is called a
1.Macro processor
2.Macro pre-processor
3.Micro pre-processor
4.assembler
Which of the following statements is incorrect?
1.complete code of instruction string is inserted at each place, wherever the macroname appears
2. macro requires less time of execution than that of procedure
3.macro uses stack memory
4.macroname can be anything except registers and mnemonics
A co-processor-
1. is used to support in software
2.is used in fifth generation computers
3. is used in combination with every application
4.None of these
A macro can be defined at
1.beginning of a program
2. end of a program
3. after initialisation of program
4. anywhere in a program
A macro can be used
1. in data segment
2. to represent directives
3.to represent statements
4.all of the mentioned
A macro definition consists of
1.A macro prototype statement
2.One or more model statements
3.Macro pre-processor statements
4. All of the above
A macro is
1.a small program inside a program
2.set of special instructions
3. a unit of specification for program generation through expansion
4.None of the above
A macro within a macro is called
1.macro-within-macro
2.nested macro
3.macro-in-macro
4.none of the mentioned
A model statement contains call for another macro is called as
1.referential macro call
2.nested macro call
3. inbuilt macro call
4.inherited macro call
A processor-
1. is a sequence of instructions
2.is the device where information is stored
3.is a device that performs a sequence of operations specified by instructions in memory
4.None of These
Advantage of incorporating the macro-processor into pass 1 is that
1.many functions have to be implemented twice
2.more flexibility is available to the programmer in that he may use all the features of the assembler in conjunction with macros
3.functions are combined and it is not necessary to create intermediate files as output from the macro-processor and input to the assembler.
4. all of these
During macro expansion each statement is replaced by
1.the original program
2.the sequence of assembly statement
3.by specific synbols
4.None of the above
Each macro statement is marked with the __________ sign preceded it.
1.+
2.@
3.~
4.$
Expansion time variables are used
1.Before expansion of micro calls
2.only during expansion of macro calls
3.After expansion of micro calls
4.Any one of the above
If a number of instructions are repeating through the main program, then to reduce the length of the program, ……. is used.
1.procedure
2.subroutine
3.macro
4.none of the mentioned
If control signals {a,b,c,d,e,f,g} for some micro instructions and their corresponding MCCS (Maximum Compatibility Classes) are [ad f* g, abd, beg, b deg} then to determine minimal MCC cover, we need to remove
1.afd
2.bcg
3.adfg
4.bdeg
In which way a macro processor for assembly language can be implemented?
1. Processor incorporated into pass 1 of a standard two pass assembler
2.Independent one-pass processor
3.Independent two-pass processor
4.All of these
Macro processor is an inbuilt function of ?
1.Loader
2.Editor
3.Linker
4.Assembler
Non-modifiable procedures are called ?
1.concurrent procedures
2.serially usable procedures
3.reentrant procedures
4.topdown procedures
The advantage(s) of incorporating the macro processor into pass 1 is/ are:
1.many functions do not have to be implemented twice
2.more flexibility is available to the programmer in which he/she may use all the features of the assembler in conjunction with macros
3.Functions are combined and it is not necessary to create intermediate files as output from the macro processor and input to the assembler
4.All of the above
The conditional expansion facility of macro procesors is provided to
1.to expand certain model statements depending upon the value of a condition during the execution of the expanded program
2.test a condition during the execution of the expanded program
3. Both (a) and (b)
4.to expand certain model statements depending upon the value of a condition during the process of macro expansion.
The flow control during macro expansion is
1.combination
2.chronological
3.indexable
4.sequential
The process of assigning a label or macroname to the string is called
1.initialising macro
2.initialising string macro
3. defining a string macro
4. defining a macro
The time required for execution of a macro is ……… that of procedure.
1.greater than
2.less than
3.equal to
4.none of the mentioned
What are x and y in the following macro definition? macro Add x, y Load y Mul x Store y end macro
1.variables
2.identifiers
3.formal parameters
4.actual parameters
What is the value of X printed by the following program ? program COMPUTE ( input, output ); var X : integer ; procedure FIND ( X: real ) ; begin X : = sqrt ( X ) ; end ; begin X : = 2 FIND(X); writeln(X); end.
1.n
2.2
3.√2
4.Run-time error
Which of the following macros can put a macro assembler into an infinite loop ?
1.MACRO M1, XIF EQ, X if X = 0 then....M1 X + 1ENDCIF NE, X : IF X ≠ 0 then......WORD X : address (X) is stored hereENDCENDM
2.MACRO M2, XIF EQ, XM2 XENDCIF NE, XWORD X + 1ENDCENDM
3. both (a) and (b)
4.none of these