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 51 โ€“ 60 of 174 Questions
Page 6 of 18
Q51
๐Ÿ“ Short Q๐Ÿ“˜ 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 off the stack upon returning from an interrupt handler routine?
๐Ÿ’ป assembly Snippet
iret ; Pops IP, CS, and FLAGS off stack to return from interrupt handler
Q52
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ 9.1. Interrupt Handling (INT 1 Single-Step / Trap Exception Vector)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which x86 hardware exception interrupt vector is reserved for the Trap / Single-Step Execution interrupt?
  1. A.INT 0
  2. B.INT 1
  3. C.INT 2
  4. D.INT 3
Q53
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ 9.1. Interrupt Handling (INT 2 Non-Maskable Interrupt Vector)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which x86 hardware interrupt vector is designated for the NMI (Non-Maskable Interrupt) line?
  1. A.INT 0
  2. B.INT 1
  3. C.INT 2
  4. D.INT 3
Q54
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ 9.1. Interrupt Handling (Interrupt Hooking and IVT Vector Replacement)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
To hook or intercept a software/hardware interrupt in x86 real mode, a program must modify the __________ table entry (4-byte far pointer) corresponding to that specific interrupt number.
๐Ÿ’ป assembly Snippet
; Hooking INT 0x08:
cli
mov word [0x0000:0x0020], new_isr_offset
mov word [0x0000:0x0022], cs
sti
  1. A.SX
  2. B.vector
  3. C.AX
  4. D.BX
Q55
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ 9.1. Interrupt Handling (Interrupt Hooking and IVT Vector Replacement)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
To hook or intercept a software/hardware interrupt in x86 real mode, a program must modify the __________ table entry corresponding to that specific interrupt number.
๐Ÿ’ป assembly Snippet
; Hooking INT 0x08:
cli
mov word [0x0000:0x0020], new_isr_offset
mov word [0x0000:0x0022], cs
sti
  1. A.SX
  2. B.vector
  3. C.AX
  4. D.BX
Q56
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ 9.1. Interrupt Handling (8259 Slave PIC IRQ 2 Cascading Line)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
On a standard dual-PIC IBM PC/AT system, which Interrupt Request line (IRQ) is reserved for cascading the secondary (slave) 8259 Programmable Interrupt Controller to the primary master PIC?
  1. A.IRQ 0
  2. B.IRQ 1
  3. C.IRQ 2
  4. D.IRQ 3
Q57
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ 9.1. Interrupt Handling (8259 PIC Ports 0x20 and 0x21 IMR)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
The 8259 Programmable Interrupt Controller (PIC) uses two I/O ports: Port `0x20` and Port `0x21`. Port `0x20` functions as the Control Port, while Port `0x21` serves as the __________.
๐Ÿ’ป assembly Snippet
in al, 0x21 ; Reads Interrupt Mask Register (IMR)
out 0x21, al ; Writes Interrupt Mask Register
  1. A.Interrupt Mask Register (IMR) port
  2. B.Interrupt port
  3. C.Output port
  4. D.Input port
Q58
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ 9.1. Interrupt Handling (Three Primary Classes of Interrupts)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
The Intel 8088/8086 processor architecture categorizes interrupts into how many basic primary classes?
  1. A.2
  2. B.3
  3. C.4
  4. D.5
Q59
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ 9.1. Interrupt Handling (8259 PIC Eight IRQ Input Signals)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
On the 8259 Programmable Interrupt Controller (PIC), the IRQ (Interrupt Request) interface consists of __________.
  1. A.Eight input signals
  2. B.One output signal
  3. C.One input signals
  4. D.Eight output signals
Q60
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ 9.1. Interrupt Handling (IRQ 1 Keyboard Hardware Interrupt)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which hardware IRQ (Interrupt Request) line is driven by the PS/2 or AT keyboard controller chip?
  1. A.IRQ 0
  2. B.IRQ 1
  3. C.IRQ 2
  4. D.IRQ 3