Display Memory

Lecture 16: Display Memory

216 Questions192 MCQs19 Short Questions5 Long Questions
Showing 6170 of 216 Questions
Page 7 of 22
Q61❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
After the execution of a Shift Arithmetic Right (`SAR`) instruction on a signed binary operand, what happens to the Most Significant Bit (MSB / sign bit)?
💻 assembly Snippet
mov al, 10000000b (-128)
sar al, 1 ; AL = 11000000b (-64), MSB remains 1
  1. A.The msb is replaced by a 0
  2. B.The msb is replaced by 1
  3. C.The msb retains its original value
  4. D.The msb is replaced by the value of CF
Q62❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
Unlike a short or near jump which is position-relative to the current Instruction Pointer (`IP`), a far jump instruction is __________ because it explicitly specifies both segment and offset target addresses.
💻 assembly Snippet
jmp 0x1000:0x0000 ; Absolute far jump reloads CS and IP
  1. A.memory dependent
  2. B.Absolute
  3. C.temporary
  4. D.indirect
Q63📝 Short Q📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
Briefly describe what the following assembly code sequence accomplishes in a single line: `mov cx, 0xffff` `loop $`
💻 assembly Snippet
mov cx, 0xffff ; Load max 16-bit count
loop $        ; Jump to current instruction offset ($) while CX != 0
Q64❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
The bit diagram `| 0 | --> | 1 | 1 | 0 | 1 | 0 | 0 | 0 | --> | C |` illustrates which right-shift operation where 0 enters the MSB and the LSB is shifted into the Carry Flag?
💻 assembly Snippet
shr al, 1 ; Shifts AL right: 0 -> MSB, LSB -> Carry Flag
  1. A.Shl
  2. B.sar
  3. C.Shr
  4. D.Sal
Q65❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
The bit diagram `| C | <-- | 1 | 1 | 0 | 1 | 0 | 0 | 0 | <-- | 0 |` illustrates which left-shift operation where 0 enters the LSB and the MSB is shifted into the Carry Flag?
💻 assembly Snippet
shl al, 1 ; Shifts AL left: MSB -> Carry Flag, LSB <- 0
  1. A.Shl
  2. B.sar
  3. C.Shr
  4. D.Sal
Q66❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
Since `JNE` (Jump if Not Equal) and `JNZ` (Jump if Not Zero) assemble into the exact same machine opcode (`0x75`), the distinction between these two mnemonics exists strictly for __________.
💻 assembly Snippet
cmp ax, bx
jne label ; Checks equality logically (ZF = 0)

sub ax, 1
jnz label ; Checks zero arithmetic result (ZF = 0)
  1. A.Programmer or Logic
  2. B.Assembler
  3. C.Debugger
  4. D.iAPX88
Q67❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
An instruction that upon execution transfers control unconditionally to a target address regardless of processor flags is called a(n) __________.
💻 assembly Snippet
jmp target_label ; Unconditional branch
  1. A.Jump
  2. B.Conditional jump
  3. C.Unconditional jump
  4. D.Stay
Q68❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
When comparing two numbers (`CMP DEST, SRC`), if subtracting the source from the destination yields zero, the Zero Flag is set (`ZF = 1`). This indicates that __________.
💻 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
Q69❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
When an unsigned source operand is subtracted from an unsigned destination operand (`CMP DEST, SRC`) and the destination is smaller (`DEST < SRC`), a borrow occurs, which sets the __________.
💻 assembly Snippet
mov ax, 5
cmp ax, 10 ; 5 - 10 requires borrow -> 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
Q70❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
In unsigned comparison (`CMP DEST, SRC`), if the result produces `ZF = 1` OR `CF = 1`, which relationship condition between unsigned destination (`UDEST`) and unsigned source (`USRC`) is satisfied?
💻 assembly Snippet
cmp ax, bx
jbe label ; Jumps if ZF = 1 or CF = 1 (AX <= BX unsigned)
  1. A.DEST = SRC
  2. B.DEST != SRC
  3. C.UDEST <= USRC
  4. D.DEST > SRC