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 231 โ€“ 240 of 264 Questions
Page 24 of 27
Q231
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Primitive InstructionsMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
The CMPS (Compare String) instruction compares the source memory operand at DS:SI and destination memory operand at ES:DI by subtracting which memory operand location?
๐Ÿ’ป assembly Snippet
cmpsb
  1. A.DS:SI
  2. B.DS:DI
  3. C.ES:SI
  4. D.ES:DI
Q232
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Primitive InstructionsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which mathematical operation is performed internally by the SCAS (Scan String) instruction to update processor flags?
๐Ÿ’ป assembly Snippet
scasb  ; Subtracts [es:di] from AL to set flags
  1. A.Division
  2. B.Multiplication
  3. C.Addition
  4. D.Subtraction
Q233
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.7. REP PrefixesMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When the REP prefix instruction decrements the CX register during string iteration, which CPU status flags are affected by the CX decrement operation?
๐Ÿ’ป 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
Q234
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Primitive InstructionsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which of the following describes a major reason why string primitive instructions are used in 8088 assembly programming?
  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
Q235
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.7. REP PrefixesEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
During string instruction execution, what operation does the REP repeat prefix perform on register CX for each iteration?
๐Ÿ’ป assembly Snippet
rep stosb
  1. A.Increment CX by 1
  2. B.Increment CX by 2
  3. C.Decrement CX by 1
  4. D.Decrement CX by 2
Q236
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.6. SCAS InstructionEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What is the primary function performed by the SCAS (Scan String) primitive instruction?
๐Ÿ’ป assembly Snippet
scasb
  1. A.Compare
  2. B.Sort
  3. C.Move data
  4. D.Multiply data
Q237
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.6. SCAS InstructionEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which mathematical operation is performed internally during the execution of the SCAS (Scan String) instruction?
๐Ÿ’ป assembly Snippet
scasb  ; Compares AL with [es:di] via subtraction
  1. A.Division
  2. B.Multiplication
  3. C.Addition
  4. D.Subtraction
Q238
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.2. Auto Increment/DecrementEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
If a string instruction is configured to process string elements from higher memory addresses toward lower memory addresses, which flag condition must be true?
๐Ÿ’ป assembly Snippet
std  ; Set Direction Flag for auto-decrement mode
  1. A.ZF is cleared
  2. B.DF is cleared
  3. C.ZF is set
  4. D.DF is set
Q239
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Primitive InstructionsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which pair of registers is primarily used to index memory locations during string 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
Q240
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.7. CMPS Example - String ComparisonEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
The CMPS instruction compares the source memory location with the destination memory location. The destination memory location always resides in:
๐Ÿ’ป assembly Snippet
cmpsb
  1. A.DS:SI
  2. B.DS:DI
  3. C.ES:SI
  4. D.ES:DI