Display Memory

Lecture 16: Display Memory

216 Questions192 MCQs19 Short Questions5 Long Questions
Showing 191200 of 216 Questions
Page 20 of 22
Q191❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
In the assembly instruction 'MOV WORD [ES:160], 0x1230', lower byte 0x30 represents which ASCII character?
💻 assembly Snippet
mov word [es:160], 0x1230
  1. A.A
  2. B.B
  3. C.0
  4. D.1
Q192❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
In text-mode Video RAM, each screen location is allocated two bytes (one 16-bit word). What does the second byte (the upper byte) represent?
💻 assembly Snippet
mov word [es:0], 0x0741  ; 'A' (0x41) with light gray attribute (0x07)
  1. A.The dimensions of the screen
  2. B.Character position on the screen
  3. C.Character color and attribute on the screen
  4. D.ASCII code of the character
Q193❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
To convert a single decimal digit value (0–9) to its corresponding ASCII character code in assembly language, which operation is performed?
💻 assembly Snippet
add al, 0x30  ; Convert digit in AL to ASCII
  1. A.Add 0x30 to the digit
  2. B.Subtract 0x30 from the digit
  3. C.Add 0x61 to the digit
  4. D.Subtract 0x61 from the digit
Q194❓ MCQ📑 Lec 6Medium🔁RepeatedHigh-Yield💡Conceptual
Executing the instruction 'MOV WORD [ES:160], 0x1230' prints the character '0' (ASCII 0x30) at which screen location in 80x25 text mode?
💻 assembly Snippet
mov word [es:160], 0x1230
  1. A.Second column of first row
  2. B.First column of second row
  3. C.Second column of second row
  4. D.First column of third row
Q195❓ MCQ📑 Lec 6Medium🔁RepeatedHigh-Yield💡Conceptual
In the 8-bit text-mode video attribute byte (B-R-G-B-I-R-G-B format), which bit bit-position represents the Red component of the background color?
  1. A.Bit 3
  2. B.Bit 4
  3. C.Bit 5
  4. D.Bit 6
Q196❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
In the 8-bit text-mode video attribute byte, which bit position represents the Blue component of the foreground color?
  1. A.Bit 0
  2. B.Bit 1
  3. C.Bit 2
  4. D.Bit 3
Q197❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
To clear the text-mode display screen, an assembly subroutine initializes every word cell in video memory to which hex value?
💻 assembly Snippet
mov ax, 0x0720
rep stosw
  1. A.0x0417
  2. B.0x0714
  3. C.0x0741
  4. D.0x0720
Q198❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
In text-mode Video RAM, each character cell occupies 2 bytes (one 16-bit word). What does the second byte (the upper byte) hold?
💻 assembly Snippet
mov word [es:0], 0x0741  ; 'A' (0x41) with attribute (0x07)
  1. A.Character color and attribute on the screen
  2. B.The dimensions of the screen
  3. C.Character position on the screen
  4. D.ASCII code of the character
Q199❓ MCQ📑 Lec 6Easy🔁RepeatedHigh-Yield💡Conceptual
To convert any single numerical digit (0–9) to its ASCII character representation, which operation is performed?
💻 assembly Snippet
add al, 0x30  ; Convert digit in AL to ASCII
  1. A.Add 0x30 to the digit
  2. B.Subtract 0x30 from the digit
  3. C.Add 0x61 to the digit
  4. D.Subtract 0x61 from the digit
Q200❓ MCQ📑 Lec 6Medium🔁RepeatedHigh-Yield💡Conceptual
In the 8-bit text-mode video attribute byte (B-R-G-B-I-R-G-B format), which bit position represents the Red component of the background color?
  1. A.Bit 3
  2. B.Bit 4
  3. C.Bit 5
  4. D.Bit 6