Branching

Lecture 8: Branching

261 Questions205 MCQs51 Short Questions5 Long Questions
Showing 191200 of 261 Questions
Page 20 of 27
Q191❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
How many explicit operands are accepted by the ADC (Add with Carry) assembly instruction?
💻 assembly Snippet
adc ax, bx
  1. A.0 operands
  2. B.1 operand
  3. C.2 operands
  4. D.3 operands
Q192❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
When the divisor operand of a DIV instruction is 16 bits wide, what is the bit-width of the implied dividend?
💻 assembly Snippet
div bx
  1. A.64 bits
  2. B.32 bits
  3. C.16 bits
  4. D.8 bits
Q193❓ MCQ📑 Lec 3Medium🔁RepeatedHigh-Yield💡Conceptual
Unlike short and near relative jumps, a 'Far' jump instruction specifies a complete segment and offset target, making it which type of jump?
💻 assembly Snippet
jmp 0x1000:0x0200
  1. A.Memory dependent
  2. B.Absolute
  3. C.Temporary
  4. D.Indirect
Q194❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
How many distinct operational forms (operand sizes) does the DIV (Unsigned Division) instruction possess in 8088 assembly language?
💻 assembly Snippet
div bl
div bx
  1. A.Two forms (8-bit divisor and 16-bit divisor)
  2. B.Three forms
  3. C.Four forms
  4. D.Five forms
Q195❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
When a dividend is divided by a small divisor such that the calculated quotient exceeds the storage capacity of the destination register, what type of error occurs?
💻 assembly Snippet
mov ax, 1000
mov bl, 1
div bl
  1. A.Divide logical error
  2. B.Divide overflow error
  3. C.Divide syntax error
  4. D.An illegal instruction
Q196❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
How many explicit operands are accepted by the ADC (Add with Carry) instruction?
💻 assembly Snippet
adc ax, bx
  1. A.Two operands
  2. B.Three operands
  3. C.Five operands
  4. D.Zero operands
Q197❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
When two 16-bit unsigned numbers are added, the result can be up to 17 bits long. In which flag bit is this 17th overflow/carry bit stored for testing and multi-word arithmetic?
💻 assembly Snippet
add ax, bx
adc dx, cx
  1. A.Carry Flag (CF)
  2. B.Parity Flag (PF)
  3. C.Auxiliary Carry Flag (AF)
  4. D.Zero Flag (ZF)
Q198❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
What is the exact execution result of the assembly operation code 'ADD AX, BX'?
💻 assembly Snippet
add ax, bx
  1. A.Adds the value of BX to AX and modifies register BX
  2. B.Adds the value of AX to BX and modifies register AX
  3. C.Adds the value of BX to AX and stores the result in AX (modifying AX)
  4. D.Adds the value of BX to AX and modifies nothing
Q199❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
Consider the assembly instruction 'ADD AX, BX' in a program that adds two numbers. What is the most accurate inline comment describing this instruction?
💻 assembly Snippet
add ax, bx
  1. A.; No comment needed
  2. B.; accumulate sum in add
  3. C.; accumulate sum in AX
  4. D.; accumulate sum in BX
Q200❓ MCQ📑 Lec 3Easy🔁RepeatedHigh-Yield💡Conceptual
What is the distinction between the assembly jump instructions JNE (Jump if Not Equal) and JNZ (Jump if Not Zero)?
💻 assembly Snippet
cmp ax, bx
jne target

sub cx, 1
jnz target
  1. A.They are functionally identical and assemble to the same opcode; the difference is only for programmer readability
  2. B.They generate completely different machine code opcodes in the assembler
  3. C.JNE is handled by the debugger while JNZ is handled by the processor
  4. D.JNE works on signed numbers while JNZ works on floating-point numbers