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 71 โ€“ 80 of 174 Questions
Page 8 of 18
Q71
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ 9.1. Interfacing and Peripherals (DB-9 Serial Port Pinout: Ring Indicator Pin 9)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
On a standard 9-pin DE-9 / DB-9 serial RS-232 connector, which pin number is assigned to RI (Ring Indicator)?
  1. A.6
  2. B.7
  3. C.8
  4. D.9
Q72
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ 9.1. Interfacing and Peripherals (Input and Output Peripheral Categories)Easy๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Briefly categorize and describe the two primary hardware device classifications used in personal computer systems.
Q73
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ 9.1. DOS and BIOS Services (DOS INT 21h Service 0Ah Input Buffer Structure)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When calling DOS `INT 21h` Service `0Ah` (Buffered Keyboard Input), in which byte position of the input buffer is the number of characters actually read returned?
๐Ÿ’ป assembly Snippet
; Buffer layout: [Byte 0: Max Size | Byte 1: Actual Count | Byte 2+: String Data]
  1. A.third
  2. B.fourth
  3. C.first
  4. D.second
Q74
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ 9.1. Interfacing and Peripherals (DB-9 Serial Port Pinout: DataSet Ready Pin 6)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
On a standard 9-pin DE-9 / DB-9 serial RS-232 connector, which pin number is assigned to DSR (DataSet Ready)?
  1. A.4
  2. B.5
  3. C.6
  4. D.7
Q75
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ 9.1. Interfacing and Peripherals (DB-9 Serial Port Pinout: Transmitted Data Pin 3)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
On a standard 9-pin DE-9 / DB-9 serial RS-232 connector, which pin number is assigned to TD (Transmitted Data / TXD)?
  1. A.1
  2. B.2
  3. C.3
  4. D.4
Q76
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ 9.1. Interfacing and Peripherals (BIOS INT 14h Serial Read Return Registers AH and AL)Easyโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which two 8-bit registers are used by BIOS `INT 14h` Service `02h` (Read Character from Serial Port) to return the result character and line status?
๐Ÿ’ป assembly Snippet
mov ah, 02h ; Service 02h: Read character from serial port
mov dx, 0   ; COM1
int 14h     ; AH = Line Status, AL = Character received
Q77
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ 9.1. Interfacing and Peripherals (Device Driver Definition and Function)Easyโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What is a device driver in operating systems and computer architecture, and what is its primary function?
Q78
๐Ÿง  Long Problem๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ 9.1. Interfacing and Peripherals (DOS Device Driver Header and Request Header Layout)Hardโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Describe the header layout and operational mechanism of a device driver file in DOS, including the device attribute word, strategy routine, interrupt routine, and request header.
๐Ÿ’ป assembly Snippet
; DOS Device Driver Header Structure
driver_header:
    next_driver: dd 0xFFFFFFFF ; Pointer to next driver
    dev_attr:    dw 0x8000     ; Device attribute word (Bit 15 = Character device)
    strategy:    dw strat_routine ; Offset to Strategy Routine
    interrupt:   dw intr_routine  ; Offset to Interrupt Routine
    units:       db 0          ; Number of units (0 for character devices)
    reserved:    times 7 db 0  ; Reserved padding zeroes
Q79
๐Ÿง  Long Problem๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ 9.1. Interfacing and Peripherals (Device Drivers Necessity, RAM Disk, and CONFIG.SYS)Hardโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Why are device drivers necessary in a computer system given that the system BIOS already contains software routines to communicate with hardware peripherals? Explain with an example such as a RAM Disk driver and how drivers are loaded in DOS.
๐Ÿ’ป assembly Snippet
; Example CONFIG.SYS line to load a DOS device driver:
DEVICE=C:\DOS\RAMDRV.SYS 2048 512 64
Q80
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ Programmable Interrupt Controller (8259) and IRQ LinesEasyโญ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which Hardware Interrupt Request (IRQ) line on the Programmable Interrupt Controller (8259) is assigned to serial communication port COM2?
๐Ÿ’ป assembly Snippet
; Unmasking IRQ 3 for COM2 in PIC mask register
in  al, 0x21
and al, 0xF7    ; Clear bit 3 (IRQ 3 enable)
out 0x21, al
  1. A.IRQ 2
  2. B.IRQ 3
  3. C.IRQ 4
  4. D.IRQ 5