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 11 โ€“ 20 of 307 Questions
Page 2 of 31
Q11
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ 8.1. InterruptsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which x86 register is generally used to specify the service/function number when invoking a BIOS or DOS software interrupt?
๐Ÿ’ป assembly Snippet
mov ah, 0x09
mov dx, msg
int 0x21
  1. A.AH
  2. B.AL
  3. C.BH
  4. D.BL
Q12
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ 8.1. Hardware Interrupts and 8259 PICEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which of the following hardware interrupt requests (IRQs) is generated by the keyboard controller?
  1. A.IRQ 1
  2. B.IRQ 0
  3. C.IRQ 2
  4. D.IRQ 3
Q13
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ 8.1. Hardware Interrupts and 8259 PICEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which of the following Hardware Interrupt Requests (IRQs) is dedicated to the Floppy Disk Controller?
  1. A.IRQ 6
  2. B.IRQ 4
  3. C.IRQ 5
  4. D.IRQ 7
Q14
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ 8.1. Hardware Interrupts and 8259 PICEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When two hardware devices in a system attempt to use the same IRQ line simultaneously without proper sharing support, what occurs?
  1. A.An IRQ Conflict
  2. B.An IRQ Collision
  3. C.An IRQ Crash
  4. D.An IRQ Blockage
Q15
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ 8.1. Hardware Interrupts and Keyboard Handler InstallationMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In 8088 assembly language programming, explain how to hook a custom Keyboard Interrupt Service Routine (INT 9 ISR) into the Interrupt Vector Table (IVT). Annotate and complete the provided assembly code snippet.
๐Ÿ’ป assembly Snippet
mov word [es:9*4], kbisr   ; store offset at n*4
mov word [es:9*4+2], cs ; store segment at n*4+2
sti                     ; enable interrupts
Q16
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ 8.1. Hardware Interrupts and 8259 PIC Priority ArchitectureEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
On the primary 8259 Programmable Interrupt Controller (PIC), what is the priority level of the IRQ 0 interrupt line relative to other IRQs?
  1. A.highest
  2. B.high
  3. C.medium
  4. D.low
Q17
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ 8.1. Hardware Interrupts and 8259 PIC ArchitectureEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which of the following hardware Interrupt Request (IRQ) lines is driven by the Programmable Interval Timer (PIT) device?
  1. A.IRQ 0
  2. B.IRQ 1
  3. C.IRQ 2
  4. D.IRQ 3
Q18
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ 8.1. Hardware Interrupts and 8259 PIC EOI CommandEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
An End of Interrupt (EOI) command signal is sent to the 8259 Programmable Interrupt Controller (PIC) by which software entity upon completing interrupt servicing?
๐Ÿ’ป assembly Snippet
MOV AL, 0x20
OUT 0x20, AL
  1. A.Handler
  2. B.Processor
  3. C.IRQ
  4. D.PIC
Q19
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ 8.1. I/O Addressing and OUT InstructionEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which register serves as the source accumulator register containing the data byte or word to be transmitted in the I/O output instruction 'OUT'?
๐Ÿ’ป assembly Snippet
OUT DX, AL
  1. A.AL or AX
  2. B.BL or BX
  3. C.CL or CX
  4. D.DL or DX
Q20
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ 8.1. 8259 PIC Ports and Interrupt Mask RegisterEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In the master 8259 Programmable Interrupt Controller (PIC), which I/O port address is used for the Interrupt Mask Register (IMR) to selectively enable or disable hardware interrupts?
๐Ÿ’ป assembly Snippet
IN AL, 0x21
OR AL, 0x01
OUT 0x21, AL
  1. A.21
  2. B.19
  3. C.20
  4. D.22