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 21 โ€“ 30 of 174 Questions
Page 3 of 18
Q21
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ 9.1. Interrupt Handling (IRQ Conflict Hardware Management)Easyโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When two hardware peripheral devices in a computer system attempt to assign and use the same IRQ line, what condition occurs?
  1. A.An IRQ Conflict
  2. B.An IRQ Crash
  3. C.An IRQ Collision
  4. D.An IRQ Blockage
Q22
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ 9.1. Interrupt Handling (Hardware IRQ Assignments for Serial Ports)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which hardware interrupt request (IRQ) line is assigned to serial port COM 2 in standard PC architecture?
  1. A.IRQ 0
  2. B.IRQ 1
  3. C.IRQ 2
  4. D.IRQ 3
Q23
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ 9.1. Interrupt Handling (8259 PIC IRQ Priority Hierarchy)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In the 8259 Programmable Interrupt Controller (PIC) priority hierarchy, what is the priority level of the IRQ 0 (System Timer) interrupt?
  1. A.Highest
  2. B.Low
  3. C.Medium
  4. D.None of the above
Q24
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ 9.1. Interrupt Handling (Interrupt Execution Mechanics and Register State)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When an interrupt call occurs, the CPU pushes the current register state onto the stack and loads new values into CS, IP, and __________.
  1. A.DS
  2. B.SS
  3. C.FLAGS
  4. D.Bookmark
Q25
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ 9.1. Interrupt Handling (IRET Interrupt Return Mechanics)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which instruction returns execution from an Interrupt Service Routine (ISR) by popping IP, then CS, and finally the FLAGS register from the stack?
๐Ÿ’ป assembly Snippet
isr_handler:
    ; ISR code
    iret ; Pops IP, CS, FLAGS to return from interrupt
  1. A.RET
  2. B.RET N
  3. C.REPE
  4. D.IRET
Q26
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ 9.1. Interrupt Handling (INT 1 Trap / Single-Step Interrupt)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which vector interrupt number in x86 architecture is reserved for the Trap / Single-Step Interrupt used by debuggers?
  1. A.INT 0
  2. B.INT 1
  3. C.INT 2
  4. D.INT 3
Q27
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ 9.1. Interrupt Handling (INT 2 Non-Maskable Interrupt)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which vector interrupt number in x86 architecture is assigned to NMI (Non-Maskable Interrupt)?
  1. A.INT 0
  2. B.INT 1
  3. C.INT 2
  4. D.INT 3
Q28
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ 9.1. Interrupt Handling (Interrupt Hooking and IVT Vector)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
To hook an interrupt in x86 assembly, we change the entry in the Interrupt Vector Table (IVT) corresponding to that interrupt __________.
๐Ÿ’ป assembly Snippet
; Hooking INT 08h vector in IVT (0x0000:0x0020)
cli
mov word [es:0x0020], new_isr_offset
mov word [es:0x0022], cs
sti
  1. A.SX
  2. B.vector
  3. C.AX
  4. D.BX
Q29
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ 9.1. Interrupt Handling (IRET Stack Popping Mechanics)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which x86 assembly instruction restores CPU execution state after an interrupt by popping IP, then CS, and finally the FLAGS register from the stack?
๐Ÿ’ป assembly Snippet
custom_isr:
    ; ISR body
    iret ; Pops IP, CS, and FLAGS
  1. A.Ret n
  2. B.REZA
  3. C.REPE
  4. D.IRET
Q30
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ 9.1. Interrupt Handling (INT 1 Trap Interrupt)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which x86 interrupt vector is designated for the Trap / Single-Step Interrupt used by debugging tools?
  1. A.INT 0
  2. B.INT 1
  3. C.INT 3
  4. D.INT 4