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 51 โ€“ 60 of 264 Questions
Page 6 of 27
Q51
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (STOSB Index Pointer Step Size)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In the byte string store instruction `STOSB`, by how many bytes is the destination index register `DI` (or `SI` in string transfers) incremented or decremented per iteration depending on DF?
๐Ÿ’ป assembly Snippet
stosb ; Stores AL at [ES:DI] and updates DI by +/- 1
  1. A.4
  2. B.1
  3. C.2
  4. D.3
Q52
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (CMPS Destination Addressing ES:DI)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
The string compare instruction `CMPS` subtracts the source memory element from the destination memory element. The destination memory location always lies in which segment and offset pair?
๐Ÿ’ป assembly Snippet
cmpsb ; Compares byte at [DS:SI] with byte at [ES:DI]
  1. A.DS:SI
  2. B.DS:DI
  3. C.ES:SI
  4. D.ES:DI
Q53
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (SCAS Internal Subtraction Mechanics)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which mathematical operation is performed internally during the execution of the string scan instruction `SCAS`?
๐Ÿ’ป assembly Snippet
scasb ; Performs internal subtraction: AL - [ES:DI]
  1. A.Division
  2. B.Multiplication
  3. C.Addition
  4. D.Subtraction
Q54
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (REP Prefix Flag Modification Behavior)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When the string repetition prefix `REP` decrements `CX` on each iteration, which CPU status flags in the FLAGS register are affected?
๐Ÿ’ป assembly Snippet
rep movsb ; CX decremented, status flags remain unchanged
  1. A.CF
  2. B.OF, DF
  3. C.ZF
  4. D.No flags will be affected
Q55
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (String Instruction Advantages)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What are the primary performance advantages of using string instructions (`MOVS`, `STOS`, `LODS`, `CMPS`, `SCAS`) in 8088 assembly language?
  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
Q56
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Video Display Architecture (Video Attribute Byte Structure)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In standard text mode video RAM where each character cell occupies 2 bytes (1 word), what information is stored in the second byte?
๐Ÿ’ป assembly Snippet
mov word [es:0], 0x0741 ; 0x41 is 1st byte (ASCII 'A'), 0x07 is 2nd byte (Attribute/Color)
  1. A.Character color / attribute on the screen
  2. B.The dimensions of the screen
  3. C.Character position on the screen
  4. D.ASCII code of the character
Q57
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (SCAS Primary Compare Function)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What is the primary operational function of the string scan instruction `SCAS`?
๐Ÿ’ป assembly Snippet
scasb ; Compares AL with byte at [ES:DI]
  1. A.Compare
  2. B.Sort
  3. C.Move data
  4. D.Divide
Q58
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (REP Prefix Decrements CX by 1)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
During each iteration of execution, the string repeat prefix `REP` performs which action on the count register `CX`?
๐Ÿ’ป assembly Snippet
mov sb ; Decrements CX by 1 per byte copied until CX = 0
  1. A.Decrement CX by 1
  2. B.Increment CX by 1
  3. C.Increment CX by 2
  4. D.Decrement CX by 2
Q59
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Video Display Architecture (ASCII Digit Conversion)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
To convert any single decimal digit (0โ€“9) to its standard ASCII character representation in assembly language, which operation is performed?
๐Ÿ’ป assembly Snippet
add al, 0x30 ; Converts numeric digit in AL (e.g. 5) to ASCII byte '5' (0x35)
  1. A.Add 0x30 in the digit
  2. B.Subtract 0x30 from the digit
  3. C.Add 0x61 in the digit
  4. D.Subtract 0x61 from the digit
Q60
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Video Display Architecture (Video RAM Offset Calculation)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In standard 80x25 text mode video memory, executing `mov word [es:160], 0x1230` displays ASCII character '0' at which screen location?
๐Ÿ’ป assembly Snippet
mov word [es:160], 0x1230 ; Offset 160 = Row 2, Column 1
  1. A.First column of second row
  2. B.Second column of first row
  3. C.Second column of second row
  4. D.First column of third row