Ch 17: Secondary Storage and Device Drivers

183 Questions183 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 183 Questions
Page 5 of 19
Q41
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 17๐Ÿท๏ธ Interrupt Stack Frame and Automatic FLAGS PreservationMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Explain the precise stack pushing order when an Interrupt Service Routine (ISR) is invoked via the INT instruction in 8088 assembly language, and why saving the FLAGS register automatically on the stack is necessary.
๐Ÿ’ป assembly Snippet
int 0x10
iret
Q42
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 17๐Ÿท๏ธ Interrupt Service Routine (ISR) and INT InstructionEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What is an Interrupt Service Routine (ISR) or Interrupt Handler, and which assembly instruction is executed to generate a software interrupt in 8088 programs?
๐Ÿ’ป assembly Snippet
int 0x10
  1. A.An ISR is a hardware signal; generated using CALL
  2. B.An ISR is a routine that executes in response to an interrupt; generated using INT
  3. C.An ISR is a segment register; generated using RETF
  4. D.An ISR is a memory stack frame; generated using PUSHF
Q43
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 17๐Ÿท๏ธ Vectored Interrupt Architecture and Interrupt Vector Table (IVT) StructureMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Explain the concept of Vectored Interrupts and the Interrupt Vector Table (IVT) in 8088 architecture. State where the IVT is located in physical memory, the size of each vector entry, and how segment and offset addresses are stored.
๐Ÿ’ป assembly Snippet
int 0x21
Q44
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 17๐Ÿท๏ธ Hooking Interrupts and IVT ModificationMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What does 'hooking an interrupt' mean in 8088 assembly programming? Explain how a program modifies an entry in the Interrupt Vector Table (IVT) to intercept or replace a system interrupt handler.
๐Ÿ’ป assembly Snippet
cli
mov word [es:0x84], new_isr_off
mov word [es:0x86], new_isr_seg
sti
Q45
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 17๐Ÿท๏ธ IVT Entry Calculation and Address LayoutEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In 8088 architecture, how many total bytes are occupied by an entry in the Interrupt Vector Table (IVT), and what is the physical memory address for INT 0x10?
  1. A.2 bytes, located at physical address 0x00010
  2. B.4 bytes, located at physical address 0x00040
  3. C.4 bytes, located at physical address 0x00100
  4. D.8 bytes, located at physical address 0x00080
Q46
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 17๐Ÿท๏ธ IVT Indexing Formulas and Memory Layout for Interrupt VectorsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
State the mathematical formulas used to calculate the memory offset addresses for Interrupt Vector 'n' in the Interrupt Vector Table (IVT), and determine the exact byte location range for Interrupt 2 (INT 2).
Q47
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 17๐Ÿท๏ธ Complete Hardware/Software Interrupt Execution Cycle and IRET MechanicsMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Detail the step-by-step CPU hardware execution sequence that occurs when interrupt 'n' is triggered (via software 'INT n' or hardware), and explain the reverse operation performed by 'IRET'.
๐Ÿ’ป assembly Snippet
int 0x10
iret
Q48
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 17๐Ÿท๏ธ Indirect Address Vectoring in Interrupt Vector Table (IVT)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Why is the Interrupt Vector Table (IVT) described as an indirection mechanism analogous to a book's Table of Contents?
  1. A.Because the INT instruction does not contain the target ISR address directly; it looks up the target address indirectly from the IVT at address zero
  2. B.Because the IVT automatically translates assembly language source code into machine opcodes
  3. C.Because the IVT rearranges physical memory pages to optimize CPU execution speed
  4. D.Because the IVT is located at the top of physical RAM (segment 0xFFFF)
Q49
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 17๐Ÿท๏ธ Using RETF vs IRET in Interrupt Service Routines and Stack AlignmentMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What happens if an Interrupt Service Routine (ISR) terminates with 'RETF' instead of 'IRET'? Explain the resulting stack imbalance and caller expectations.
๐Ÿ’ป assembly Snippet
iret
retf
Q50
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 17๐Ÿท๏ธ IRET vs RETF vs Near RET Stack Unwinding DistinctionsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
How does the 'IRET' (Interrupt Return) instruction differ from 'RETF' (Far Return) and standard 'RET' (Near Return) regarding stack memory operations?
๐Ÿ’ป assembly Snippet
iret
retf
ret
  1. A.IRET pops IP, CS, and FLAGS from the stack; RETF pops IP and CS; Near RET pops only IP
  2. B.IRET pops FLAGS, CS, and IP; RETF pops only CS; Near RET pops AX and IP
  3. C.IRET pops CS and IP, leaving FLAGS on the stack; RETF pops FLAGS and CS; Near RET pops IP
  4. D.IRET pops IP and FLAGS; RETF pops CS and IP; Near RET pops SP and IP