Google News
logo
Electronics and Communication Engineering (ECE) : Microprocessors - Quiz(MCQ)
Which of the following is true about stack pointer?
A)
Stack pointer is an 8-bit register
B)
Stack pointer stores data permanently
C)
Stack pointer is initialized after stack operation
D)
Stack pointer contains the address of the top of the stack memory

Correct Answer : Option (D) :   Stack pointer contains the address of the top of the stack memory


Explanation : Stack pointer is initialized before stack operation, it is a 16-bit register that stores data temporarily. It follows a LIFO operation. So, it contains the address of the top of the stack memory.

Advertisement