Top 350+ Solved Computer Architecture MCQ Questions Answer

From 226 to 240 of 314

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

a. lifo

b. fifo

c. random

d. highest priority

  • a. lifo

Q. In case of nested subroutines the return addresses are stored in

a. system heap

b. special memory buffers

c. processor stack

d. registers

  • c. processor stack

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

  • 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

  • a. general purpose registers

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

  • b. stacks

Q. The private work space dedicated to a subroutine is called as                   

a. system heap

b. reserve

c. stack frame

d. allocation

  • c. 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

  • b. frame pointer

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

  • c. when the routine’s return statement is executed

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

  • c. when the routine gets called

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

  • a. the saved contents of the called sub routine

Q. The stack frame for each subroutine is present in               

a. main memory

b. system heap

c. processor stack

d. none of the mentioned

  • c. processor stack
Subscribe Now

Get All Updates & News