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 81 โ€“ 90 of 174 Questions
Page 9 of 18
Q81
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ Parallel Port Hardware ArchitectureEasy๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What is the standard hardware connector designation for the 25-pin parallel port interface used in IBM-compatible PCs?
  1. A.BD-24
  2. B.BD-25
  3. C.DB-25
  4. D.DB-24
Q82
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ Interrupt Vector Table Modification and Critical SectionsMedium๐Ÿ”โญ๐Ÿ’ก๐ŸŒŸ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Why are the CLI (Clear Interrupt Flag) and STI (Set Interrupt Flag) instructions necessary when hooking an interrupt vector in the Interrupt Vector Table (IVT)?
๐Ÿ’ป assembly Snippet
cli
mov [es:8*4], timer
mov [es:8*4+2], cs
sti
Q83
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ I/O Port Addressing and IN/OUT InstructionsMedium๐Ÿ”โญ๐Ÿ’ก๐ŸŒŸ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Provide valid 8088 assembly instruction(s) to read an 8-bit input value from I/O port address 0x312.
๐Ÿ’ป assembly Snippet
mov dx, 0x312
in al, dx
Q84
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ Direct Port I/O InstructionsEasy๐Ÿ”โญ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Provide valid 8088 assembly instruction(s) to write the byte value in register AL to I/O port address 0x12.
๐Ÿ’ป assembly Snippet
out 0x12, al
Q85
๐Ÿง  Long Problem๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ Interrupt Vector Table Hooking and Critical SectionsMedium๐Ÿ”โญ๐Ÿ’ก๐ŸŒŸ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Provide concise answers for the following system programming questions: 1. Why is it necessary to disable hardware interrupts (`CLI`) when altering interrupt vectors or executing critical kernel dispatch operations via software interrupt `INT 80h`? 2. Why must interrupts be disabled (`CLI`) before attempting to modify the stack pointers (`SS` and `SP`)?
๐Ÿ’ป assembly Snippet
cli
mov word [es:8*4], timer_isr
mov [es:8*4+2], cs
sti
Q86
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ Programmable Interrupt Controller CascadingMedium๐Ÿ”โญ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In the IBM PC/AT architecture, which Interrupt Request (IRQ) line on the primary Programmable Interrupt Controller (PIC) is used as the cascade interrupt for connecting the secondary PIC?
  1. A.IRQ 0
  2. B.IRQ 1
  3. C.IRQ 2
  4. D.IRQ 3
Q87
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ PIC Interrupt Processing and EOI HandshakingMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
During hardware interrupt processing, who sends the End of Interrupt (EOI) command byte (0x20) to the Programmable Interrupt Controller (8259 PIC)?
๐Ÿ’ป assembly Snippet
mov al, 0x20
out 0x20, al    ; Send Non-Specific EOI to PIC master port
  1. A.Interrupt Handler (ISR)
  2. B.Processor Hardware
  3. C.Peripheral Device
  4. D.Programmable Interrupt Controller
Q88
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ Parallel Port Hardware ArchitectureEasy๐Ÿ”๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
How many total pins are present on a standard DB-25 parallel port connector?
  1. A.20
  2. B.25
  3. C.30
  4. D.35
Q89
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ Parallel Port Pinouts and Electrical GroundingEasy๐Ÿ”โญ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
On a standard 25-pin DB-25 parallel port connector, which range of pins is tied to electrical ground?
  1. A.Pins 10โ€“18
  2. B.Pins 18โ€“25
  3. C.Pins 25โ€“32
  4. D.Pins 32โ€“39
Q90
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ Programmable Interrupt Controller (8259) Priority LevelsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What priority level is assigned to the IRQ 0 (System Timer) interrupt line on the 8259 Programmable Interrupt Controller?
  1. A.Low
  2. B.Medium
  3. C.Highest
  4. D.Lowest