Subroutines
Lecture 13: Subroutines
222 Questions172 MCQs45 Short Questions5 Long Questions
Showing 211 – 220 of 222 Questions
Page 22 of 23
Q211❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
When encountered inside a subroutine, which instruction pops the saved return address off the stack and returns control to the instruction following the CALL?
Q212❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
Which two instructions are commonly used as a pair to invoke and return from subroutines, despite being technically independent in hardware operation?
Q213❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
The subroutine CALL mechanism diverts the thread of execution and preserves general-purpose registers, automatically modifying the Stack Pointer (SP) and which control register?
Q214❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
If the ________ instruction is not available, clearing parameters from the stack by the callee subroutine becomes a complicated process.
Q215❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
To preserve register values across subroutine calls, the standard programming technique is to use a pair of ________ operations to save the caller's values on the stack and restore them before returning.
Q216❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
To access caller-passed parameters from the stack inside a subroutine, the naive initial approach that comes to mind is to ________ them off the stack.
Q217❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
When executing the instruction 'PUSH BP', what specific action is performed?
Q218❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
Local variables are defined as variables whose accessibility and lifespan are strictly restricted to a specific:
Q219❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
The CALL mechanism diverts execution control and preserves general-purpose registers, automatically modifying the Stack Pointer (SP) and which control register?
Q220📝 Short Q📑 Lec 5Easy⭐High-Yield💡Conceptual
What is the Destination Index (DI) register in 8086/8088 assembly language, and how is it used in string operations alongside the Extra Segment (ES) register?