Display Memory

Lecture 16: Display Memory

216 Questions192 MCQs19 Short Questions5 Long Questions
Showing 5160 of 216 Questions
Page 6 of 22
Q51❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
Which bitwise logical instruction is primarily used as a bit-masking operation to check whether specific bits of a number are set (1) or cleared (0)?
💻 assembly Snippet
and ax, 0x0001 ; Checks if bit 0 is set
  1. A.AND
  2. B.OR
  3. C.XOR
  4. D.NOT
Q52❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
Which bitwise logical instruction is used as a masking operation to selectively invert (toggle) specific bits of an operand?
💻 assembly Snippet
xor ax, 0x00FF ; Inverts lower 8 bits of AX while leaving upper 8 bits unchanged
  1. A.AND
  2. B.OR
  3. C.XOR
  4. D.NOT
Q53❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
Bitwise masking operations in assembly language are fundamentally classified into four core functional categories: selective bit __________.
  1. A.Clearing, Setting, Inversion, and Testing
  2. B.Setting, Clearing, Moving, and Testing
  3. C.Addition, Subtraction, Multiplication, and Division
  4. D.None of the given
Q54❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
During a logical or arithmetic Bitwise Left-Shift Operation (`SHL` / `SAL`), what happens to the Most Significant Bit (leftmost bit)?
💻 assembly Snippet
shl ax, 1 ; Leftmost bit shifted into Carry Flag (CF)
  1. A.will drop
  2. B.will go into CF
  3. C.Will come to the right most
  4. D.will be always 1
Q55❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
Suppose the decimal number 35 is shifted binary 2 bits to the left (`35 << 2`). What is its new decimal value?
💻 assembly Snippet
mov al, 35 ; Binary: 00100011 (35 decimal)
shl al, 2  ; Binary: 10001100 (140 decimal)
  1. A.35
  2. B.70
  3. C.140
  4. D.17
Q56📝 Short Q📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
Write any two program control / flow control instructions used in 16-bit x86 assembly language.
💻 assembly Snippet
jmp target_label ; Unconditional branch
call subroutine  ; Subroutine call branch
Q57📝 Short Q📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
Explain the function and mechanism of the Rotate Right (`ROR`) assembly instruction.
💻 assembly Snippet
mov al, 10000001b
ror al, 1 ; AL becomes 11000000b, CF = 1
Q58❓ MCQ📑 Lec 6Medium🔁RepeatedHigh-Yield💡Conceptual
If `AX` contains decimal -2 (0xFFFE in 16-bit hex) and `BX` contains decimal +2 (0x0002 in hex), what happens after executing `CMP AX, BX` followed by `JA label`?
💻 assembly Snippet
mov ax, -2 ; AX = 0xFFFE (65534 unsigned)
mov bx, 2  ; BX = 0x0002 (2 unsigned)
cmp ax, bx ; 65534 > 2 -> CF = 0, ZF = 0
ja  label  ; Jump is taken!
  1. A.Zero flag will set
  2. B.Jump will be taken
  3. C.ZF will contain value -4
  4. D.Jump will not be taken
Q59📝 Short Q📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
What is the key functional difference between the `SHR` (Shift Logical Right) and `SAR` (Shift Arithmetic Right) instructions?
💻 assembly Snippet
mov al, 10000000b ; -128 signed / 128 unsigned
shr al, 1 ; AL = 01000000b (64)
sar al, 1 ; AL = 11000000b (-64)
Q60❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
If register `BL` contains decimal 5 (`00000101b`), what value will `BL` hold after performing a single bitwise right shift (`SHR BL, 1`)?
💻 assembly Snippet
mov bl, 5 ; BL = 00000101b (5)
shr bl, 1 ; BL = 00000010b (2 integer)
  1. A.2
  2. B.2.5
  3. C.5
  4. D.10