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 141 โ€“ 150 of 307 Questions
Page 15 of 31
Q141
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ DOS INT 21h File Services Error SignalsMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When invoking DOS INT 21h Service 3Dh (Open Existing File), how does the operating system signal that the file open operation failed?
๐Ÿ’ป assembly Snippet
mov ah, 0x3D
int 0x21
jc handle_error
  1. A.Carry Flag (CF) is set to 1 and an error code is returned in AX
  2. B.Zero Flag (ZF) is set to 1
  3. C.Carry Flag (CF) is cleared to 0
  4. D.Overflow Flag (OF) is set to 1
Q142
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ 8259 PIC Cascading Architecture and IRQ 2Medium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which hardware Interrupt Request (IRQ) line on the primary 8259 PIC is designated as the cascading interrupt line connected to the secondary (slave) PIC?
  1. A.IRQ 0
  2. B.IRQ 1
  3. C.IRQ 2
  4. D.IRQ 3
Q143
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ 8259 PIC IMR Port Address (Port 21h)Medium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
The 8259 Programmable Interrupt Controller (PIC) utilizes two primary I/O ports: Port 20h serves as the Command/Control port, while Port 21h serves as __________.
๐Ÿ’ป assembly Snippet
in al, 0x21
  1. A.The Interrupt Mask Register (IMR)
  2. B.Interrupt port
  3. C.Output port
  4. D.Input port
Q144
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ Interrupt Classification (Hardware vs Software)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
The 8088 processor architecture broadly classifies interrupts into how many primary classes?
  1. A.2 classes (Hardware and Software)
  2. B.3 classes
  3. C.4 classes
  4. D.5 classes
Q145
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ BIOS INT 13h Disk Services (Write Sectors)Medium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What operation is performed by BIOS INT 13h Service 03h?
๐Ÿ’ป assembly Snippet
mov ah, 0x03
int 0x13
  1. A.Read disk sectors
  2. B.Write disk sectors
  3. C.Reset disk subsystem
  4. D.Get drive parameters
Q146
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ Arithmetic Overflow Exception (INT 4)Medium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
For what specific purpose is processor Interrupt 4 (INT 4) reserved in Intel x86 architecture?
๐Ÿ’ป assembly Snippet
into
Q147
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ Single-Step Trap Interrupt (INT 1)Medium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
For what specific purpose is Interrupt 1 (INT 1) reserved in x86 architecture?
Q148
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ BIOS Keyboard Services (INT 16h)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which hardware and system services are provided by ROM BIOS Interrupt 16h (INT 0x16)?
๐Ÿ’ป assembly Snippet
mov ah, 0x00
int 0x16
Q149
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ Disabling Hardware Interrupts via 8259 PIC Mask RegisterMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Write a 5-instruction 8088 assembly program to disable the hardware keyboard interrupt (IRQ 1) by modifying the 8259 PIC Interrupt Mask Register (IMR).
๐Ÿ’ป assembly Snippet
in al, 0x21
or al, 2
out 0x21, al
Q150
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 8๐Ÿท๏ธ BIOS Cylinder-Head-Sector (CHS) Geometry and File SystemsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Fill in the missing terms in the following text regarding disk storage abstraction: 'BIOS sees the disks as a combination of sectors, tracks, and [Blank 1], as a raw storage device without concern to whether it is reading a file or directory. BIOS provides the simplest and most powerful interface to the storage medium. However, this raw storage is meaningless to the user who needs to store files and organize them into [Blank 2].'