Ch 07: Video Memory & Screen Display

264 Questions264 MCQs0 Short Questions0 Long Questions
๐ŸŽฏ Exam Practice Papers
SEMESTER PASS

CS401 - Computer Architecture and Assembly Language Programming Examination Practice

Timed practice exam simulation for CS401 - Computer Architecture and Assembly Language Programming.

๐Ÿ“˜ VU MID TERM EXAMLectures 1 to 22
โฑ๏ธ 60 Mins

Mid Term Examination

Covers syllabus of Lectures 1 to 22 with 30 high-yield MCQs in a timed exam environment.

๐Ÿ“30 MCQs
โฑ๏ธ60 Minutes
๐Ÿ“— VU FINAL TERM EXAMLectures 23 to 45
โฑ๏ธ 90 Mins

Final Term Examination

Comprehensive semester exam preparation with 45 MCQs covering Lectures 23 to 45 with complete course coverage.

๐Ÿ“45 MCQs
โฑ๏ธ90 Minutes
Showing 81 โ€“ 90 of 264 Questions
Page 9 of 27
Q81
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Video Display Architecture (VGA Text Character Mapping)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When writing character text to video memory, which byte value or offset aligns with standard text rendering when sent to the VGA adapter?
  1. A.0x60
  2. B.0x90
  3. C.0x30
  4. D.0x40
Q82
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Video Display Architecture (Attribute Byte Bit 7 Character Blinking)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In standard text mode video RAM attribute byte formatting (`B IRGB I rgb`), which bit position controls the Blinking attribute of the foreground character?
๐Ÿ’ป assembly Snippet
mov word [es:0], 0x8741 ; Attribute bit 7 set (0x80) causes character 'A' to blink
  1. A.6
  2. B.7
  3. C.5
  4. D.3
Q83
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Video Display Architecture (Attribute Byte Bit 3 Foreground Intensity)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In standard text mode video RAM attribute byte formatting (`B IRGB I rgb`), which bit position represents the Intensity (I) component of the foreground color?
  1. A.4
  2. B.5
  3. C.3
  4. D.7
Q84
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Video Display Architecture (Attribute Byte Bit 5 Background Green)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In standard text mode video RAM attribute byte formatting (`B IRGB I rgb`), which bit position represents the Green (G) component of the background color?
  1. A.1
  2. B.5
  3. C.3
  4. D.7
Q85
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Video Display Architecture (Attribute Byte Bit 1 Foreground Green)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In standard text mode video RAM attribute byte formatting (`B IRGB I rgb`), which bit position represents the Green (g) component of the foreground color?
  1. A.1
  2. B.5
  3. C.3
  4. D.7
Q86
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Video Display Architecture (Text Mode Video Memory Location Formula)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In standard text-mode video RAM (80 columns x 25 rows), what mathematical formula calculates the exact memory byte offset address for a screen character location at zero-indexed Row ($R$) and Column ($C$)?
๐Ÿ’ป assembly Snippet
; Calculating offset for Row 10, Column 20:
; Offset = (10 * 80 + 20) * 2 = (800 + 20) * 2 = 1640 (0x0668)
Q87
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Video Display Architecture (Screen Location Offset Formula)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In text-mode video memory addressing, which formula correctly calculates the byte location/offset on screen for a given Y-position (`hypos` / `ypos`) and X-position (`epos` / `xpos`)?
๐Ÿ’ป assembly Snippet
; location = (ypos * 80 + xpos) * 2
  1. A.location = ( hypos * 80 + SP ) * 3
  2. B.location = ( hypos * 80 + slocation ) * 2
  3. C.location = ( hypos * 80 + epos ) * 2
  4. D.None of the Given
Q88
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (Five Primitive String Instructions)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In x86 assembly language architecture, what are the five primitive string manipulation instructions?
  1. A.STOS, LODS, CMPS, SCAS, and MOVS
  2. B.MUL, DIV, ADD, ADC and MOVE
  3. C.SSB, ADD, CMPS, ADC, and MOVS
  4. D.None of the Given
Q89
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (STOS Store String Instruction)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which primitive string instruction transfers a byte or word from register `AL` or `AX` into the destination string element addressed by `ES:DI` and automatically updates index register `DI`?
๐Ÿ’ป assembly Snippet
cld
stosw ; Stores AX word into [ES:DI] and adds 2 to DI
  1. A.LODS
  2. B.STOS
  3. C.SCAS
  4. D.MOVE
Q90
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (LODS Load String Instruction)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which primitive string instruction transfers a byte or word from the source string location addressed by `DS:SI` into register `AL` or `AX` and automatically updates index register `SI`?
๐Ÿ’ป assembly Snippet
cld
lodsb ; Loads byte from [DS:SI] into AL and increments SI by 1
  1. A.LODS
  2. B.STOS
  3. C.SCAS
  4. D.MOVE