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 91 โ€“ 100 of 264 Questions
Page 10 of 27
Q91
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (SCAS Scan String Instruction)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which primitive string instruction compares a source byte or word in register `AL` or `AX` with the destination string element addressed by `ES:DI` and updates status flags accordingly?
๐Ÿ’ป assembly Snippet
cld
scasb ; Compares AL with [ES:DI] and updates DI and status flags
  1. A.LODS
  2. B.STOS
  3. C.SCAS
  4. D.MOVE
Q92
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (REPE and REPZ Repeat Prefixes)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which repeat prefix instruction repeats the following string operation as long as the Zero Flag is set (`ZF = 1`), while `REPNE` / `REPNZ` repeats while the Zero Flag is clear (`ZF = 0`)?
๐Ÿ’ป assembly Snippet
repe scasb ; Repeats scasb 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
Q93
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (LES Load Extra Segment Pointer)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
The pointer load instruction `LES reg16, [mem32]` loads a 32-bit far memory pointer into a 16-bit destination register and which segment register?
๐Ÿ’ป assembly Snippet
les di, [far_ptr] ; Loads offset into DI and segment into ES
  1. A.ES
  2. B.DS
  3. C.PS
  4. D.LS
Q94
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (LDS Load Data Segment Pointer)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
The pointer load instruction `LDS reg16, [mem32]` loads a 32-bit far memory pointer into a 16-bit destination register and which segment register?
๐Ÿ’ป assembly Snippet
lds si, [far_ptr] ; Loads offset into SI and segment into DS
  1. A.ES
  2. B.DS
  3. C.PS
  4. D.LS
Q95
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (REP Prefix and CX Iteration Count)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When used with string primitive instructions (such as `MOVSB`), the `REP` prefix repeats the string instruction according to the iteration count stored in which register?
๐Ÿ’ป assembly Snippet
mov cx, 100
rep movsb ; Repeats movsb 100 times using CX as iteration count
  1. A.DX
  2. B.CX
  3. C.BX
  4. D.AX
Q96
โ“ 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` to the string element addressed by `ES:DI` and automatically updates index register `DI`?
๐Ÿ’ป assembly Snippet
cld
stosw ; Stores AX word into [ES:DI] and increments DI by 2
  1. A.LODS
  2. B.STOS
  3. C.SCAS
  4. D.MOVE
Q97
โ“ 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 location `DS:SI` to `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
Q98
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (REPE and REPZ Repeat Prefixes)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which repeat prefix instruction repeats the following string instruction while the Zero Flag is set (`ZF = 1`), whereas `REPNE` or `REPNZ` repeats while the Zero Flag is clear (`ZF = 0`)?
๐Ÿ’ป assembly Snippet
repe scasb ; Repeats scasb 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
Q99
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (REP Prefix and CX Iteration Count)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When used with string primitive instructions (such as `MOVSB`), the `REP` prefix repeats the operation according to the iteration count stored in which register?
๐Ÿ’ป assembly Snippet
mov cx, 100
rep movsb ; Repeats movsb 100 times using CX as iteration count
  1. A.DX
  2. B.CX
  3. C.BX
  4. D.AX
Q100
โ“ 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 written to text-mode video RAM?
๐Ÿ’ป assembly Snippet
mov word [es:160], 0x1230 ; Low byte 0x30 = '0', High byte 0x12 = Green on Black attribute
  1. A.A
  2. B.B
  3. C.0
  4. D.1