Skip to main content

Computer Architecture & Assembly Language MCQs with Answers

Practice important Computer Architecture & Assembly Language MCQs with answers and explanations.

Multiple Choice Questions

Q281: Which INT 21h service is used to delete a file?
  • A: 3Ch
  • B: 3Dh
  • C: 41h
  • D: 42h
View Answer
C

Q282: What is stored in the first 446 bytes of a hard disk’s physical sector 0?
  • A: Partition table
  • B: Master Boot Record (MBR)
  • C: FAT32 LBA
  • D: NTFS
View Answer
B

Q283: What does the INT 21h - READ FROM FILE service return?
  • A: File size
  • B: Number of bytes read
  • C: Error code
  • D: File handle
View Answer
B

Q284: Which of the following describes the command tail in the program segment prefix?
  • A: Information for BIOS
  • B: Actual command tail
  • C: Command tail length
  • D: Program code
View Answer
B

Q285: What does the INT 21h - SET CURRENT FILE POSITION service do?
  • A: Set file attributes
  • B: Move file pointer
  • C: Create a new file
  • D: Delete a file
View Answer
B

Q286: In the example code, what does the instruction mov ah, 2 followed by int 0x13 do?
  • A: Resets disk system
  • B: Reads sectors into memory
  • C: Writes sectors to disk
  • D: Gets drive parameters
View Answer
B

Q287: What is the logical structure built by DOS on raw storage space used for?
  • A: To directly manage hardware
  • B: To provide abstractions like files and directories
  • C: To read BIOS settings
  • D: To rotate the disk
View Answer
B

Q288: What does the rep movsb instruction in the provided code do?
  • A: Reads from disk
  • B: Writes to disk
  • C: Copies a string of bytes
  • D: Terminates the program
View Answer
C

Q289: What is the primary purpose of the INT 13h - GET DRIVE PARAMETERS service?
  • A: To get drive parameters
  • B: To reset disk system
  • C: To read sectors into memory
  • D: To write sectors to disk
View Answer
A

Q290: Which DOS service is used to truncate a file?
  • A: INT 21h - CREATE OR TRUNCATE FILE
  • B: INT 21h - DELETE FILE
  • C: INT 21h - SET CURRENT FILE POSITION
  • D: INT 21h - GET FILE ATTRIBUTES
View Answer
A

Test Your Knowledge

Take a timed quiz on Computer Architecture & Assembly Language

🚀 Start Quiz Now