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 121 โ€“ 130 of 264 Questions
Page 13 of 27
Q121
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Video Display Architecture (ASCII Digit Conversion via Adding 0x30)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
To convert a single numeric decimal digit (0โ€“9) to its corresponding ASCII character representation in assembly language, which arithmetic operation is performed?
๐Ÿ’ป assembly Snippet
add al, 0x30 ; Converts numeric value in AL (0-9) to ASCII character ('0'-'9')
  1. A.Add 0x30 to the digit
  2. B.Subtract 0x30 from the digit
  3. C.Add 0x61 to the digit
  4. D.Subtract 0x61 from the digit
Q122
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (SCAS Primitive Subtraction Operation)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which underlying mathematical operation is executed during the execution of the `SCAS` (Scan String) primitive instruction to update processor flags?
๐Ÿ’ป assembly Snippet
scasb ; Performs internal subtraction (AL - [ES:DI]) to set flags
  1. A.Division
  2. B.Multiplication
  3. C.Addition
  4. D.Subtraction
Q123
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Video Display Architecture (Screen Memory Byte Offset 160 Coordinates)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Executing the instruction `mov word [ES:160], 0x1230` renders character '0' on screen at which coordinate position?
  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
Q124
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (Direction Flag DF Set for Autodecrementing Pointers)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
If string processing moves from higher memory addresses towards lower memory addresses (autodecrementing pointers `SI` / `DI`), what is the state of the Direction Flag (`DF`)?
๐Ÿ’ป assembly Snippet
std ; Sets DF = 1 (causes string instructions to autodecrement SI/DI)
  1. A.DF is cleared
  2. B.ZF is cleared
  3. C.ZF is set
  4. D.DF is set
Q125
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Video Display Architecture (Attribute Byte Bit 6 Background Red)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In standard text-mode video RAM attribute byte formatting (`B IRGB I rgb`), which bit position represents the Red (R) component of the background color?
  1. A.Bit 0
  2. B.Bit 2
  3. C.Bit 4
  4. D.Bit 6
Q126
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Video Display Architecture (Screen Scroll-Up Assembly Routine)Medium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Write and describe the assembly language subroutine used to scroll up the text mode screen display.
๐Ÿ’ป assembly Snippet
mov ax, 0xb800
mov es, ax
mov ds, ax
rep movsw
rep stosw
Q127
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (LES vs LDS Pointer Loading Instructions)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What is the difference between the `LES` and `LDS` pointer loading instructions in x86 assembly language?
๐Ÿ’ป assembly Snippet
les di, [far_ptr] ; Loads offset into DI and segment into ES
lds si, [far_ptr] ; Loads offset into SI and segment into DS
Q128
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Video Display Architecture (Screen Memory Byte Offset 160 Coordinates)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
The execution of the instruction `mov word [ES : 160], 0x1230` will print a character on the screen at:
๐Ÿ’ป assembly Snippet
; Offset = (Row * 80 + Column) * 2
; For Row 2 (index 1), Column 1 (index 0): Offset = (1 * 80 + 0) * 2 = 160
  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
Q129
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (STOSW and CX Iteration Decrement)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
After the execution of a word string instruction (such as `STOSW`) with repeat prefix (`REP`), how will register `CX` be updated?
๐Ÿ’ป assembly Snippet
rep stosw ; Decrements CX by 1 per word stored
  1. A.Incremented by 1
  2. B.Decremented by 1
  3. C.Incremented by 2
  4. D.Decremented by 2
Q130
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Video Display Architecture (Standard 7-Bit ASCII Range 128 Characters)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
How many characters are defined in standard 7-bit ASCII?
  1. A.512
  2. B.256
  3. C.128
  4. D.64