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 191 โ€“ 200 of 264 Questions
Page 20 of 27
Q191
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ LES and LDS Far Pointer Memory Loading RulesMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Explain how the LES and LDS instructions load segment and offset registers from memory according to Intel's byte significance (little-endian) ordering, detailing parameter syntax and subroutine application.
๐Ÿ’ป assembly Snippet
les di, [far_ptr]
lds si, [far_ptr]
Q192
๐Ÿง  Long Problem๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ Text Mode Screen Scrolling using REP MOVSWHardโญ๐Ÿ’ก๐ŸŒŸ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Describe the implementation of text mode screen scrolling using the REP MOVSW instruction in 8088 assembly language, specifying source/destination memory offset setup, row count calculations, and clearing the bottom row.
๐Ÿ’ป assembly Snippet
mov ax, 0xB800
mov ds, ax
mov es, ax
mov si, 160
mov di, 0
mov cx, 1920
cld
rep movsw
Q193
๐Ÿง  Long Problem๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ String Comparison Subroutine and REP/REPE Opcode EncodingHardโญ๐Ÿ’ก๐ŸŒŸ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Write a complete 8088 assembly subroutine using REPE CMPSB to compare two null-terminated strings for equality, and explain why debuggers show the prefix byte for REP and REPE identically.
๐Ÿ’ป assembly Snippet
repe cmpsb
je strings_match
Q194
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ STOSW String Instruction and Index UpdatesEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
During the execution of the STOSW (Store String Word) instruction when the Direction Flag (DF) is clear (0), how is the destination index register updated?
๐Ÿ’ป assembly Snippet
cld
stosw
  1. A.DI is incremented by 1
  2. B.DI is incremented by 2
  3. C.DI is decremented by 1
  4. D.DI is decremented by 2
Q195
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ STOSB String Instruction and Index UpdatesEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
During the execution of the STOSB (Store String Byte) instruction when the Direction Flag (DF) is clear (0), how is the destination index register (DI) updated?
๐Ÿ’ป assembly Snippet
cld
stosb
  1. A.Incremented by 1
  2. B.Incremented by 2
  3. C.Decremented by 1
  4. D.Decremented by 2
Q196
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ REP Prefix Counter Decrement MechanicsMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When the REP prefix is executed alongside the STOSW instruction, how is the count register (CX) updated in each iteration?
๐Ÿ’ป assembly Snippet
mov cx, 100
rep stosw
  1. A.Decremented by 1
  2. B.Decremented by 2
  3. C.Incremented by 1
  4. D.Incremented by 2
Q197
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ STOSB Byte Granularity and Index UpdatesEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
By how many bytes is the index register modified during a single execution of the STOSB (Store String Byte) instruction?
๐Ÿ’ป assembly Snippet
stosb
  1. A.3 bytes
  2. B.2 bytes
  3. C.1 byte
  4. D.4 bytes
Q198
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ CLD Instruction and Direction Flag ControlEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which assembly language instruction is used to clear the Direction Flag (DF = 0) to enable autoincrement mode for string operations?
๐Ÿ’ป assembly Snippet
cld
  1. A.CLD
  2. B.CLRD
  3. C.CLDF
  4. D.CLR DF
Q199
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ STOSW String Instruction Pointer RulesEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
During the execution of the STOSW instruction when the Direction Flag (DF) is clear (0), how is the Destination Index (DI) register updated?
๐Ÿ’ป assembly Snippet
cld
stosw
  1. A.Incremented by 1
  2. B.Incremented by 2
  3. C.Decremented by 1
  4. D.Decremented by 2
Q200
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ String Instructions and Memory-to-Memory Data MovementEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In 8088 assembly language, which specialized family of instructions allows direct memory-to-memory block data transfers without loading intermediate general-purpose registers?
๐Ÿ’ป assembly Snippet
rep movsb
  1. A.String instructions
  2. B.Word instructions
  3. C.Indirect instructions
  4. D.Stack instructions