R4RIN
Articles
Java 8
MCQS
System programming MCQ Quiz Hub
SYSTEMS PROGRAMMING /MACRO PROCESSOR
Choose a topic to test your knowledge and improve your System programming skills
1. Non-modifiable procedures are called ?
concurrent procedures
serially usable procedures
reentrant procedures
topdown procedures
2. The translator which perform macro expansion is called a
Macro processor
Macro pre-processor
Micro pre-processor
assembler
3. A macro definition consists of
A macro prototype statement
One or more model statements
Macro pre-processor statements
All of the above
4. A macro is
a small program inside a program
set of special instructions
a unit of specification for program generation through expansion
None of the above
5. A ________________ statement declare the name of macro.
macro prototype
macro definition
macro identification
None of these
6. During macro expansion each statement is replaced by
the original program
the sequence of assembly statement
by specific synbols
None of the above
7. Each macro statement is marked with the __________ sign preceded it.
+
@
~
$
8. The flow control during macro expansion is
combination
chronological
indexable
sequential
9. A model statement contains call for another macro is called as
referential macro call
nested macro call
inbuilt macro call
inherited macro call
10. Expansion time variables are used
Before expansion of micro calls
only during expansion of macro calls
After expansion of micro calls
Any one of the above
11. Macro processor is an inbuilt function of ?
Loader
Editor
Linker
Assembler
12. If a number of instructions are repeating through the main program, then to reduce the length of the program, ……. is used.
procedure
subroutine
macro
none of the mentioned
13. The process of assigning a label or macroname to the string is called
initialising macro
initialising string macro
defining a string macro
defining a macro
14. A macro within a macro is called
macro-within-macro
nested macro
macro-in-macro
none of the mentioned
15. A macro can be defined at
beginning of a program
end of a program
after initialisation of program
anywhere in a program
16. A macro can be used
in data segment
to represent directives
to represent statements
all of the mentioned
17. The end of a macro can be represented by the directive
END
ENDS
ENDM
ENDD
18. Inserting the statements and instructions represented by macro, directly at the place of the macroname, in the program, is known as
calling a macro
inserting a macro
initializing a macro
none of the mentioned
19. The time required for execution of a macro is ……… that of procedure.
greater than
less than
equal to
none of the mentioned
20. Which of the following statements is incorrect?
complete code of instruction string is inserted at each place, wherever the macroname appears
macro requires less time of execution than that of procedure
macro uses stack memory
macroname can be anything except registers and mnemonics
21. The beginning of the macro can be represented as
START
BEGIN
MACRO
none of the mentioned
22. Nested Macro calls are expanded using the
FIFO rule (First in first out)
LIFO (Last in First out)
FILO rule (First in last out)
None of the above
23. Macro processor is an inbuilt function of -
Assembler
Loader
Linker
Editor
24. A processor-
is a sequence of instructions
is the device where information is stored
is a device that performs a sequence of operations specified by instructions in memory
None of These
25. A co-processor-
is used to support in software
is used in fifth generation computers
is used in combination with every application
None of these
26. Advantage of incorporating the macro-processor into pass 1 is that
many functions have to be implemented twice
more flexibility is available to the programmer in that he may use all the features of the assembler in conjunction with macros
functions are combined and it is not necessary to create intermediate files as output from the macro-processor and input to the assembler.
all of these
27. In which way a macro processor for assembly language can be implemented?
Processor incorporated into pass 1 of a standard two pass assembler
Independent one-pass processor
Independent two-pass processor
All of these
28. What are x and y in the following macro definition? macro Add x, y Load y Mul x Store y end macro
variables
identifiers
formal parameters
actual parameters
29. 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.
n
2
√2
Run-time error
30. Which of the following macros can put a macro assembler into an infinite loop ?
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
MACRO M2, XIF EQ, XM2 XENDCIF NE, XWORD X + 1ENDCENDM
both (a) and (b)
none of these
31. 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
afd
bcg
adfg
bdeg
32. The conditional expansion facility of macro procesors is provided to
to expand certain model statements depending upon the value of a condition during the execution of the expanded program
test a condition during the execution of the expanded program
Both (a) and (b)
to expand certain model statements depending upon the value of a condition during the process of macro expansion.
33. The advantage(s) of incorporating the macro processor into pass 1 is/ are:
many functions do not have to be implemented twice
more flexibility is available to the programmer in which he/she may use all the features of the assembler in conjunction with macros
Functions are combined and it is not necessary to create intermediate files as output from the macro processor and input to the assembler
All of the above
34. In which way(s) can a macro processor for assembly language be implemented?
independent one-pass processor
independent two-pass processor
processor incorporated into pass of a standard two-pass assembler
all of the above
Submit