Ch 09: Software Interrupts and DOS/BIOS Services

174 Questions174 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 174 Questions
Page 5 of 18
Q41
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ 9.1. Interrupt Handling (IRQ 1 Keyboard Controller)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In standard IBM PC AT hardware architecture, which hardware IRQ line number is dedicated to the keyboard controller?
Q42
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ 9.1. Interrupt Handling (IRQ 5 Sound Card Assignment)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In standard IBM PC AT hardware architecture, which hardware IRQ line number is typically assigned to legacy Sound Blaster sound cards?
Q43
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ 9.1. Interrupt Handling (IRQ 6 Floppy Disk Controller)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In standard IBM PC AT hardware architecture, which hardware IRQ line number is dedicated to the Floppy Disk Drive controller?
Q44
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ 9.1. Interrupt Handling (8259 PIC Timer IRQ 0 Priority)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Among the hardware devices listed (Keyboard, System Timer, Sound Card, Floppy Disk), which hardware IRQ has the absolute highest priority on the 8259 PIC?
  1. A.Keyboard IRQ
  2. B.Timer IRQ
  3. C.Sound Card
  4. D.Floppy Disk
Q45
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ 9.1. Interrupt Handling (IRQ Conflicts and Shared Lines)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When two distinct hardware peripheral devices are incorrectly assigned to share the same Interrupt Request (IRQ) line on a non-shared bus architecture, what system issue occurs?
  1. A.IRQ collision
  2. B.IRQ conflict
  3. C.IRQ drop
  4. D.IRQ overflow
Q46
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ 9.1. Interrupt Handling (INT 0 Divide By Zero Exception)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which x86 processor exception vector is automatically invoked when an arithmetic division by zero or divide overflow occurs?
๐Ÿ’ป assembly Snippet
mov ax, 10
mov bl, 0
div bl ; Automatically triggers INT 0 (Divide Error)
Q47
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ 9.1. Interrupt Handling (ISR Interrupt Service Routine Definition)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What acronym is used to refer to a software routine that executes in response to a hardware or software interrupt (`INT`) instruction?
  1. A.ISR
  2. B.IRS
  3. C.ISP
  4. D.IRT
Q48
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ 9.1. Interrupt Handling (Disabling IRQ 1 via 8259 PIC IMR Masking)Medium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Write a short assembly language routine to disable the keyboard hardware interrupt (IRQ 1) using the 8259 Programmable Interrupt Controller (PIC) Interrupt Mask Register (IMR).
๐Ÿ’ป assembly Snippet
in  al, 0x21 ; Read primary PIC IMR
or  al, 0x02 ; Mask IRQ 1 (keyboard interrupt)
out 0x21, al ; Write back to IMR
Q49
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ 9.1. Interrupt Handling (8259 PIC IRQ 0 Priority Level)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Among all hardware Interrupt Request lines (IRQs) connected to the 8259 PIC, IRQ 0 (the System Timer) holds which priority level?
  1. A.low
  2. B.medium
  3. C.highest
  4. D.lowest
Q50
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ 9.1. Interrupt Handling (IRET Instruction Execution Mechanics)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which x86 assembly instruction pops the Instruction Pointer (`IP`), Code Segment (`CS`), and `FLAGS` register sequentially off the stack upon returning from an interrupt handler routine?
๐Ÿ’ป assembly Snippet
iret ; Pops IP, CS, and FLAGS off the stack
  1. A.Ret n
  2. B.REZA
  3. C.REPE
  4. D.IRET