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 41 โ€“ 50 of 264 Questions
Page 5 of 27
Q41
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Video Display Architecture (Attribute Byte Bit 1 Foreground Green)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In standard text mode attribute byte formatting (`B IRGB I rgb`), which bit position controls the Green component of the foreground color?
  1. A.1
  2. B.5
  3. C.3
  4. D.7
Q42
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Video Display Architecture (Video Memory Offset Formula)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In standard 80x25 text mode video memory, what formula is used to calculate the byte offset address of a screen character location from row position (`hypos`) and column position (`epos`)?
๐Ÿ’ป assembly Snippet
; Calculate offset for row (hypos), col (epos):
; location = (hypos * 80 + epos) * 2
  1. A.location = ( hypos * 80 + SP ) * 3
  2. B.location = ( hypos * 80 + slocation ) * 2
  3. C.location = ( hypos * 80 + epos ) * 2
  4. D.None of the Given
Q43
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (Five Primitive String Operations)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which five fundamental primitive instructions are provided in x86 assembly language for string manipulation operations?
  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
Q44
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (STOS Store String Mechanics)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which x86 string instruction transfers a byte or word from register `AL` or `AX` to the string memory location pointed to by `ES:DI` and automatically updates `DI`?
๐Ÿ’ป assembly Snippet
mov al, 'A'
stosb ; Stores 'A' to [ES:DI] and updates DI
  1. A.LODS
  2. B.STOS
  3. C.SCAS
  4. D.MOVS
Q45
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (LODS Load String Mechanics)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which x86 string instruction transfers a byte or word from the source memory location pointed to by `DS:SI` into register `AL` or `AX` and automatically updates `SI`?
๐Ÿ’ป assembly Snippet
lodsb ; Reads byte from [DS:SI] into AL and updates SI
  1. A.LODS
  2. B.STOS
  3. C.SCAS
  4. D.MOVS
Q46
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (SCAS Scan String Mechanics)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which x86 string instruction compares a byte or word in register AL or AX with the destination string element addressed by ES:DI and updates the CPU status flags?
๐Ÿ’ป assembly Snippet
mov al, 'A'
scasb ; Compares AL with [ES:DI] and updates flags & DI
  1. A.LODS
  2. B.STOS
  3. C.SCAS
  4. D.MOVS
Q47
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (REPE / REPZ Repeat Prefixes)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
__________ repeats the following string instruction as long as the Zero Flag is set (ZF = 1), whereas REPNE or REPNZ repeats while the Zero Flag is clear (ZF = 0).
๐Ÿ’ป assembly Snippet
repe cmpsb ; Repeats comparison while characters are equal (ZF == 1)
  1. A.REP or REPZ
  2. B.REPE or REPZ
  3. C.REPE or RPZ
  4. D.RPE or REPZ
Q48
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Instructions (REP Count Register CX)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
The `REP` repeat prefix repeats a string instruction (e.g., `MOVSB`, `STOSB`) according to the count value stored in which register?
๐Ÿ’ป assembly Snippet
mov cx, 100
rep movsb ; Copies 100 bytes from [DS:SI] to [ES:DI]
  1. A.DX
  2. B.CX
  3. C.BX
  4. D.AX
Q49
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Video Display Architecture (ASCII Code 0x30 for Character '0')Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In the assembly instruction `mov word [es:160], 0x1230`, the byte value `0x30` represents which ASCII character?
๐Ÿ’ป assembly Snippet
mov word [es:160], 0x1230 ; Writes ASCII 0x30 ('0') with attribute 0x12
  1. A.A
  2. B.B
  3. C.0
  4. D.1
Q50
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Video Display Architecture (Video Offset 160 Row/Column Coordinates)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In standard 80x25 text mode video memory, executing `mov word [es:160], 0x1230` will display a character at which screen location?
๐Ÿ’ป assembly Snippet
mov word [es:160], 0x1230 ; Offset 160 = Row 1 (2nd row), Col 0 (1st column)
  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