Subroutines and Nesting
1.

The return address of the Sub-routine is pointed to by _______

A.  

IR

B.  

PC

C.  

MAR

D.  

Special memory registers

2.

The location to return to, from the subroutine is stored in _______

A.  

TLB

B.  

PC

C.  

MAR

D.  

Link registers

3.

What is subroutine nesting?

A.  

Having multiple subroutines in a program

B.  

Using a linking nest statement to put many subroutines under the same name

C.  

Having one routine call the other

D.  

None of the mentioned

4.

The order in which the return addresses are generated and used is _________

A.  

LIFO

B.  

FIFO

C.  

Random

D.  

Highest priority

5.

In case of nested subroutines the return addresses are stored in __________

A.  

System heap

B.  

Special memory buffers

C.  

Processor stack

D.  

Registers

6.

The appropriate return addresses are obtained with the help of ____ in case of nested routines.

A.  

MAR

B.  

MDR

C.  

Buffers

D.  

Stack-pointers

7.

When parameters are being passed on to the subroutines they are stored in ________

A.  

Registers

B.  

Memory locations

C.  

Processor stacks

D.  

All of the mentioned

8.

The most efficient way of handling parameter passing is by using ______

A.  

General purpose registers

B.  

Stacks

C.  

Memory locations

D.  

None of the mentioned

9.

The most Flexible way of logging the return addresses of the subroutines is by using _______

A.  

Registers

B.  

Stacks

C.  

Memory locations

D.  

None of the mentioned

10.

The wrong statement/s regarding interrupts and subroutines among the following is/are ______
i) The sub-routine and interrupts have a return statement
ii) Both of them alter the content of the PC
iii) Both are software oriented
iv) Both can be initiated by the user

A.  

i, ii and iv

B.  

ii and iii

C.  

iv

D.  

iii and iv