Subroutines

Lecture 13: Subroutines

222 Questions172 MCQs45 Short Questions5 Long Questions
Showing 191200 of 222 Questions
Page 20 of 23
Q191❓ MCQ📑 Lec 5Easy🔁RepeatedHigh-Yield💡Conceptual
When a 16-bit dividend is divided by an 8-bit divisor using the DIV instruction, the dividend must be loaded into register:
💻 assembly Snippet
div bl
  1. A.AX
  2. B.BX
  3. C.CX
  4. D.DX
Q192❓ MCQ📑 Lec 5Easy🔁RepeatedHigh-Yield💡Conceptual
When a 32-bit dividend in DX:AX is divided by a 16-bit divisor, the resulting quotient is of what size?
💻 assembly Snippet
div bx
  1. A.32 bits
  2. B.16 bits
  3. C.8 bits
  4. D.4 bits
Q193❓ MCQ📑 Lec 5Easy🔁RepeatedHigh-Yield💡Conceptual
When a 16-bit dividend in AX is divided by an 8-bit divisor, the resulting 8-bit quotient will be stored in register:
💻 assembly Snippet
div bl
  1. A.AX
  2. B.AL
  3. C.AH
  4. D.DX
Q194❓ MCQ📑 Lec 5Easy🔁RepeatedHigh-Yield💡Conceptual
When the operand of a DIV instruction is 16 bits wide, how many bits wide is the implicit dividend stored in DX:AX?
💻 assembly Snippet
div bx
  1. A.64-bit
  2. B.32-bits
  3. C.16-bits
  4. D.8-bits
Q195❓ MCQ📑 Lec 5Easy🔁RepeatedHigh-Yield💡Conceptual
In 8088 microprocessor architecture, how many forms does the DIV instruction have?
💻 assembly Snippet
div bl  ; 8-bit form
div bx  ; 16-bit form
  1. A.Two forms
  2. B.Three forms
  3. C.Four forms
  4. D.One form
Q196❓ MCQ📑 Lec 5Easy🔁RepeatedHigh-Yield💡Conceptual
When the operand of a DIV instruction is 16 bits wide, how many bits wide is the implicit dividend stored in register pair DX:AX?
💻 assembly Snippet
div bx
  1. A.8 bits
  2. B.16 bits
  3. C.32 bits
  4. D.64 bits
Q197❓ MCQ📑 Lec 5Easy🔁RepeatedHigh-Yield💡Conceptual
What is the maximum number of parameters a subroutine can receive via registers in 8088 architecture when all general-purpose registers are utilized?
  1. A.6
  2. B.7
  3. C.5
  4. D.4
Q198❓ MCQ📑 Lec 5Easy🔁RepeatedHigh-Yield💡Conceptual
To transfer control back to the caller from a subroutine, how many explicit operands does the standard RET instruction require?
💻 assembly Snippet
ret
  1. A.1 argument
  2. B.2 arguments
  3. C.3 arguments
  4. D.No arguments
Q199❓ MCQ📑 Lec 5Easy🔁RepeatedHigh-Yield💡Conceptual
What is the maximum number of parameter arguments a subroutine can receive using CPU general-purpose registers in 8088 architecture?
  1. A.6
  2. B.7
  3. C.8
  4. D.9
Q200❓ MCQ📑 Lec 5Easy🔁RepeatedHigh-Yield💡Conceptual
After executing a standard 16-bit 'RET' instruction to return from a subroutine, how is the Stack Pointer (SP) updated?
💻 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