Display Memory

Lecture 16: Display Memory

216 Questions192 MCQs19 Short Questions5 Long Questions
Showing 4150 of 216 Questions
Page 5 of 22
Q41❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
When an unsigned source operand is subtracted from a smaller unsigned destination operand (`CMP DEST, SRC`), a borrow is required. Which flag condition is set?
💻 assembly Snippet
mov ax, 3
cmp ax, 5 ; 3 < 5 -> Sets CF = 1
  1. A.carry flag i.e CF = 0
  2. B.carry flag i.e CF = 1
  3. C.Carry Flag + ZF = 1
  4. D.None of the Given
Q42❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
When performing unsigned comparison (`CMP DEST, SRC`), if the resulting flags satisfy `ZF = 1 OR CF = 1`, what relationship exists between the operands?
💻 assembly Snippet
cmp ax, bx
jbe target_label ; Jumps if AX <= BX (ZF == 1 OR CF == 1)
  1. A.DEST = SRC
  2. B.DEST != SRC
  3. C.DEST <= SRC
  4. D.DEST > SRC
Q43❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
When performing unsigned comparison (`CMP UDEST, USRC`), if the resulting flags satisfy `ZF = 0 AND CF = 0`, what relationship exists between the operands?
💻 assembly Snippet
cmp ax, bx
ja label ; Jumps if AX > BX unsigned (ZF == 0 AND CF == 0)
  1. A.DEST = SRC
  2. B.DEST != SRC
  3. C.UDEST < USRC
  4. D.UDEST > USRC
Q44❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
When performing unsigned comparison (`CMP UDEST, USRC`), if the Carry Flag is cleared (`CF = 0`), what relationship exists between the operands?
💻 assembly Snippet
cmp ax, bx
jae label ; Jumps if AX >= BX unsigned (CF == 0)
  1. A.DEST = SRC
  2. B.DEST != SRC
  3. C.UDEST < USRC
  4. D.UDEST >= USRC
Q45❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
Which conditional jump instruction is taken if the last arithmetic or logical operation produced a result of zero in its destination register (`ZF = 1`)?
💻 assembly Snippet
sub ax, bx
jz destination_is_zero ; Jumps if AX - BX == 0 (ZF == 1)
  1. A.JZ / JE
  2. B.JNZ / JNE
  3. C.JC
  4. D.JNC
Q46❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
Following a `CMP` comparison instruction, which conditional jump instruction is triggered if both operands are equal (`ZF = 1`)?
💻 assembly Snippet
cmp ax, bx
je equal_label ; Jumps if AX == BX (synonymous with JZ)
  1. A.Jump if zero (JZ) / Jump if equal (JE)
  2. B.Jump if equal (JE)
  3. C.Jump if zero (JZ)
  4. D.No Jump for This
Q47❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
Which conditional jump instruction is taken after a `CMP` instruction if the unsigned destination operand is smaller than or equal to the unsigned source operand (`DEST <= SRC`)?
💻 assembly Snippet
cmp ax, bx
jbe label ; Jumps if AX <= BX (CF == 1 OR ZF == 1)
  1. A.JBE (Jump if Below or Equal)
  2. B.JNA (Jump if Not Above) / JBE (Jump if Below or Equal)
  3. C.JNA (Jump if Not Above)
  4. D.No Jump for This
Q48❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
Multi-word numbers of arbitrarily large bit length can be added using a proper combination of which instructions?
💻 assembly Snippet
add ax, cx ; Add lower 16 bits
adc bx, dx ; Add higher 16 bits with carry
  1. A.ADD and ADC
  2. B.ABD and ADC
  3. C.ADC and ADC
  4. D.None of the Given
Q49❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
Analogous to addition with carry (`ADC`), which x86 assembly instruction performs subtraction while subtracting the Carry Flag (borrow)?
💻 assembly Snippet
sub ax, cx ; Subtract lower 16 bits
sbb bx, dx ; Subtract higher 16 bits with borrow
  1. A.SwB
  2. B.SBB
  3. C.SBC
  4. D.SBBC
Q50❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
When executing the instruction `and ax, bx` on 16-bit registers, how many bitwise AND operations are performed simultaneously by the processor ALU?
💻 assembly Snippet
and ax, bx ; Performs 16 parallel bitwise AND operations
  1. A.16 AND
  2. B.17 AND
  3. C.32 AND
  4. D.8 AND