Subroutines
Lecture 13: Subroutines
222 Questions172 MCQs45 Short Questions5 Long Questions
Showing 71 – 80 of 222 Questions
Page 8 of 23
Q71❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
When the stack becomes completely filled with data such that `SP` decrements down to 0 and wraps around, corrupting existing data, this condition is known as stack __________.
Q72❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
The `POP` instruction copies the word from the top of the stack (`[SS:SP]`) into its specified __________ and then increments the Stack Pointer (`SP`) by 2.
Q73❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
Which x86 instruction decrements the Stack Pointer (`SP`) by 2 and then transfers a 16-bit word from the source operand onto the top of the stack?
Q74❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
The `POP` instruction transfers the word at the top of the stack (pointed to by `SS:SP`) into the destination operand and then __________ `SP` by two to point to the new top of stack.
Q75❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
To preserve register values across subroutine calls, the standard programming convention is to use __________ operations to save caller register values prior to subroutine execution and restore them upon return.
Q76❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
To access subroutine arguments passed on the stack, an immediate (though destructive) method is to __________ them off the stack into general registers.
Q77❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
In standard x86 subroutine stack frame initialization, what is accomplished by executing the instruction `push bp`?
Q78❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
Local variables in assembly language programming are defined as temporary variables whose scope and lifetime are restricted to the __________.
Q79❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
When the __________ instruction is encountered in a subroutine, program execution is transferred back to the instruction immediately following the `CALL` instruction.
Q80❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
The `POP` operation reads a word from the top of the stack (`[SS:SP]`) and copies it into its __________.