ALL PRINTABLE PDF BOOKS FREE DOWNLOAD <<CLICK HERE>>
Computer organization mcqs subroutines nesting


Question 1 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER] |
The return address of the Sub-routine is pointed to by .....
IR | |
PC | |
MAR | |
Special memory registers |
Question 1 Explanation:
The return address from the subroutine is pointed to by the PC.
Question 2 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER] |
The location to return to, from the subroutine is stored in .....
TLB | |
PC | |
MAR | |
Link registers |
Question 2 Explanation:
The registers store the return address of the routine and is pointed to by the PC.
Question 3 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER] |
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 |
Question 4 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER] |
The order in which the return addresses are generated and used is .....
LIFO | |
FIFO | |
Random | |
Highest priority |
Question 4 Explanation:
That is the routine called first is returned first.
Question 5 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER] |
In case of nested subroutines the return addresses are stored in .....
System heap | |
Special memory buffers | |
Processor stack | |
Registers |
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.