Skip to content
Related Articles

Related Articles

Improve Article
GATE | GATE-CS-2001 | Question 10
  • Difficulty Level : Easy
  • Last Updated : 03 Dec, 2014

Suppose a processor does not have any stack pointer register. Which of the following statements is true?
(A) It cannot have subroutine call instruction
(B) It can have subroutine call instruction, but no nested subroutine calls
(C) Nested subroutine calls are possible, but interrupts are not
(D) All sequences of subroutine calls and also interrupts are possible

Answer: (A)

Explanation: Stack pointer register hold the address of top of stack, which is the location of memory at which CPU should resume its execution after servicing some interrupt or subroutine call.

So if SP register is not available then no subroutine call instructions are possible. So (A) is correct option.

Quiz of this Question

Attention reader! Don’t stop learning now. Learn all GATE CS concepts with Free Live Classes on our youtube channel.

My Personal Notes arrow_drop_up
Recommended Articles
Page :