Branching

Lecture 8: Branching

261 Questions205 MCQs51 Short Questions5 Long Questions
Showing 141150 of 261 Questions
Page 15 of 27
Q141❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
In the assembly language instruction `MOV AX, 5`, how many total operands are present?
💻 assembly Snippet
mov ax, 5 ; 2 operands: AX (destination) and 5 (source)
  1. A.1
  2. B.2
  3. C.3
  4. D.4
Q142❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
Which group of processor flags consists solely of control flags rather than status flags used for mathematical and arithmetic operations?
  1. A.Carry, Interrupt and Trap flag.
  2. B.Direction, Interrupt and Trap flag.
  3. C.Direction, Overflow and Trap flag.
  4. D.Direction, Interrupt and Sign flag.
Q143❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
In MS-DOS, the entry point and first executable instruction of a `.COM` executable file must be located at offset address:
💻 assembly Snippet
[org 0x0100] ; Mandated starting offset for DOS COM executables
  1. A.0x0010
  2. B.0x0100
  3. C.0x1000
  4. D.0x0000
Q144❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
In 8088 16-bit architecture, the unsigned integer division instruction `DIV` has how many primary operand forms?
💻 assembly Snippet
; Form 1 (8-bit):  div bl  ; AX / BL -> Quotient AL, Remainder AH
; Form 2 (16-bit): div bx  ; DX:AX / BX -> Quotient AX, Remainder DX
  1. A.Two forms
  2. B.Three forms
  3. C.Four forms
  4. D.Five forms
Q145❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
When the divisor operand of a `DIV` instruction is a 16-bit word, how many bits wide is the implied dividend?
💻 assembly Snippet
div cx ; 32-bit dividend in DX:AX divided by 16-bit divisor in CX
  1. A.8 bits
  2. B.16 bits
  3. C.32 bits
  4. D.64 bits
Q146❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
When a division operation calculates a quotient that exceeds the destination register capacity (for example, dividing a large dividend by a very small divisor), what error condition is generated?
  1. A.Divide logical error
  2. B.Divide overflow error
  3. C.Divide syntax error
  4. D.An illegal instruction
Q147📝 Short Q📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
Describe the internal operations performed by the CMP (Compare) instruction in the 8088 microprocessor.
💻 assembly Snippet
cmp ax, bx
Q148❓ MCQ📑 Lec 3Medium🔁RepeatedHigh-Yield💡Conceptual
When the divisor operand of an unsigned division (DIV) instruction is 16 bits wide, where is the implied 32-bit dividend stored?
💻 assembly Snippet
mov dx, 0      ; Clear high word of dividend
mov ax, 500    ; Low word of dividend in AX
mov bx, 10     ; 16-bit divisor in BX
div bx         ; Divides DX:AX by BX
  1. A.AX register
  2. B.The concatenation of DX and AX
  3. C.The concatenation of ES and AX
  4. D.The concatenation of DS and BX
Q149📝 Short Q📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
Provide valid and efficient 8088 assembly instruction(s) to divide the value stored in register AX by 8.
💻 assembly Snippet
mov cl, 3
shr ax, cl
Q150📝 Short Q📑 Lec 3Medium🔁RepeatedHigh-Yield💡Conceptual
Differentiate between the SHR (Shift Logical Right) and SAR (Shift Arithmetic Right) instructions in 8088 assembly language.
💻 assembly Snippet
shr ax, 1
sar bx, 1