Branching

Lecture 8: Branching

261 Questions205 MCQs51 Short Questions5 Long Questions
Showing 6170 of 261 Questions
Page 7 of 27
Q61❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
Which x86 assembly instruction performs an unsigned multiplication of the source operand and the accumulator register?
💻 assembly Snippet
mov ax, 25
mov bx, 4
mul bx ; AX * BX -> Product in DX:AX (0x0000:0x0064)
  1. A.Multi
  2. B.DIV
  3. C.MUL
  4. D.Move
Q62❓ MCQ📑 Lec 3Medium🔁RepeatedHigh-Yield💡Conceptual
If `BB` is the opcode for moving a 16-bit constant to register `BX` (or `B8` for `AX`), and decimal constant 336 equals hex `0x0150`, what is the hexadecimal representation of the instruction `MOV AX, 336` (`0x0150`) using x86 Little-Endian byte ordering (where opcode is `BB` as specified in question prompt)?
💻 assembly Snippet
; Instruction: MOV AX, 0x0150
; Opcode = BB, Immediate = 0x0150 (Low byte = 50, High byte = 01)
; Machine encoding bytes: BB 50 01 -> 0xBB5001
  1. A.0xBB0150
  2. B.0x5001BB
  3. C.0x01BB50
  4. D.0xBB5001
Q63❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
In the assembly instruction `MOV AX, 5`, how many operands are present?
💻 assembly Snippet
mov ax, 5 ; 2 operands: AX (destination), 5 (source)
  1. A.1
  2. B.2
  3. C.3
  4. D.4
Q64❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
In assembly language, the CX register is normally used as a __________ register.
💻 assembly Snippet
mov cx, 10 ; Load iteration count 10 into CX
  1. A.source
  2. B.counter
  3. C.index
  4. D.pointer
Q65❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
When a 16-bit dividend is divided by an 8-bit divisor (`DIV reg8`), which register must hold the 16-bit dividend prior to division?
💻 assembly Snippet
mov ax, 200 ; 16-bit dividend in AX
mov bl, 10  ; 8-bit divisor in BL
div bl      ; AL = 20 (Quotient), AH = 0 (Remainder)
  1. A.AX
  2. B.BX
  3. C.CX
  4. D.DX
Q66❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
In x86 assembly language architecture, what primary data type do Index Registers (such as `SI` and `DI`) store during memory access?
💻 assembly Snippet
mov si, offset_data ; SI holds memory address offset
  1. A.Address
  2. B.Data
  3. C.Intermediate result
  4. D.Both data and addresses
Q67❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
In which processor register do the individual bits work independently and bit-wise individually to hold distinct status flags or control states?
  1. A.flags register
  2. B.index register
  3. C.base register
  4. D.accumulator
Q68❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
When a 32-bit dividend stored in register pair DX:AX is divided by a 16-bit divisor operand using `DIV`, what is the bit width of the resulting quotient stored in AX?
💻 assembly Snippet
div cx ; Quotient (16-bit) stored in AX, Remainder (16-bit) stored in DX
  1. A.4 bits
  2. B.32 bits
  3. C.16 bits
  4. D.8 bits
Q69❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
When a 16-bit dividend in AX is divided by an 8-bit divisor operand using `DIV`, in which register is the quotient placed?
💻 assembly Snippet
div bl ; Quotient stored in AL, Remainder stored in AH
  1. A.AL
  2. B.AX
  3. C.AH
  4. D.DX
Q70❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
How many explicit operands does the Add with Carry instruction `ADC` take in assembly language syntax?
💻 assembly Snippet
adc ax, bx ; 2 explicit operands: AX (destination) and BX (source)
  1. A.3
  2. B.0
  3. C.1
  4. D.2