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 241 โ€“ 250 of 264 Questions
Page 25 of 27
Q241
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.2. STOS Example - Clearing the ScreenEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In the STOSB (Store String Byte) instruction, the destination index register DI is automatically incremented or decremented by how many bytes after each store operation?
๐Ÿ’ป assembly Snippet
stosb
  1. A.4
  2. B.1
  3. C.2
  4. D.3
Q242
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.4. SCAS Example - String SearchEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which mathematical operation is performed internally by the SCAS (Scan String) instruction to compare data and set status flags?
๐Ÿ’ป assembly Snippet
scasb  ; Subtracts [es:di] from AL to update flags
  1. A.Division
  2. B.Multiplication
  3. C.Addition
  4. D.Subtraction
Q243
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.7. REP PrefixesMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When the REP repeat prefix decrements the CX register during string operations, which CPU status flags are modified by the CX decrement?
๐Ÿ’ป assembly Snippet
rep movsb
  1. A.CF (Carry Flag)
  2. B.OF (Overflow Flag)
  3. C.DF (Direction Flag)
  4. D.No flags will be affected
Q244
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Primitive InstructionsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which pair of advantages best describes why string primitive instructions are incorporated into the 8088 processor?
  1. A.Efficiency and accuracy
  2. B.Reduction in code size and accuracy
  3. C.Reduction in code size and speed
  4. D.Reduction in code size and efficiency
Q245
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.7. REP PrefixesEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
During string iteration, what operation does the REP (Repeat) prefix automatically perform on register CX for each iteration step?
๐Ÿ’ป assembly Snippet
rep stosb
  1. A.Decrement CX by 1
  2. B.Increment CX by 1
  3. C.Increment CX by 2
  4. D.Decrement CX by 2
Q246
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.6. SCAS InstructionEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What is the primary function performed by the SCAS (Scan String) instruction?
๐Ÿ’ป assembly Snippet
scasb
  1. A.Compare
  2. B.Sort
  3. C.Move data
  4. D.Multiply data
Q247
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Primitive InstructionsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which pair of registers is used to index memory locations during string primitive instruction execution?
๐Ÿ’ป assembly Snippet
movsb
cmpsb
  1. A.DI and BP
  2. B.SI and BP
  3. C.DI and SI
  4. D.DS and SI
Q248
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.2. Auto Increment/DecrementEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which assembly language instruction is used to clear the Direction Flag (DF = 0) for auto-increment string processing?
๐Ÿ’ป assembly Snippet
cld  ; Clear Direction Flag (auto-increment mode)
  1. A.CLD
  2. B.CLRD
  3. C.CL DF
  4. D.CLR DF
Q249
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.2. Auto Increment/DecrementEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When executing the STOSW (Store String Word) instruction with the Direction Flag cleared (DF = 0), destination index register DI is automatically:
๐Ÿ’ป assembly Snippet
cld
stosw  ; Increments DI by 2
  1. A.Incremented by 1
  2. B.Incremented by 2
  3. C.Decremented by 1
  4. D.Decremented by 2
Q250
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Primitive InstructionsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Only ________ primitive instructions allow moving data directly from memory to memory in a single instruction in x86 architecture.
๐Ÿ’ป assembly Snippet
movsb
  1. A.String
  2. B.Word
  3. C.Indirect
  4. D.Stack