Subroutines
Lecture 13: Subroutines
222 Questions172 MCQs45 Short Questions5 Long Questions
Showing 91 – 100 of 222 Questions
Page 10 of 23
Q91📝 Short Q📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
Describe the working mechanics of the `CALL` instruction in relation to the stack data structure.
Q92❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
Which x86 instruction transfers the word at the current top of the stack (pointed to by `SS:SP`) to the destination operand and then increments `SP` by two?
Q93❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
True or False: The `RET` instruction does NOT pop the word at the top of the stack (pointed to by `SS:SP`) into the Instruction Pointer, but merely increments `SP` by two.
Q94❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
True or False: The operations for placing items onto the stack and removing them from the stack are called `push` and `ret`.
Q95❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
True or False: The operation of `push ax` increments the Stack Pointer by 2 (`SP <- SP + 2`) before moving `AX` to `[SS:SP]`.
Q96❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
In standard x86 subroutine parameter cleanup mechanisms using the `RET n` instruction, parameters are removed from the stack by the __________.
Q97❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
The Stack Pointer (`SP`) is a dedicated memory pointer register that is manipulated implicitly by a set of stack __________ (such as `PUSH`, `POP`, `CALL`, and `RET`).
Q98❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
In addition to `SP`, which memory pointer register is specifically designed to access parameter data and local variables stored in the stack frame?
Q99❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
Which x86 assembly instruction allows temporary diversion of execution flow to a subroutine, enabling modularity and reusability of code?
Q100❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
The `CALL` instruction accepts a target subroutine label as its __________ and begins execution from that label address.