System programming/SYSTEMS PROGRAMMING /MACRO PROCESSOR Sample Test,Sample questions

Question:
	
A ________________ statement declare the name of macro.

1.macro prototype

2.macro definition

3. macro identification

4.None of these


Question:
	
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


Question:
	
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


Question:
	
Macro processor is an inbuilt function of -

1.Assembler

2.Loader

3.Linker

4.Editor


Question:
	
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


Question:
	
The beginning of the macro can be represented as

1.START

2.BEGIN

3.MACRO

4.none of the mentioned


Question:
	
The end of a macro can be represented by the directive

1.END

2.ENDS

3.ENDM

4.ENDD


Question:
	
The translator which perform macro expansion is called a

1.Macro processor

2.Macro pre-processor

3.Micro pre-processor

4.assembler


Question:
	
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


Question:
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


Question:
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


Question:
A macro can be used

1. in data segment

2. to represent directives

3.to represent statements

4.all of the mentioned


Question:
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


Question:
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


Question:
A macro within a macro is called

1.macro-within-macro

2.nested macro

3.macro-in-macro

4.none of the mentioned


Question:
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


Question:
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


Question:
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


Question:
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


Question:
Each macro statement is marked with the __________ sign preceded it.

1.+

2.@

3.~

4.$


Question:
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


Question:
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


Question:
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


Question:
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


Question:
Macro processor is an inbuilt function of ?

1.Loader

2.Editor

3.Linker

4.Assembler


Question:
Non-modifiable procedures are called ?

1.concurrent procedures

2.serially usable procedures

3.reentrant procedures

4.topdown procedures


Question:
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


Question:
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.


Question:
The flow control during macro expansion is

1.combination

2.chronological

3.indexable

4.sequential


Question:
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


Question:
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


Question:
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


Question:
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


Question:
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


More MCQS

  1. SYSTEMS PROGRAMMING MCQ SET 1
  2. SYSTEMS PROGRAMMING MCQ SET 2
  3. SYSTEMS PROGRAMMING /MACHINE STRUCTURE
  4. SYSTEMS PROGRAMMING /MACRO PROCESSOR
  5. SYSTEMS PROGRAMMING /LOADERS MCQ
  6. SYSTEMS PROGRAMMING /PROGRAMMING LANGUAGES MCQ SET 1
  7. SYSTEMS PROGRAMMING /PROGRAMMING LANGUAGES MCQ SET 2
  8. SYSTEMS PROGRAMMING /PROGRAMMING LANGUAGES MCQ SET 3
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!