Display Memory

Lecture 16: Display Memory

216 Questions192 MCQs19 Short Questions5 Long Questions
Showing 101110 of 216 Questions
Page 11 of 22
Q101❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
Which type of shift operation is defined as: 'Inserts a zero from the left, moves every bit one position to the right, and copies the rightmost bit into the carry flag'?
💻 assembly Snippet
shr ax, 1 ; Inserts 0 at MSB, shifts bits right, copies LSB to CF
  1. A.SHL
  2. B.SAL
  3. C.SAR
  4. D.None of the given
Q102❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
Which conditional jump instruction is taken if the last signed arithmetic operation produced an unexpected sign change (signed overflow, setting `OF = 1`)?
💻 assembly Snippet
add al, bl
jo overflow_handler ; Jumps if Overflow Flag OF = 1
  1. A.JO
  2. B.JNO
  3. C.JNZ
  4. D.JZ
Q103❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
Which type of rotation operation is defined as: 'The carry flag is inserted from the left into the most significant bit, every bit moves one position to the right, and the rightmost bit is dropped into the carry flag'?
💻 assembly Snippet
rcr ax, 1 ; Rotates AX right through Carry Flag
  1. A.RCR
  2. B.ROL
  3. C.RCL
  4. D.ROR
Q104❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
Which conditional jump instruction is taken if the last arithmetic operation produced a result with even parity (Parity Flag PF = 1)?
💻 assembly Snippet
test al, al
jpe even_parity_label ; Jumps if AL has an even number of 1 bits
  1. A.JP
  2. B.JPE
  3. C.JNP
  4. D.both JP and JPE
Q105❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
Which shift operation is illustrated by the diagram: `| 0 | --> | 1 | 1 | 0 | 1 | 0 | 0 | 0 | --> | C |`?
💻 assembly Snippet
shr al, 1 ; Inserts 0 at MSB, shifts bits right, copies LSB to CF
  1. A.Shl
  2. B.sar
  3. C.Shr
  4. D.Sal
Q106❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
Which shift operation is illustrated by the diagram: `| C | <-- | 1 | 1 | 0 | 1 | 0 | 0 | 0 | <-- | 0 |`?
💻 assembly Snippet
shl al, 1 ; Inserts 0 at LSB, shifts bits left, copies MSB to CF
  1. A.Shl
  2. B.sar
  3. C.Shr
  4. D.Sal
Q107❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
The `ADC` (Add with Carry) instruction operates on how many total operands (including explicit and implicit operands)?
💻 assembly Snippet
adc ax, bx ; Destination = AX, Source = BX, Implicit = Carry Flag (CF)
  1. A.two
  2. B.three
  3. C.Five
  4. D.Zero
Q108❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
An instruction that forces program execution to branch to a target address regardless of the state of processor flags is called a(n) __________.
💻 assembly Snippet
jmp target_label ; Unconditional branch regardless of flags
  1. A.Jump
  2. B.Conditional jump
  3. C.Unconditional jump
  4. D.Stay
Q109❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
When executing a subtraction or comparison instruction (`SUB` / `CMP`), if the Zero Flag is set (`ZF = 1`), what does this indicate regarding the destination and source operands?
💻 assembly Snippet
cmp ax, bx ; Performs AX - BX; if AX == BX, ZF = 1
  1. A.DEST = SRC
  2. B.DEST != SRC
  3. C.DEST < SRC
  4. D.DEST > SRC
Q110❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
When an unsigned source operand is subtracted from an unsigned destination operand and the destination is strictly smaller, a borrow is required. Which flag condition is set?
💻 assembly Snippet
mov ax, 5
cmp ax, 10 ; 5 < 10 -> Requires borrow -> 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