Computer organization mcqs subroutines nesting
Click on any option to know the CORRECT ANSWERS
The return address of the Sub-routine is pointed to by .....
Special memory registers
Question 1 Explanation:
The return address from the subroutine is pointed to by the PC.
The location to return to, from the subroutine is stored in .....
Question 2 Explanation:
The registers store the return address of the routine and is pointed to by the PC.
What is subroutine nesting?
Having multiple subroutines in a program
Using a linking nest statement to put many subroutines under the same name
Having one routine call the other
None of the mentioned
The order in which the return addresses are generated and used is .....
Question 4 Explanation:
That is the routine called first is returned first.
In case of nested subroutines the return addresses are stored in .....
Special memory buffers
Question 5 Explanation:
In this case, there will be more number of return addresses it is stored on the processor stack.
There are 5 questions to complete.