Display Memory

Lecture 16: Display Memory

216 Questions192 MCQs19 Short Questions5 Long Questions
Showing 3140 of 216 Questions
Page 4 of 22
Q31❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
Which rotation operation inserts the Carry Flag into the leftmost position (MSB), shifts all bits one position to the right, and copies the exiting rightmost bit (LSB) into the Carry Flag?
💻 assembly Snippet
rcr ax, 1 ; Shifts CF into MSB, shifts bits right, LSB into CF
  1. A.RCR
  2. B.ROL
  3. C.RCL
  4. D.ROR
Q32❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
Which conditional jump instruction is taken if the last arithmetic operation produced a result in its destination with even parity (Parity Flag `PF = 1`)?
💻 assembly Snippet
test al, al
jpe even_parity_label ; Jumps if PF == 1 (synonymous with JP)
  1. A.JP
  2. B.JPE
  3. C.JNP
  4. D.both JP and JPE
Q33❓ 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 status flag will be set?
💻 assembly Snippet
mov ax, 3
cmp ax, 5 ; 3 < 5 -> Requires borrow, sets CF = 1
  1. A.ZF
  2. B.CF
  3. C.SF
  4. D.OF
Q34❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
True or False: The x86 assembly instructions `SHR` (Shift Logical Right) and `SAL` (Shift Arithmetic Left) perform the same shift operation.
  1. A.True
  2. B.False
Q35❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
True or False: The `JA` (Jump if Above) instruction cannot trigger a jump after a `CMP` instruction if the unsigned destination operand is greater than the source operand.
💻 assembly Snippet
cmp ax, bx
ja label ; Jumps if AX > BX (unsigned)
  1. A.True
  2. B.False
Q36❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
The bit shift operation diagram `| 0 | --> | 1 | 1 | 0 | 1 | 0 | 0 | 0 | --> | C |` (inserting 0 into MSB from left, shifting bits right, and dropping LSB into Carry Flag) represents which instruction?
💻 assembly Snippet
shr ax, 1 ; Inserts 0 into MSB from left, shifts bits right, LSB to Carry Flag
  1. A.Shl
  2. B.sar
  3. C.Shr
  4. D.Sal
Q37❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
The bit shift operation diagram `| C | <-- | 1 | 1 | 0 | 1 | 0 | 0 | 0 | <-- | 0 |` (inserting 0 into LSB from right, shifting bits left, and dropping MSB into Carry Flag) represents which instruction?
💻 assembly Snippet
shl ax, 1 ; Inserts 0 into LSB from right, shifts bits left, MSB to Carry Flag
  1. A.Shl
  2. B.sar
  3. C.Shr
  4. D.Sal
Q38❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
Between the conditional jump mnemonics `JNE` (Jump if Not Equal) and `JNZ` (Jump if Not Zero), the functional difference exists only for the __________.
💻 assembly Snippet
cmp ax, bx
jne label ; Synonymous with JNZ label (tests ZF == 0)
  1. A.Programmer or Logic
  2. B.Assembler
  3. C.Debugger
  4. D.IAPX88 Processor
Q39❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
An instruction that, upon execution, unconditionally branches to a target address regardless of the state of any CPU 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
Q40❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
When performing a comparison (`CMP DEST, SRC`), if the result of subtracting source from destination is zero, the Zero Flag is set (`ZF = 1`). What does this condition indicate?
💻 assembly Snippet
cmp ax, bx ; If AX == BX, ZF = 1
  1. A.DEST = SRC
  2. B.DEST != SRC
  3. C.DEST < SRC
  4. D.DEST > SRC