Subroutines
Lecture 13: Subroutines
222 Questions172 MCQs45 Short Questions5 Long Questions
Showing 51 – 60 of 222 Questions
Page 6 of 23
Q51❓ MCQ📑 Lec 5Medium🔁Repeated⭐High-Yield💡Conceptual
In assembly language subroutine stack frame management, how are local variables allocated on the stack?
Q52❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
Local variables are variables that are defined and used exclusively within a __________.
Q53❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
To transfer control back from a subroutine to the caller, the standard near `RET` instruction takes how many explicit parameters/arguments?
Q54❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
In 16-bit x86 architecture, what is the maximum number of parameters a subroutine can receive directly through general-purpose registers (AX, BX, CX, DX, SI, DI, BP)?
Q55📝 Short Q📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
How many explicit parameters/arguments does the standard `RET` (Return from subroutine) instruction take?
Q56📝 Short Q📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
Describe the function and operational steps performed by the `PUSH` instruction on the stack.
Q57❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
The physical memory address of data located on the execution stack is calculated using which segment-offset register combination?
Q58❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
Upon execution of the standard near return instruction `RET`, how is the Stack Pointer (`SP`) modified?
Q59📝 Short Q📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
What structural changes occur to the Stack Pointer (`SP`) register upon executing the instruction `RET 2`?
Q60❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
When executing a far return instruction `RETF`, into which CPU register is the first 16-bit word popped from the stack loaded?