0% found this document useful (0 votes)
951 views

Question Bank - MCQ Based Exam - UNIT-3 - SP

This document contains a question bank for an offline MCQ exam on system programming. It includes 34 multiple choice questions related to macros and macro processing. Some key topics covered are macro definition, macro expansion, macro calls within macros, conditional macros, macro name tables, and the relationship between assemblers and macro processors.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
951 views

Question Bank - MCQ Based Exam - UNIT-3 - SP

This document contains a question bank for an offline MCQ exam on system programming. It includes 34 multiple choice questions related to macros and macro processing. Some key topics covered are macro definition, macro expansion, macro calls within macros, conditional macros, macro name tables, and the relationship between assemblers and macro processors.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

PRIYADARSHINI BHAGWATI COLLEGE OF ENGINEERING, NAGPUR

UMRED ROAD , NAGPUR


QUESTION BANK FOR OFFLINE MCQ BASED EXAM

SUBJECT: - SYSTEM PROGRAMMING

UNIT-3(microprocessor)

1.Output of Macro is called

a. Object code

b. Expanded Source code

c. Machine code

d. Source Code

answer :- B

2. Inner Macro is defined only when

Inner MACRO is called

b. Outer MACRO is defined

c. It has no arguments

d. Outer MACRO is called

answer :- D

3. Macro processor is essential.

a. True

b. False

c. May be true conditionally

d. Can't say

answer :- B
4. AGO is_____________

a. Conditional Jump

b. Unconditional Jump

c. Previous routine

d. Previous data

answer :- B

5. AIF is used in ______________

a. Conditional MACRO

b. MACRO call within MACRO

c. MACRO instruction Argument

d. MACRO Definition within MACRO

answer :- A

6. Macro processor converts ALP to

A. Low level language

b. High level language

c. Machine language

d. ALP without Macro

answer :- D

7.Nested Macro calls are expanded using the

A. FIFO Rule ( First in First out)

B. LIFO Rule (Last in First out)

C. FILO Rule (First in Last out)

D.None of the above

Answer :- B
8. We use stack frame in __________

a. Conditional Macro design

b. Macro definition within Macro design

c. Implementing macro into pass1 of assembler

d. Macro call within macro design

answer :- D

9. During macro expansion each statement is replaced by

A. the original Program

b. the sequence of assembly statement

c. by specific symbol

d. None of the above

answer :- B

10. MACRO is _________________

a. Assembler directives

b. Machine-op

c. Pseudo –op

d. Call

answer :- C

11. MEND indicates

a. End of MACRO Call

b. End of MACRO definition

c. End of Program

d. End of Macro Processor

answer:- B
12. A macro can be defined as

A. beginning of a program

b. end of program

c. after initialization of program

d. anywhere in a program

answer :- D

13. What is the true end of MACRO definition?

a. MDLC=0

b. MEND occurs

c. Both A & B

d. None of the above

answer :- C

14. In two pass Macro design what are the restrictions?

a. Macro should not be defined within Macro

b. Macro should not be called within Macro

c. Not use conditional Macro

d. All the above

answer :- d

15.Macro Name Table can be used to store the name of defined macros.

a. True
b. False
c. Can’t say
d. None of the above

Answer :- A
16. If Assembler & Macro processor are combined then

a. Designing becomes complex

b. More flexibility is available

c. Program size increases

d. All of the above

answer :- D

17. MDT table requires ___bytes per entry.

a.80
b.12
c.8
d.4

answer :- A

18. ALA is Prepared How Many Times?

A.4
B.3
C.2
D.1
ANSWER :- C

19. MACRO line is useless during macro expansion.

a. True
b. False
c. Can’t say
d. None of the above

Answer :- A

20. While Calling a MACRO if all the arguments are not required to Pass then we will use________

a. Keyword Argument

b. Positional Argument

c. Dummy Argument

d. Actual Argument

answer :- A
21. Upon the occurrence of MEND pseudo-op MDLC is

a. Incremented by 1

b. Decremented by 1

c. ON

d. OFF

answer :- B

22. MNT table requires ___bytes per entry.

a.4

b.8

c.12.

d.80

answer :- C

23. Which Macro processor works recursively?

a. Conditional Macro

b. Macro call within macro

c. Macro definition within Macro

d. Macro instruction argument

answer :- B

24. Which type of Macro design can involve several levels of expansion?

a. Conditional Macro

b. Macro call within macro

c. Macro definition within Macro

d. Macro instruction argument

answer : B
25. (1) MACRO can be defined inside MACRO. (2) MACRO can be called within MACRO. Which of the
above statement is TRUE?

a.Only 1
B.Only 2
C. both 1 and 2
d.None of the above

answer :- C

26.Macro processor is an inbuilt function of –

a. Loader
b. Assembler
c. Editor
d. Linker

Answer :- B

27. While MDI is ON then

a. Read from MDT

b. Read from Source program

c. Object Deck is prepared

d. Definition is not over

answer : A

28. If Macro free program is sent to the macro processor then

a. It is an error

b. It will not work

c. It will work

d. It works and gives warning

answer : C

29. Argument are matched with dummy arguments according to order in which they appear is called
as positional argument.

a. False

b. True

c. Can’t say
d None of the above

answer :- B

30. (1)Assembler output is sent to Macro Processor. (2)Macro Processor output is sent to Assembler.
Which of the above statement is TRUE?

1. Only 1

2. Only 2

3. Both 1 & 2

4. None of the above

Answer : B

31.a macro can be used

a. in data segment

b. to represent directives

c. to represent statements

d. all of the above

answer :- D

32. the time required for execution of a macro is ………. That of procedure

a. greater than

b. less than

c. equal to

d. none of the above

answer :- B

33.the beginning of the macro can be represented as

a. START

b. BEGIN

c. MACRO

d. None of the above

answer :- C
34. Macro processor are …..

a. Hardware

b. Compiler

c. Registers

d. None of the above

answer :- B

You might also like