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 111 โ€“ 120 of 307 Questions
Page 12 of 31
Q111
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ Processor Faults vs Traps and Divide Error ExceptionHard๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which type of processor interrupt exception automatically saves the address of the faulting instruction on the stack so execution returns to the same instruction rather than the next instruction?
  1. A.Divide overflow interrupt (Divide Error)
  2. B.Debug interrupt
  3. C.Arithmetic overflow interrupt
  4. D.Change of sign interrupt
Q112
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ Hardware Interrupt Assignment for System Timer (IRQ 0)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which hardware Interrupt Request (IRQ) line is driven directly by the Programmable Interval Timer (PIT) device?
  1. A.IRQ 0
  2. B.IRQ 1
  3. C.IRQ 2
  4. D.IRQ 3
Q113
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ Hardware Interrupt Assignment for Serial Ports (IRQ 3)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which hardware Interrupt Request (IRQ) line is connected to serial communications port COM 2?
  1. A.IRQ 0
  2. B.IRQ 1
  3. C.IRQ 2
  4. D.IRQ 3
Q114
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ Port Input/Output Instructions (IN / OUT)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which register(s) serve as the source data register for the OUT instruction in x86 port I/O operations?
๐Ÿ’ป assembly Snippet
out 0x20, al
out dx, ax
  1. A.AL or AX
  2. B.BL or BX
  3. C.CL or CX
  4. D.DL or DX
Q115
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ 8259 PIC End of Interrupt (EOI) CommandMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Who or what sends the End of Interrupt (EOI) signal to the Programmable Interrupt Controller (PIC) upon completing interrupt processing?
๐Ÿ’ป assembly Snippet
mov al, 0x20
out 0x20, al
  1. A.Interrupt Service Routine (Handler)
  2. B.Processor Hardware
  3. C.IRQ Line
  4. D.Programmable Interrupt Controller (PIC)
Q116
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ 8259 PIC Interrupt Mask Register (IMR) PortsMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In the 8259 Programmable Interrupt Controller (PIC), which I/O port address is used by the Interrupt Mask Register (IMR) to selectively enable or disable IRQ lines?
๐Ÿ’ป assembly Snippet
in al, 0x21
or al, 0x02
out 0x21, al
  1. A.Port 19h
  2. B.Port 20h
  3. C.Port 21h
  4. D.Port 22h
Q117
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ DOS File System Abstraction vs BIOS Raw Disk AccessEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which software component provides a higher-level logical view of storage media by organizing raw disk sectors into files and directories?
  1. A.BIOS
  2. B.DOS
  3. C.Both BIOS and DOS
  4. D.None of the above
Q118
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ 8259 PIC Architecture and IRQ LinesMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
How are the primary Interrupt Request (IRQ) lines configured on the 8259 Programmable Interrupt Controller (PIC)?
  1. A.Eight hardware input interrupt signals
  2. B.One hardware output interrupt signal
  3. C.One hardware input interrupt signal
  4. D.Eight hardware output interrupt signals
Q119
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ Hardware Interrupt Assignment for Keyboard (IRQ 1)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which hardware Interrupt Request (IRQ) line is assigned to the system keyboard in IBM PC architecture?
  1. A.IRQ 0
  2. B.IRQ 1
  3. C.IRQ 2
  4. D.IRQ 3
Q120
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ Hardware Interrupt Assignment for Serial Ports (IRQ 4)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which hardware Interrupt Request (IRQ) line is assigned to serial communications port COM 1?
  1. A.IRQ 4
  2. B.IRQ 5
  3. C.IRQ 6
  4. D.IRQ 7