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 61 โ€“ 70 of 189 Questions
Page 7 of 19
Q61
๐Ÿง  Long Problem๐Ÿ“˜ CS401๐Ÿ“‘ Lec 10๐Ÿท๏ธ Breakpoint Interrupt Service Routine (INT 3)Hardโญ๐Ÿ’ก๐ŸŒŸ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Write an 8088 assembly language program to hook and implement a custom Breakpoint Interrupt Service Routine (INT 3 ISR). The program must back up the original interrupt vector, install the new handler, generate a breakpoint trigger, display a notification message, and safely restore the original handler.
๐Ÿ’ป assembly Snippet
int 3
Q62
๐Ÿง  Long Problem๐Ÿ“˜ CS401๐Ÿ“‘ Lec 10๐Ÿท๏ธ Software Debuggers and Breakpoint Interrupt (INT 3)Hardโญ๐Ÿ’ก๐ŸŒŸ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Write the complete 8088 assembly language implementation of a Breakpoint Interrupt Service Routine (INT 3 ISR) for a software debugger. The routine must save processor register state, restore the original instruction opcode, display register values on screen, wait for user keypress input, and resume program execution.
๐Ÿ’ป assembly Snippet
debugISR:
    push bp
    mov bp, sp
    push ax
    push bx
    push cx
    push dx
    push si
    push di
    push ds
    push es
Q63
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 10๐Ÿท๏ธ Single-Stepping and Trap Flag (TF) Interrupt HandlingHard๐Ÿ”โญ๐Ÿ’ก๐ŸŒŸ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In a software debugger program, how is single-stepping mode enabled using the Trap Flag (TF) on the stack frame during an Interrupt Service Routine (ISR)?
๐Ÿ’ป assembly Snippet
or word [bp+6], 0x0100
iret
Q64
๐Ÿง  Long Problem๐Ÿ“˜ CS401๐Ÿ“‘ Lec 10๐Ÿท๏ธ Interrupt Vector Table Hooking for DebuggersHardโญ๐Ÿ’ก๐ŸŒŸ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Write the 8088 assembly initialization code required by a software debugger to hook the Single-Step Interrupt (INT 1), Breakpoint Interrupt (INT 3), and Keyboard Interrupt (INT 9) vectors in the Interrupt Vector Table (IVT).
๐Ÿ’ป assembly Snippet
xor ax, ax
mov es, ax
mov word [es:1*4], trapisr
mov [es:1*4+2], cs
Q65
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 10๐Ÿท๏ธ VESA Graphics Standards and High-Color RGB FormattingMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
VESA (Video Electronics Standards Association) organizes 16 color bits per pixel in high-color graphics mode using which bit layout format?
  1. A.5:5:5 format
  2. B.5:6:5 format
  3. C.6:5:6 format
  4. D.5:6:7 format
Q66
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 10๐Ÿท๏ธ Graphics Mode Video Memory Mapping and PixelsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In graphics display mode, each memory location in video RAM corresponds directly to a __________ on the display screen.
  1. A.line
  2. B.dot (pixel)
  3. C.circle
  4. D.rectangle
Q67
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 10๐Ÿท๏ธ VESA VBE 2.0 Standards and High-Resolution Graphics ModesEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
VESA VBE 2.0 (Video Electronics Standards Association BIOS Extension) is a standard designed for __________.
  1. A.High resolution Mode
  2. B.Low resolution Mode
  3. C.Medium resolution Mode
  4. D.Very High resolution Mode
Q68
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 10๐Ÿท๏ธ Graphics Mode Video RAM MappingEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In graphics display mode, each location in video memory corresponds directly to a __________ on the screen.
  1. A.line
  2. B.dot (pixel)
  3. C.circle
  4. D.rectangle
Q69
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 10๐Ÿท๏ธ BIOS INT 10h Video Graphics Pixel ServicesMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which function number must be loaded into register AH to invoke the 'Write Graphics Pixel' service under BIOS INT 10h?
๐Ÿ’ป assembly Snippet
mov ah, 0x0C
mov al, 0x0F
mov cx, 100
mov dx, 50
int 0x10
  1. A.0Ch
  2. B.0Bh
  3. C.1Ch
  4. D.2Ch
Q70
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 10๐Ÿท๏ธ VESA VBE Standards and High-Resolution GraphicsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
VESA VBE 2.0 (Video Electronics Standards Association) is a software standard designed for __________.
  1. A.High resolution Mode
  2. B.Low resolution Mode
  3. C.Medium resolution Mode
  4. D.Very High resolution Mode