engineering computer science MCQ #297

What is the purpose of the Stack Pointer (SP) in a CPU?

engineering computer science MCQ #297

  1. Question 1

    Q1. What is the purpose of the Stack Pointer (SP) in a CPU?

    • A) To store the address of the top of the stack
    • B) To store the current instruction
    • C) To store the result of an instruction
    • D) To store the data being transferred

    Answer: To store the address of the top of the stack

    Explanation: The Stack Pointer (SP) holds the address of the top of the stack, used for storing and retrieving data.