Top 350+ Solved Computer Architecture MCQ Questions Answer
Q. The order in which the return addresses are generated and used is
a. lifo
b. fifo
c. random
d. highest priority
Q. In case of nested subroutines the return addresses are stored in
a. system heap
b. special memory buffers
c. processor stack
d. registers
Q. The appropriate return addresses are obtained with the help of in case of nested routines.
a. mar
b. mdr
c. buffers
d. stack-pointers
Q. 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
Q. 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
Q. 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
Q. The private work space dedicated to a subroutine is called as
a. system heap
b. reserve
c. stack frame
d. allocation
Q. If the subroutine exceeds the private space allocated to it then the values are pushed onto
a. stack
b. system heap
c. reserve space
d. stack frame
Q. pointer is used to point to parameters passed or local parameters of the subroutine.
a. stack pointer
b. frame pointer
c. parameter register
d. log register
Q. The reserved memory or private space of the subroutine gets deallocated when
a. the stop instruction is executed by the routine
b. the pointer reaches the end of the space
c. when the routine’s return statement is executed
d. none of the mentioned
Q. The private space gets allocated to each subroutine when
a. the first statement of the routine is executed
b. when the context switch takes place
c. when the routine gets called
d. when the allocate instruction is executed
Q. the most suitable data structure used to store the return addresses in the case of nested subroutines.
a. heap
b. stack
c. queue
d. list
Q. In the case of nested subroutines, the stack top is always
a. the saved contents of the called sub routine
b. the saved contents of the calling sub routine
c. the return addresses of the called sub routine
d. none of the mentioned
Q. The stack frame for each subroutine is present in
a. main memory
b. system heap
c. processor stack
d. none of the mentioned