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 11 โ€“ 20 of 264 Questions
Page 2 of 27
Q11
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Hardware Interrupts and NMI (INT 2)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which of the following hardware interrupts is the Non-Maskable Interrupt (NMI) in x86 architecture?
๐Ÿ’ป assembly Snippet
INT 2
  1. A.INT 2
  2. B.INT 0
  3. C.INT 1
  4. D.INT 3
Q12
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Single-Step Interrupt (INT 1) and DebuggingEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In x86 processor architecture, the Single-Step Interrupt (INT 1) is classified as a(n) ________.
๐Ÿ’ป assembly Snippet
PUSHF
POP AX
OR AX, 0x0100
PUSH AX
POPF
  1. A.Internal / Debug interrupt (Software / CPU Exception)
  2. B.Hardware interrupt
  3. C.External I/O interrupt
  4. D.Non-maskable hardware interrupt (NMI)
Q13
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Internal Hardware Exceptions and Divide-by-Zero (INT 0)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When a number is divided by zero or an arithmetic quotient overflow occurs, a Division-by-Zero interrupt is triggered. How is this interrupt invoked?
๐Ÿ’ป assembly Snippet
MOV AX, 10
MOV BL, 0
DIV BL
  1. A.This interrupt is generated automatically
  2. B.INT 0
  3. C.INT 1
  4. D.INT 2
Q14
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Hardware/CPU Exceptions and Interrupt ClassificationEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which of the following exceptions/interrupts is a fault that returns control back to the same instruction that caused the exception, rather than the subsequent instruction?
๐Ÿ’ป assembly Snippet
MOV AX, 1
MOV BL, 0
DIV BL
  1. A.Divide overflow interrupt
  2. B.Debug interrupt
  3. C.Arithmetic overflow interrupt
  4. D.Change of sign interrupt
Q15
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Hardware/CPU Interrupts and INTO (INT 4)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which hardware/CPU interrupt vector is dedicated to handling Arithmetic Overflow exceptions (invoked conditionally via the INTO instruction)?
๐Ÿ’ป assembly Snippet
INTO
  1. A.INT 4
  2. B.INT 1
  3. C.INT 2
  4. D.INT 3
Q16
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Video Display Architecture (Video Memory Base Segment 0xB800)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which sequence of instructions correctly initializes Extra Segment (ES) to point to text mode video display memory buffer?
๐Ÿ’ป assembly Snippet
mov ax, 0xb800
mov es, ax ; ES now points to video RAM base segment
  1. A.mov AX, 0xb008 mov ES, AX
  2. B.mov AX, 0xb800 mov ES, AX
  3. C.mov AX, 0x8b00 mov ES, AX
  4. D.mov AX, 0x800b mov ES, AX
Q17
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.4. SCAS Example - String LengthMediumโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which x86 string primitive instruction and repeat prefix combination is used to locate a null character (zero byte) in a string?
๐Ÿ’ป assembly Snippet
mov di, string_ptr
mov cx, 0xffff
xor al, al
repne scasb ; Finds zero byte in string
Q18
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.5. LES and LDS ExampleMediumโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Explain the purpose, parameters, and applications of the `LES` and `LDS` instructions in x86 assembly language.
๐Ÿ’ป assembly Snippet
les di, [far_ptr] ; Loads offset into DI and segment into ES
Q19
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. String Primitive Instructions (MOVS and CMPS)Mediumโญ๐Ÿ’ก๐ŸŒŸ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Describe the function, implicit register operands, auto-indexing behavior, and typical applications of the `MOVS` (Move String) and `CMPS` (Compare String) primitive instructions in x86 assembly language.
๐Ÿ’ป assembly Snippet
rep movsb   ; Copies CX bytes from [DS:SI] to [ES:DI]
repe cmpsb  ; Compares string bytes at [DS:SI] and [ES:DI] while equal
Q20
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 7๐Ÿท๏ธ 7.1. Video Display Architecture (Character Location Memory Unit)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In standard 80x25 text mode video memory, what data storage unit corresponds to a single character location on screen?
  1. A.Byte
  2. B.Word
  3. C.Double byte
  4. D.Double word