Subroutines

Lecture 13: Subroutines

222 Questions172 MCQs45 Short Questions5 Long Questions
Showing 181190 of 222 Questions
Page 19 of 23
Q181❓ MCQ📑 Lec 5EasyHigh-Yield💡Conceptual
To multiply an unsigned binary number stored in a register by 2, which operation should be performed on the register?
💻 assembly Snippet
shl ax, 1
  1. A.Shifted left by one bit (SHL/SAL)
  2. B.Shifted right by one bit (SHR)
  3. C.Rotated right by one bit (ROR)
  4. D.Incremented by two
Q182❓ MCQ📑 Lec 5EasyHigh-Yield💡Conceptual
In 8088 assembly language, the DIV (Unsigned Division) instruction has how many fundamental operand size forms?
💻 assembly Snippet
div bl
div bx
  1. A.Two forms
  2. B.Three forms
  3. C.Four forms
  4. D.Five forms
Q183❓ MCQ📑 Lec 5Easy🔁RepeatedHigh-Yield💡Conceptual
When the operand of a DIV instruction is 16 bits wide, the implied dividend stored in register pair DX:AX is:
💻 assembly Snippet
div bx
  1. A.8 bits
  2. B.16 bits
  3. C.32 bits
  4. D.64 bits
Q184❓ MCQ📑 Lec 5MediumHigh-Yield💡Conceptual
When a dividend is divided by a small divisor such that the resulting quotient exceeds the storage capacity of the destination register, what error is triggered?
💻 assembly Snippet
mov ax, 10000
mov bl, 2
div bl
  1. A.Divide logical error
  2. B.Divide overflow error
  3. C.Divide syntax error
  4. D.An illegal instruction
Q185🧠 Long Problem📑 Lec 5MediumHigh-Yield💡Conceptual
Explain how extended shifting (32-bit/multi-word bit shifting) is performed in 16-bit 8088 assembly language using shift and rotate instructions.
💻 assembly Snippet
num1: dd 40000

; Perform 32-bit Left Shift by 1 bit:
shl word [num1], 1      ; Shift lower 16 bits left; MSB enters Carry Flag
rcl word [num1+2], 1    ; Rotate upper 16 bits left through Carry Flag
Q186❓ MCQ📑 Lec 5Easy🔁RepeatedHigh-Yield💡Conceptual
Which assembly instruction is used to perform unsigned integer division in 8088 CPU architecture?
💻 assembly Snippet
div bx
  1. A.DIV instruction
  2. B.ADC instruction
  3. C.SBB instruction
  4. D.DIVI instruction
Q187❓ MCQ📑 Lec 5Easy🔁RepeatedHigh-Yield💡Conceptual
Which instruction performs an unsigned multiplication of a source operand with the accumulator register?
💻 assembly Snippet
mul bx
  1. A.MULTI
  2. B.DIV
  3. C.MUL
  4. D.MOVE
Q188❓ MCQ📑 Lec 5Easy🔁RepeatedHigh-Yield💡Conceptual
When a 32-bit dividend in DX:AX is divided by a 16-bit operand using the DIV instruction, the resulting quotient is how many bits wide?
💻 assembly Snippet
div bx
  1. A.32 bits
  2. B.16 bits
  3. C.8 bits
  4. D.4 bits
Q189❓ MCQ📑 Lec 5Easy🔁RepeatedHigh-Yield💡Conceptual
When a 32-bit dividend in register pair DX:AX is divided by a 16-bit divisor using the DIV instruction, the resulting quotient is how many bits wide?
💻 assembly Snippet
div bx
  1. A.32 bits
  2. B.16 bits
  3. C.8 bits
  4. D.4 bits
Q190❓ MCQ📑 Lec 5Easy🔁RepeatedHigh-Yield💡Conceptual
When the operand of the DIV instruction is 16 bits wide, where is the implied 32-bit dividend stored?
💻 assembly Snippet
div bx
  1. A.AX register alone
  2. B.The concatenation of DX and AX (DX:AX)
  3. C.The concatenation of ES and AX
  4. D.The concatenation of DS and BX