1.

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 executedI had been asked this question in an interview for job.The above asked question is from Parameter Passing and Stack Frame topic in chapter Machine Instructions and Programs of Computer Architecture

Answer»

Right ANSWER is (c) When the routine gets called

For explanation: When the CALL STATEMENT is executed, simultaneously space ALSO gets allocated.



Discussion

No Comment Found

Related InterviewSolutions