Subroutines

Lecture 13: Subroutines

222 Questions172 MCQs45 Short Questions5 Long Questions
Showing 151160 of 222 Questions
Page 16 of 23
Q151❓ MCQ📑 Lec 5Easy🔁RepeatedHigh-Yield💡Conceptual
Which 16-bit register acts as a memory pointer containing offset addresses within the special memory region called the stack?
💻 assembly Snippet
mov ax, [bp + 4]
  1. A.SP
  2. B.BP
  3. C.PB
  4. D.AC
Q152📝 Short Q📑 Lec 5Medium🔁RepeatedHigh-Yield💡Conceptual
How many optional arguments does the RET (Return) instruction accept, and what is the function of supplying an argument?
💻 assembly Snippet
ret 4
Q153📝 Short Q📑 Lec 5Easy🔁RepeatedHigh-Yield💡Conceptual
Describe the operational function and stack pointer updates that occur when executing a PUSH instruction.
💻 assembly Snippet
push ax
Q154❓ MCQ📑 Lec 5Easy🔁RepeatedHigh-Yield💡Conceptual
Which assembly instruction decrements the Stack Pointer (SP) by 2 and then transfers a word from the source operand to the top of the stack?
💻 assembly Snippet
push ax
  1. A.PUSH
  2. B.POP
  3. C.CALL
  4. D.MOV
Q155❓ MCQ📑 Lec 5Medium🔁RepeatedHigh-Yield💡Conceptual
In 8088 assembly language subroutine programming, what is the maximum number of word parameters a subroutine can receive via registers when all general-purpose registers (AX, BX, CX, DX, SI, DI) are utilized?
  1. A.6 parameters
  2. B.7 parameters
  3. C.5 parameters
  4. D.4 parameters
Q156❓ MCQ📑 Lec 5Easy🔁RepeatedHigh-Yield💡Conceptual
Is the following statement true or false: 'The PUSH instruction increments SP (the Stack Pointer) by two and then transfers a word from the source operand to the top of the stack pointed to by SP'?
💻 assembly Snippet
push ax
  1. A.True
  2. B.False
Q157❓ MCQ📑 Lec 5Easy🔁RepeatedHigh-Yield💡Conceptual
By default, how many mandatory operands does the RET (Return) instruction require to transfer execution control back from a subroutine to the caller?
💻 assembly Snippet
ret
  1. A.No arguments (0 mandatory arguments)
  2. B.1 mandatory argument
  3. C.2 mandatory arguments
  4. D.3 mandatory arguments
Q158❓ MCQ📑 Lec 5Medium🔁RepeatedHigh-Yield💡Conceptual
In 8088 assembly language, what is the maximum number of word parameters a subroutine can receive directly through general-purpose CPU registers?
  1. A.6 parameters
  2. B.7 parameters
  3. C.8 parameters
  4. D.9 parameters
Q159❓ MCQ📑 Lec 5Easy🔁RepeatedHigh-Yield💡Conceptual
How is the physical memory address of the system stack constructed in 8088 segmented architecture?
💻 assembly Snippet
mov ax, [ss:sp]
  1. A.SS:SI combination
  2. B.SS:SP combination
  3. C.ES:BP combination
  4. D.ES:SP combination
Q160❓ MCQ📑 Lec 5Easy🔁RepeatedHigh-Yield💡Conceptual
After the execution of a standard near 'RET' (Return) instruction, how is the Stack Pointer (SP) register modified?
💻 assembly Snippet
ret
  1. A.SP is incremented by 2
  2. B.SP is decremented by 2
  3. C.SP is incremented by 1
  4. D.SP is decremented by 1