📑 CHAPTER PRACTICE
CS401 - Computer Architecture and Assembly Language Programming – Subroutines
Practice 10 verified multiple choice questions per batch with instant answer reveal and comprehensive solutions.
Showing 21 – 30 of 222 Questions
Page 3 of 23
Q21❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
In the STOSB (Store String Byte) instruction, by how many bytes is the index register modified (incremented or decremented depending on the Direction Flag)?
Q22❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
When executing string instructions with the repeat prefix (e.g., `REP STOSW`), how is the Count Register (CX) modified after each iteration?
Q23❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
In string instructions like STOSB, when the Direction Flag (DF) is clear (DF = 0), how is the Destination Index (DI) register modified?
Q24❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
The 20-bit physical memory address of the stack top is computed using which segment and offset register pair?
Q25❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
What happens to the register `AX` upon executing the assembly instruction `PUSH AX`?
Q26🧠 Long Problem📑 Lec 5Hard⭐High-Yield💡Conceptual🌟Starred
Explain how local variables (such as 'swapflag' in bubble sort) are created, accessed, and managed on the stack frame during subroutine execution in x86 assembly language.
Q27🧠 Long Problem📑 Lec 5Hard⭐High-Yield💡Conceptual🌟Starred
Describe the concept, stack implementation, lifecycle, and scope of local variables in assembly language subroutines.
Q28📝 Short Q📑 Lec 5Easy⭐High-Yield💡Conceptual
What assembly language instructions are used to perform permanent (unconditional) and temporary (subroutine) program execution diversions?
Q29❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
When an item is pushed onto a standard downward-growing x86 stack, how does the Stack Pointer (`SP`) operate relative to copying data?
Q30📝 Short Q📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
When the instruction `PUSH AX` is executed on a standard downward-growing x86 stack, how does the value of the Stack Pointer (`SP`) change?