Subroutines
Lecture 13: Subroutines
222 Questions172 MCQs45 Short Questions5 Long Questions
Showing 121 – 130 of 222 Questions
Page 13 of 23
Q121📝 Short Q📑 Lec 5Medium⭐High-Yield💡Conceptual
Explain the key operational differences between the `CALL` and `RET` instructions in x86 assembly language.
Q122❓ MCQ📑 Lec 5Medium🔁Repeated⭐High-Yield💡Conceptual
What is the maximum number of parameters a subroutine can receive via registers when all available general-purpose data and index registers are utilized in the 8088 CPU?
Q123📝 Short Q📑 Lec 5Easy⭐High-Yield💡Conceptual
Why are procedures (subroutines) used in assembly language programming, and what must be the last executable instruction in a procedure?
Q124📝 Short Q📑 Lec 5Medium⭐High-Yield💡Conceptual🌟Starred
Provide valid 8088 assembly instruction(s) to move the word value located at the top of the stack directly into the Instruction Pointer (IP) register.
Q125❓ MCQ📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
In 8088 assembly language, the CALL instruction transfers execution control ________ to a procedure by saving the return address onto the stack.
Q126❓ MCQ📑 Lec 5Medium🔁Repeated⭐High-Yield💡Conceptual
The far return instruction (RETF) pops two 16-bit words off the stack; into which register is the second word (the segment address) loaded?
Q127📝 Short Q📑 Lec 5Easy⭐High-Yield💡Conceptual
Define 'Program Flow' in assembly language programming and explain how conditional branching, loops, and function calls alter sequential instruction execution.
Q128🧠 Long Problem📑 Lec 5Hard🔁Repeated⭐High-Yield💡Conceptual🌟Starred
Differentiate between permanent control diversion (JMP) and temporary control diversion (CALL / RET) in 8088 assembly language, detailing stack operations performed by CALL and RET.
Q129📝 Short Q📑 Lec 5Medium🔁Repeated⭐High-Yield💡Conceptual
Describe the primary methods used for Parameter Passing to subroutines in 8088 assembly language, highlighting the advantages and trade-offs of using CPU registers versus the Stack Frame.
Q130📝 Short Q📑 Lec 5Easy🔁Repeated⭐High-Yield💡Conceptual
Define a subroutine in assembly language programming and explain why parameters are passed from the caller to a subroutine.