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 111 โ€“ 120 of 264 Questions
Page 12 of 27
Q111
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (STOSB Index Pointer Step Size 1)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In the `STOSB` (Store String Byte) instruction, by how many bytes is the destination index register (`DI`) incremented or decremented on each execution?
๐Ÿ’ป assembly Snippet
cld
stosb ; Stores byte in AL at [ES:DI] and updates DI by 1
  1. A.3
  2. B.2
  3. C.1
  4. D.4
Q112
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Video Display Architecture (VESA VBE 16-Bit RGB 5:6:5 Format)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In VESA VBE high-resolution 16-bit graphics modes (HiColor), how are the 16 bits of color data allocated per pixel across Red, Green, and Blue color channels?
๐Ÿ’ป assembly Snippet
; RGB 5:6:5 -> 5 bits Red, 6 bits Green, 5 bits Blue = 16 bits per pixel
  1. A.5:5:5 format
  2. B.5:6:5 format
  3. C.6:5:6 format
  4. D.5:6:7 format
Q113
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Video Display Architecture (BIOS INT 10h Four Service Categories)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In IBM PC system architecture, video BIOS services (`INT 10h`) are categorized into how many broad primary functional categories (e.g., Mode Setting, Cursor Control, Character I/O, Graphics Pixel I/O)?
  1. A.5
  2. B.4
  3. C.3
  4. D.2
Q114
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Video Display Architecture (ASCII Code 0x30 Character Mapping)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In the assembly instruction `mov word [es:160], 0x1230`, what character does the low-order byte `0x30` represent when rendered in text-mode video memory?
๐Ÿ’ป assembly Snippet
mov word [es:160], 0x1230 ; Low byte 0x30 = '0'
  1. A.A
  2. B.B
  3. C.0
  4. D.1
Q115
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Video Display Architecture (Clear Screen Word 0x0720)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
The standard assembly language clear screen subroutine initializes the entire video memory block (80x25 character locations) by filling each cell with which 16-bit word value?
๐Ÿ’ป assembly Snippet
mov ax, 0x0720 ; 0x07 = normal attribute, 0x20 = ASCII space ' '
mov cx, 2000   ; 80 columns * 25 rows
rep stosw      ; Clears screen
  1. A.0417
  2. B.0720
  3. C.0741
  4. D.0174
Q116
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (STOSW and CX Iteration Decrement)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When executing a word string instruction (such as `STOSW`) with the repeat prefix (`REP`), how is the iteration count in register `CX` updated after each iteration?
๐Ÿ’ป assembly Snippet
rep stosw ; Decrements CX by 1 per word stored
  1. A.Incremented by 1
  2. B.Decremented by 1
  3. C.Incremented by 2
  4. D.Decremented by 2
Q117
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Video Display Architecture (Two Bytes Per Screen Location)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In standard text-mode video memory (e.g. 80x25 mode), how many bytes are allocated for each individual screen location?
๐Ÿ’ป assembly Snippet
; Screen Location = 2 bytes (Low Byte = ASCII, High Byte = Attribute)
  1. A.Eight bytes
  2. B.Four bytes
  3. C.One byte
  4. D.Two bytes
Q118
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Video Display Architecture (Attribute Byte in High-Order Position)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In text-mode video memory, each screen location takes 2 bytes (one word). What information is stored in the second (high-order) byte of that word?
๐Ÿ’ป assembly Snippet
mov word [es:0], 0x0741 ; Low byte 0x41 = 'A', High byte 0x07 = Light gray on black attribute
  1. A.Character color / 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
Q119
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (REP Prefix Loop Counter Decrement)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When executing string primitive operations, the `REP` prefix will always __________.
๐Ÿ’ป assembly Snippet
rep movsb ; Decrements CX by 1 per byte moved
  1. A.Decrement CX by 1
  2. B.Increment CX by 1
  3. C.Increment CX by 2
  4. D.Decrement CX by 2
Q120
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (SCAS Scan String Primitive Function)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
The fundamental function of the `SCAS` (Scan String) primitive instruction is to __________.
๐Ÿ’ป assembly Snippet
scasb ; Compares AL with [ES:DI] and updates flags
  1. A.Compare
  2. B.Sort
  3. C.Move data
  4. D.Load register