Ch 08: String Instructions and Primitives

307 Questions307 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 191 โ€“ 200 of 307 Questions
Page 20 of 31
Q191
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ Single-Step Debug Interrupt (INT 1)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
For what specific purpose is Software Interrupt 1 (INT 1) reserved in x86 processor architecture?
Q192
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ Disabling Keyboard Interrupt via 8259 PIC Port 21hMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Write a 5-instruction assembly language program to disable (mask) the keyboard hardware interrupt (IRQ 1) using the 8259 Programmable Interrupt Controller (PIC) Interrupt Mask Register (IMR).
๐Ÿ’ป assembly Snippet
in al, 0x21
or al, 0x02
out 0x21, al
Q193
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ Non-Maskable Interrupt (INT 2)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which x86 processor interrupt vector is dedicated to handling the hardware Non-Maskable Interrupt (NMI)?
  1. A.INT 2
  2. B.INT 3
  3. C.INT 0
  4. D.INT 1
Q194
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ Serial Communication IRQ Assignments (COM 2 / IRQ 3)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which hardware Interrupt Request (IRQ) line is connected to Serial Port COM 2 in standard IBM PC architecture?
  1. A.IRQ 0
  2. B.IRQ 1
  3. C.IRQ 2
  4. D.IRQ 3
Q195
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ System Timer Tick Interval (55 ms)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What is the approximate time interval between two consecutive clock ticks generated by the Programmable Interval Timer (PIT IRQ 0)?
  1. A.40 ms
  2. B.45 ms
  3. C.50 ms
  4. D.55 ms
Q196
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ Single-Step Exception (INT 1) vs Divide Overflow (INT 0)Medium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In x86 processor architecture, the single-step interrupt (INT 1) is classified as an internal CPU exception, making it functionally similar to which other exception?
  1. A.Hardware interrupt
  2. B.Like divide-by-zero interrupt (INT 0)
  3. C.Like divide-by-1 interrupt
  4. D.Software interrupt
Q197
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ Programmable Interval Timer and IRQ 0Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which hardware Interrupt Request (IRQ) line is driven directly by the system Programmable Interval Timer (PIT)?
  1. A.IRQ 0
  2. B.IRQ 1
  3. C.IRQ 2
  4. D.IRQ 3
Q198
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ 8259 PIC Command Port (Port 20h)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In the 8259 Programmable Interrupt Controller (PIC), which I/O port address is designated as the primary Control Port?
๐Ÿ’ป assembly Snippet
out 0x20, al
  1. A.Port 19h
  2. B.Port 20h
  3. C.Port 21h
  4. D.Port 22h
Q199
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ INT 3 Breakpoint Interrupt MechanicsMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Describe the functionality and special characteristics of the INT 3 Debug Exception interrupt in x86 assembly language.
๐Ÿ’ป assembly Snippet
int 3
Q200
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ Breakpoint Interrupt Service Routine (INT 3 ISR)Hard๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Write the assembly language code for a Breakpoint Interrupt Handler (INT 3 ISR) that reads the saved register state, decrements the return address to point back to the breakpoint instruction, and prepares for opcode restoration.
๐Ÿ’ป assembly Snippet
debugISR:
    push bp
    mov bp, sp
    dec word [bp+2]