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 21 โ€“ 30 of 264 Questions
Page 3 of 27
Q21
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (STOS Accumulator Source Operand)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In the store string primitive instruction `STOS`, which register serves as the implicit source data register?
๐Ÿ’ป assembly Snippet
stosb ; Stores AL at [ES:DI]
  1. A.AL or AX registers
  2. B.DL or DX registers
  3. C.BL or BX registers
  4. D.CL or CX registers
Q22
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (REP Loop Counter Decrement)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When executing a string primitive instruction with the `REP` repeat prefix, how does `REP` modify the loop counter register `CX` during each iteration?
๐Ÿ’ป assembly Snippet
rep stosb ; Decrements CX by 1 per byte stored
  1. A.Increment CX by 1
  2. B.Increment CX by 2
  3. C.Decrement CX by 1
  4. D.Decrement CX by 2
Q23
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (SCAS Function)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What is the primary function of the string primitive instruction `SCAS` (Scan String)?
๐Ÿ’ป assembly Snippet
scasb ; Compares AL with [ES:DI] and updates flags
  1. A.Compare
  2. B.Sort
  3. C.Move data
  4. D.Jump
Q24
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (REP Prefix Flag Effects)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
After the execution of a string primitive instruction with the `REP` prefix, `CX` is decremented. Which of the following status flags in the FLAGS register are affected by the `REP` repetition mechanism?
๐Ÿ’ป assembly Snippet
rep stosb ; Decrements CX without altering status flags
  1. A.CF
  2. B.OF
  3. C.DF
  4. D.No flags will be affected
Q25
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (DS:SI Source Pointer)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In x86 string manipulation instructions, whenever an instruction requires a memory source pointer, which segment and index register pair holds the address?
๐Ÿ’ป assembly Snippet
lodsb ; Reads byte from memory location [DS:SI]
  1. A.ES:DI
  2. B.ES:BP
  3. C.DS:BP
  4. D.DS:SI
Q26
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Video Display Architecture (Attribute Byte Bit 7 Blinking)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In standard 8-bit text mode character attribute byte formatting, which bit position controls character blinking on screen?
  1. A.5
  2. B.6
  3. C.7
  4. D.8
Q27
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (REP STOSW CX Decrement)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When executing a word store string operation with repeat prefix (`REP STOSW`), how is the loop counter register `CX` modified per word iteration?
๐Ÿ’ป assembly Snippet
rep stosw ; Decrements CX by 1 per word stored
  1. A.Incremented by 1
  2. B.Incremented by 2
  3. C.Decremented by 1
  4. D.Decremented by 2
Q28
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Video Display Architecture (Video Memory Byte Layout)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In text mode video memory, each character cell is represented by a 16-bit word. What data is stored in the lower byte (even offset address) of this word?
๐Ÿ’ป assembly Snippet
mov word [es:0], 0x0741 ; 0x41 ('A') is in lower byte, 0x07 (attribute) is in upper byte
  1. A.The character code
  2. B.The attribute byte
  3. C.The parameters
  4. D.The dimensions
Q29
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Video Display Architecture (Screen Location Memory Size)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In text mode video memory, how many total bytes of memory correspond to a single character location on screen?
  1. A.One byte
  2. B.Two bytes
  3. C.Four bytes
  4. D.Eight bytes
Q30
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (Direction Flag DF Behavior)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Explain the significance and behavior of the Direction Flag (DF) when `DF = 0` versus when `DF = 1` during string instructions.
๐Ÿ’ป assembly Snippet
cld ; Clears DF (DF = 0, auto-increment mode)
std ; Sets DF (DF = 1, auto-decrement mode)