Display Memory

Lecture 16: Display Memory

216 Questions192 MCQs19 Short Questions5 Long Questions
Showing 2130 of 216 Questions
Page 3 of 22
Q21❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
What bit insertion occurs during a Shift Logical Right (`SHR`) operation?
💻 assembly Snippet
shr ax, 1 ; Inserts 0 into MSB (left), shifts bits right
  1. A.A zero at right
  2. B.A zero at left
  3. C.A one at right
  4. D.A one at left
Q22❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
Which status flag in the FLAGS register is evaluated by the conditional jump instructions `JC` (Jump if Carry) and `JNC` (Jump if No Carry)?
💻 assembly Snippet
jc carry_set_label ; Jumps if CF == 1
  1. A.carry
  2. B.parity
  3. C.zero
  4. D.sign
Q23❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
To divide a signed binary integer by 2 efficiently in assembly language, which shift instruction should be used?
💻 assembly Snippet
sar ax, 1 ; Signed division of AX by 2
  1. A.SHR
  2. B.SAR
  3. C.SHL
  4. D.SAL
Q24❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
In x86 assembly language, when does an Unconditional Jump instruction (`JMP`) execute its branching control transfer?
💻 assembly Snippet
jmp label ; Executes jump unconditionally
  1. A.Execute in every condition whether true or false
  2. B.If the condition is true
  3. C.If the condition is false
  4. D.None of the given
Q25❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
Which rotation operation moves every bit one position to the right, inserts the bit dropped from the rightmost position (LSB) into the leftmost position (MSB), and also copies that bit into the Carry Flag?
💻 assembly Snippet
ror ax, 1 ; Rotates bits right, LSB copied to MSB and Carry Flag
  1. A.ROL
  2. B.RCR
  3. C.RCL
  4. D.None of the given
Q26❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
True or False: When executing `JA` (Jump if Above) after a `CMP` instruction, the jump is NOT taken if the unsigned destination operand is larger than the unsigned source operand.
💻 assembly Snippet
cmp ax, bx
ja label ; Jumps if AX > BX (unsigned)
  1. A.True
  2. B.False
Q27❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
True or False: The x86 assembly instructions `SHL` (Shift Logical Left) and `SAL` (Shift Arithmetic Left) perform identical bitwise operations.
💻 assembly Snippet
shl ax, 1 ; Same hardware opcode as SAL AX, 1
  1. A.True
  2. B.False
Q28❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
When performing an unsigned subtraction where a larger source number is subtracted from a smaller destination number (`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
Q29❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
Which shift operation inserts a zero 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
shr ax, 1 ; Inserts 0 at left (MSB), shifts right, LSB to Carry Flag
  1. A.SHL
  2. B.SAL
  3. C.SAR
  4. D.None of the given
Q30❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
Which conditional jump instruction is executed if the previous signed arithmetic operation resulted in an unexpected sign change, indicating an overflow condition (`OF = 1`)?
💻 assembly Snippet
add al, bl
jo overflow_handler ; Jumps if OF == 1 (signed overflow)
  1. A.JO
  2. B.JNO
  3. C.JNZ
  4. D.JZ