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 71 โ€“ 80 of 307 Questions
Page 8 of 31
Q71
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ 8.1. Hardware Interrupts (INT 3 Breakpoint Interrupt Mechanics)Mediumโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Briefly describe the functionality and usage of `INT 3` in x86 microprocessor architecture.
๐Ÿ’ป assembly Snippet
int 3 ; Special 1-byte breakpoint opcode (0xCC)
Q72
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ 8.1. Hardware Interrupts (Interrupt Service Routine ISR Definition)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
The software routine that executes in response to a hardware or software interrupt (`INT`) instruction is called a(n) __________.
  1. A.ISR
  2. B.IRS
  3. C.ISP
  4. D.IRT
Q73
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ Interrupt Types and Non-Maskable InterruptsMediumโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which of the following interrupt vectors in the x86 architecture is assigned to the hardware Non-Maskable Interrupt (NMI)?
  1. A.INT 0
  2. B.INT 1
  3. C.INT 2
  4. D.INT 3
Q74
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ Software Interrupt Execution MechanismEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which 8088 assembly language instruction is used to invoke a software interrupt routine?
๐Ÿ’ป assembly Snippet
mov ax, 0x4c00
int 0x21        ; Invokes DOS terminate service via software interrupt
  1. A.GO INT interrupt_number
  2. B.Call interrupt_number
  3. C.INT interrupt_number
  4. D.Call INT interrupt_number
Q75
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ Software Interrupt Mechanics and Stack OperationsMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Describe the changes that occur on the stack when an INT (software interrupt) instruction is executed in the 8088 microprocessor.
๐Ÿ’ป assembly Snippet
int 0x21
Q76
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ Dedicated CPU Interrupts and INTO InstructionEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which software interrupt vector is automatically invoked by the INTO instruction when an arithmetic overflow occurs (Overflow Flag OF = 1)?
๐Ÿ’ป assembly Snippet
add ax, bx
into        ; Generates INT 4 if Overflow Flag (OF) is set
  1. A.INT 1
  2. B.INT 2
  3. C.INT 3
  4. D.INT 4
Q77
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ Interrupt Flag (IF) and Critical SectionsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Define the Interrupt Flag (IF) in the 8088 microprocessor and detail its function in controlling maskable hardware interrupts.
๐Ÿ’ป assembly Snippet
cli
; critical section
sti
Q78
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ BIOS Video Services (INT 10h)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which software interrupt vector is used by the system to invoke BIOS video services in assembly language?
๐Ÿ’ป assembly Snippet
mov ah, 0x00
mov al, 0x03
int 0x10
  1. A.RAM Services
  2. B.Disk Services
  3. C.BIOS Video Services
  4. D.DOS Video Services
Q79
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ Interrupt Return (IRET) MechanicsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which instruction is used to exit an Interrupt Service Routine (ISR) and restore pre-interrupt CPU execution state in 8088 assembly language?
๐Ÿ’ป assembly Snippet
iret
  1. A.RET
  2. B.RETF
  3. C.IRET
  4. D.POP
Q80
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ Hardware Interrupt Pins (INTR and NMI)Easy๐Ÿ”โญ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
How many physical processor pins on the 8088 CPU are utilized by external hardware components to signal interrupts?
  1. A.1 Pin
  2. B.2 Pins
  3. C.3 Pins
  4. D.4 Pins