Subroutines
Lecture 13: Subroutines
222 Questions172 MCQs45 Short Questions5 Long Questions
Showing 101 – 110 of 222 Questions
Page 11 of 23
Q101❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
When a subroutine finishes execution, encountering which instruction returns execution flow back to the instruction immediately following the original `CALL`?
Q102❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
Which pair of instructions is commonly used together for subroutine linkage, despite being operationally independent instructions?
Q103❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
The execution of a `CALL` instruction breaks normal sequential execution flow and updates register __________ to point to the new subroutine offset.
Q104❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
The CPU stack is an area of physical memory organized as a __________ that operates in a Last-In, First-Out (LIFO) manner.
Q105❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
If the x86 instruction __________ is not available, clearing parameters from the stack by the callee subroutine becomes a complicated multi-step process.
Q106❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
When excessive items are pushed onto the stack causing `SP` to decrement down to 0 and wrap around, corrupting memory data, this condition is known as stack __________.
Q107❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
The `POP` operation copies the word from the top of the stack into its specified __________.
Q108❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
Which x86 instruction decrements the Stack Pointer (`SP`) by two and then transfers a word from the source operand to the top of the stack?
Q109❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
The `POP` instruction transfers the word at the top of the stack (pointed to by `SP`) to the destination operand and then __________ `SP` by two to point to the new top of stack.
Q110❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
To preserve caller register values across a subroutine call, the standard technique is to use __________ and __________ operations to save register states on the stack upon entry and restore them before returning.