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 251 โ€“ 260 of 264 Questions
Page 26 of 27
Q251
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Primitive InstructionsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
After the execution of a MOVS (Move String) primitive instruction, which of the following registers are automatically updated?
๐Ÿ’ป assembly Snippet
movsb
  1. A.SI only
  2. B.DI only
  3. C.SI and DI only
  4. D.SI, DI and BP only
Q252
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.2. Auto Increment/DecrementEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In the STOSB (Store String Byte) instruction, when the Direction Flag (DF) is clear (DF = 0), destination index register DI is automatically:
๐Ÿ’ป assembly Snippet
cld
stosb  ; Increments DI by 1
  1. A.Incremented by 1
  2. B.Incremented by 2
  3. C.Decremented by 1
  4. D.Decremented by 2
Q253
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Primitive InstructionsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which set of 5 primitive instructions is specially provided by x86 assembly language for string manipulation?
  1. A.STOS, LODS, CMPS, SCAS, and MOVS
  2. B.MUL, DIV, ADD, ADC, and MOVE
  3. C.SBB, ADD, CMPS, ADC, and MOVS
  4. D.None of the given options
Q254
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Primitive InstructionsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which string primitive instruction transfers a byte or word from accumulator register AL or AX into the memory location addressed by ES:DI, and automatically updates DI?
๐Ÿ’ป assembly Snippet
stosb
  1. A.LODS
  2. B.STOS
  3. C.SCAS
  4. D.MOVE
Q255
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Primitive InstructionsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which string primitive instruction transfers a byte or word from source memory address DS:SI into accumulator register AL or AX, and automatically updates SI?
๐Ÿ’ป assembly Snippet
lodsb
  1. A.LODS
  2. B.STOS
  3. C.SCAS
  4. D.MOVE
Q256
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Primitive InstructionsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which string primitive instruction compares a byte or word in AL or AX with the destination string element addressed by ES:DI and updates CPU status flags?
๐Ÿ’ป assembly Snippet
scasb
  1. A.LODS
  2. B.STOS
  3. C.SCAS
  4. D.MOVE
Q257
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.3. String Comparison & ScanningEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which repeat prefixes repeat the associated string primitive instruction while the Zero Flag is set (ZF = 1)?
๐Ÿ’ป assembly Snippet
repe cmpsb
  1. A.REP or REPZ
  2. B.REPE or REPZ
  3. C.REPE or RPZ
  4. D.RPE or REPZ
Q258
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Primitive InstructionsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
The REP (Repeat) prefix automatically repeats a string instruction based on the count value stored in which register?
๐Ÿ’ป assembly Snippet
rep movsb
  1. A.DX
  2. B.CX
  3. C.BX
  4. D.AX
Q259
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Primitive InstructionsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
The REP prefix allows a string instruction to be repeated a count number of times determined by which register, enabling efficient block memory copy operations?
๐Ÿ’ป assembly Snippet
rep movsb
  1. A.DX
  2. B.CX
  3. C.BX
  4. D.AX
Q260
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Primitive InstructionsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which instruction prefix is used in x86 assembly language to repeat a string primitive operation for a block of memory?
๐Ÿ’ป assembly Snippet
rep movsb
  1. A.REP
  2. B.REPEAT
  3. C.REPB
  4. D.REPE