Subroutines
Lecture 13: Subroutines
222 Questions172 MCQs45 Short Questions5 Long Questions
Showing 11 – 20 of 222 Questions
Page 2 of 23
Q11❓ MCQ📑 Lec 5Medium🔁Repeated⭐High-Yield💡Conceptual
Read the following x86 assembly stack framing sequence and determine the final effect on the BP register value:
push bp
mov bp, sp
sub sp, 2
mov sp, bp
pop bp
Q12❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
In computer architecture, a stack is defined as what type of data structure?
Q13❓ MCQ📑 Lec 5Medium🔁Repeated⭐High-Yield💡Conceptual
What is the maximum number of parameters a subroutine can receive through registers when all general-purpose registers are utilized for parameter passing in 16-bit x86 assembly?
Q14❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
During the execution of the STOSB (Store String Byte) instruction, when the Direction Flag (DF) is clear (DF = 0), how is the destination index register DI modified?
Q15❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
During the execution of a repeated string instruction (such as REP STOSW or REP STOSB), after each iteration, the count register CX is ________.
Q16❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
In x86 string processing instructions, auto-increment mode (incrementing index registers SI and DI after each operation) is active when which flag state is met?
Q17❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
Which pair of registers is used as source and destination index pointers to access memory during string operations (e.g., MOVSB, MOVSW)?
Q18❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
What is the primary function of the MOVS (Move String) instruction family in x86 assembly?
Q19❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
In STOSW (Store String Word) instruction, when the Direction Flag (DF) is clear (DF = 0), the Destination Index (DI) register is ________.
Q20❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
In the STOSB (Store String Byte) instruction, when the Direction Flag (DF) is clear (DF = 0), the Destination Index (DI) register is ________.