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 161 โ€“ 170 of 307 Questions
Page 17 of 31
Q161
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ Hardware Interrupt Assignments (IRQ 7 for LPT1)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which hardware Interrupt Request (IRQ) line is assigned by default to the primary Parallel Port (LPT1)?
  1. A.IRQ 4
  2. B.IRQ 5
  3. C.IRQ 6
  4. D.IRQ 7
Q162
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ 8259 PIC IRQ Priority HierarchyEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Among the hardware Interrupt Request (IRQ) lines managed by the primary 8259 PIC, what is the priority level of IRQ 0?
  1. A.Highest
  2. B.Low
  3. C.Medium
  4. D.None of the above
Q163
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ Interrupt Processing and FLAGS Register ModificationMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When a hardware or software interrupt is triggered, the processor pushes the current execution context onto the stack and loads new segment:offset values into CS and IP, while modifying which status register?
  1. A.DS
  2. B.SS
  3. C.FLAGS
  4. D.Bookmark
Q164
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ 8259 PIC Cascading Interrupt ArchitectureEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which hardware Interrupt Request (IRQ) line on the master 8259 PIC is reserved as the cascading line connected to the secondary (slave) 8259 PIC?
  1. A.IRQ 0
  2. B.IRQ 1
  3. C.IRQ 2
  4. D.IRQ 3
Q165
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ Divide Error Exception (INT 0)Medium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When a division operation results in a quotient too large to fit in the destination register (Divide Overflow / Divide by Zero), what type of interrupt is triggered by the processor?
๐Ÿ’ป assembly Snippet
mov ax, 1000
mov bl, 0
div bl
  1. A.Hardware interrupt
  2. B.Software interrupt
  3. C.Processor exception
  4. D.Logical interrupt
Q166
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ Software Interrupt Service Function RegistersEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which CPU register is standardly loaded with the service function number prior to invoking a BIOS or DOS software interrupt?
๐Ÿ’ป assembly Snippet
mov ah, 0x09
int 0x21
  1. A.DX
  2. B.AX
  3. C.BX
  4. D.CX
Q167
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ DOS System Services (INT 21h)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which software interrupt vector is invoked to access DOS operating system services?
๐Ÿ’ป assembly Snippet
mov ah, 0x4c
int 0x21
  1. A.INT 0x21
  2. B.INT 0x13
  3. C.INT 0x10
  4. D.INT 0x08
Q168
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ DOS INT 21h Service 0Ah Buffered Input Buffer StructureMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When using DOS INT 21h Service 0Ah (Buffered Keyboard Input), in which byte of the input buffer is the actual count of characters read returned?
๐Ÿ’ป assembly Snippet
buffer: db 80, 0
resb 80
  1. A.First byte
  2. B.Second byte
  3. C.Third byte
  4. D.Fourth byte
Q169
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ 8259 PIC Priority Hierarchy (IRQ 0)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What is the priority level of hardware IRQ 0 (System Timer) on the master 8259 Programmable Interrupt Controller?
  1. A.Low
  2. B.High
  3. C.Highest
  4. D.Medium
Q170
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ Trap Flag (TF) and Debug Exception (INT 1)Medium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which interrupt vector is automatically generated by the CPU for single-step debugging when the Trap Flag (TF) is set?
  1. A.INT 0
  2. B.INT 1
  3. C.INT 2
  4. D.INT 3