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 141 โ€“ 150 of 264 Questions
Page 15 of 27
Q141
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Video Display Architecture (Attribute Byte Bit 1 Foreground Green)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In text-mode video attribute byte layout, which bit position specifies the Green component of the foreground color?
  1. A.1
  2. B.5
  3. C.3
  4. D.7
Q142
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Video Display Architecture (Video Memory Offset Formula)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In standard 80x25 text-mode video memory ($0\text{xB8000}$), what formula calculates the video memory byte offset for a given screen location at zero-indexed coordinates (`Row`, `Column`)?
๐Ÿ’ป assembly Snippet
; Screen Location Offset = (Row * 80 + Column) * 2
; Example: Row 1, Column 0 -> (1 * 80 + 0) * 2 = 160
  1. A.Offset = (Row * 80 + Column) * 2
  2. B.Offset = Row * 80 + Column
  3. C.Offset = (Row * 25 + Column) * 2
  4. D.Offset = Row * Column * 2
Q143
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Video Display Architecture (Video Memory Offset Formula)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In 80x25 text-mode video memory architecture, which formula accurately calculates the memory byte offset for a screen position specified by vertical coordinate (`ypos`) and horizontal coordinate (`xpos`)?
๐Ÿ’ป assembly Snippet
; Screen Location Offset = (ypos * 80 + xpos) * 2
  1. A.location = ( ypos * 80 + SP ) * 3
  2. B.location = ( ypos * 80 + slocation ) * 2
  3. C.location = ( ypos * 80 + xpos ) * 2
  4. D.None of the Given
Q144
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (Five Primitive String Instructions)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What are the five primary primitive string manipulation instructions available in x86 assembly language?
  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
Q145
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (STOS Store String Operation)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which x86 string instruction transfers a byte or word from register `AL` or `AX` to the memory destination addressed by `ES:DI` and updates `DI` according to the Direction Flag?
๐Ÿ’ป assembly Snippet
stosw ; Stores AX into [ES:DI], updates DI
  1. A.LODS
  2. B.STOS
  3. C.SCAS
  4. D.MOVE
Q146
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (LODS Load String Operation)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which x86 string instruction transfers a byte or word from the source memory location `DS:SI` into register `AL` or `AX` and updates `SI` according to the Direction Flag?
๐Ÿ’ป assembly Snippet
lodsb ; Loads byte from [DS:SI] into AL, updates SI
  1. A.LODS
  2. B.STOS
  3. C.SCAS
  4. D.MOVE
Q147
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (SCAS Scan String Operation)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which x86 string instruction compares the byte or word in accumulator register `AL` or `AX` with the memory destination element addressed by `ES:DI` and updates status flags accordingly?
๐Ÿ’ป assembly Snippet
scasb ; Compares AL with byte at [ES:DI], sets flags, updates DI
  1. A.LODS
  2. B.STOS
  3. C.SCAS
  4. D.MOVE
Q148
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (REPE and REPZ Repeat Prefixes)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which pair of repeat prefixes repeats the subsequent string instruction as long as the Zero Flag is set (`ZF = 1`) and register `CX != 0`?
๐Ÿ’ป assembly Snippet
repe cmpsb ; Repeats CMPSB while bytes match (ZF = 1) and CX != 0
  1. A.REP or REPZ
  2. B.REPE or REPZ
  3. C.REPE or RPZ
  4. D.RPE or REPZ
Q149
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (LES Load Extra Segment Pointer)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What is the primary action performed by the `LES` instruction in x86 assembly language?
๐Ÿ’ป assembly Snippet
les di, [far_ptr] ; Loads offset into DI and segment into ES
  1. A.Loads ES with segment portion from far pointer
  2. B.Loads DS with segment portion from far pointer
  3. C.Loads PS with segment portion from far pointer
  4. D.Loads LS with segment portion from far pointer
Q150
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (LDS Load Data Segment Pointer)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What is the primary action performed by the `LDS` instruction in x86 assembly language?
๐Ÿ’ป assembly Snippet
lds si, [far_ptr] ; Loads offset into SI and segment into DS
  1. A.Loads ES with segment portion from far pointer
  2. B.Loads DS with segment portion from far pointer
  3. C.Loads PS with segment portion from far pointer
  4. D.Loads LS with segment portion from far pointer