Ch 09: Software Interrupts and DOS/BIOS Services

174 Questions174 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 171 โ€“ 174 of 174 Questions
Page 18 of 18
Q171
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ 9.2. DOS File Management ServicesMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When executing MS-DOS system call INT 0x21 with AH = 0x3D (Open Existing File), how does the operating system indicate that the file could not be opened?
๐Ÿ’ป assembly Snippet
mov ah, 0x3d  ; Open file
mov al, 0     ; Read access
mov dx, filename
int 0x21
jc file_error  ; Jumps if CF = 1
  1. A.Carry Flag is set (CF = 1) and an error code is returned in AX
  2. B.Zero Flag is set (ZF = 1) and AX = 0
  3. C.Interrupt 0x24 is generated immediately
  4. D.AX is set to 0xFFFF without changing flags
Q172
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ 9.2. DOS File Management ServicesMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When executing MS-DOS system call INT 0x21 with AH = 0x3D (Open File), if the file cannot be opened, which status flag is set?
๐Ÿ’ป assembly Snippet
mov ah, 0x3d
int 0x21
jc file_error  ; Jumps if CF = 1
  1. A.Carry Flag is set (CF = 1)
  2. B.Carry Flag is cleared (CF = 0)
  3. C.Zero Flag is set (ZF = 1)
  4. D.Zero Flag is cleared (ZF = 0)
Q173
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ 9.1. Program Segment PrefixMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When executing a COM file, at which offset within the Program Segment Prefix (PSP) does the text of the first command-line parameter begin?
  1. A.0x80
  2. B.0x82
  3. C.0x84
  4. D.0x86
Q174
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ 9.3. BIOS Disk Services (INT 13h)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In BIOS disk interrupt service INT 0x13, subservice AH = 0x03 is used to:
๐Ÿ’ป assembly Snippet
mov ah, 0x03  ; Write disk sectors
int 0x13
  1. A.Read disk sectors
  2. B.Write disk sectors
  3. C.Reset disk system
  4. D.Get drive parameters