Ch 10: Hardware Interrupts and PIC 8259

189 Questions189 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 189 Questions
Page 5 of 19
Q41
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 10๐Ÿท๏ธ 10.1. Hardware Interfacing and I/O (INT 14h Serial Read Character Register Roles)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When executing BIOS serial port service `INT 14h` with service function code `AH = 0x02` (Read Character from Serial Port), what do registers `AH`, `AL`, and `DX` represent?
๐Ÿ’ป assembly Snippet
mov ah, 0x02 ; Read character service
mov dx, 0    ; COM1 port
int 0x14     ; Returns character in AL and status in AH
Q42
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 10๐Ÿท๏ธ 10.1. Hardware Interfacing and I/O (UART Line Status Register Bit Flags)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In serial port UART communication, every individual bit in the Line Status Register (LSR) conveys __________ information regarding transmission and reception states.
  1. A.different
  2. B.same
  3. C.partial
  4. D.full
Q43
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 10๐Ÿท๏ธ 10.1. Hardware Interfacing and I/O (Serial Port I/O Addresses and Dual-Register Mapping)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In x86 serial port interfacing, what are the standard I/O port address ranges for COM1 and COM2, and what dual registers map to the base offset `+0` (e.g., port `0x3F8` for COM1)?
๐Ÿ’ป assembly Snippet
mov dx, 0x3F8 ; Base COM1 port
mov al, 'A'
out dx, al    ; Writes to Transmitter Holding Register
in  al, dx    ; Reads from Receiver Buffer Register
Q44
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 10๐Ÿท๏ธ 10.1. Hardware Interfacing and I/O (UART Interrupt Enable Register 0x3F9)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In UART serial port communication (e.g., COM1 port offset 0x3F9), which register controls interrupt generation, and which specific bits enable Received Data Available interrupt and Transmitter Holding Register Empty interrupt?
๐Ÿ’ป assembly Snippet
mov dx, 0x3F9 ; COM1 Interrupt Enable Register (IER)
mov al, 0x03  ; Enable both Received Data (Bit 0) & Transmitter Empty (Bit 1) interrupts
out dx, al
Q45
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 10๐Ÿท๏ธ 10.1. Peripheral Interfacing and I/O Instructions (OUT Instruction Source Register AL/AX)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When transferring data to external I/O hardware ports using the `OUT` assembly instruction, which register serves as the required data source operand?
๐Ÿ’ป assembly Snippet
mov dx, 0x03C8
mov al, 0xFF
out dx, al ; Output byte in AL to port in DX
  1. A.AL or AX
  2. B.BL or BX
  3. C.CL or CX
  4. D.DL or DX
Q46
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 10๐Ÿท๏ธ 10.1. Hardware Interfacing (Parallel Port DB-25 Ground Pin Assignments)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
On a standard IBM PC parallel printer port (DB-25 connector), which pin numbers are tied to ground?
  1. A.10-18
  2. B.18-25
  3. C.25-32
  4. D.32-39
Q47
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 10๐Ÿท๏ธ 10.1. Hardware Interfacing (Serial Port DB-9 Pin Assignments)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In a standard 9-pin DB-9 RS-232 serial port connector, which pin number is assigned to TD (Transmit Data)?
  1. A.1
  2. B.2
  3. C.3
  4. D.4
Q48
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 10๐Ÿท๏ธ 10.1. Hardware Interfacing (Serial Port DB-9 Connector Standard)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
The standard RS-232 serial port connection on an IBM PC uses which connector type?
  1. A.9pin DB 9
  2. B.8pin DB 9
  3. C.3pin DB 9
  4. D.9pin DB 5
Q49
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 10๐Ÿท๏ธ 10.1. Hardware Interfacing (Serial Port DB-9 Pin Assignments CTS)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In a standard 9-pin DB-9 RS-232 serial connector, which pin number is assigned to CTS (Clear To Send)?
  1. A.6
  2. B.7
  3. C.8
  4. D.9
Q50
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 10๐Ÿท๏ธ 10.1. Hardware Interfacing (Serial Port DB-9 Pin Assignments RTS)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In a standard 9-pin DB-9 RS-232 serial port connector, which pin number is assigned to RTS (Request To Send)?
  1. A.6
  2. B.7
  3. C.8
  4. D.9