Computer Architecture & Assembly Language MCQs with Answers
Practice important Computer Architecture & Assembly Language MCQs with answers and explanations.
Multiple Choice Questions
Q301: Which service in DOS is used to read from a file?
- A: INT 21h, AH=3Dh
- B: INT 21h, AH=3Fh
- C: INT 21h, AH=40h
- D: INT 21h, AH=41h
View Answer
B
Q302: What happens if the cmp ax, cx instruction in the file comparison program finds a mismatch?
- A: Program exits
- B: Files are declared identical
- C: Files are declared different
- D: Program loops back
View Answer
C
Q303: What does the BIOS Parameter Block (BPB) provide?
- A: Boot sector information
- B: Storage medium parameters
- C: Memory allocation details
- D: Interrupt vector table
View Answer
B
Q304: How many FAT copies does the BPB example contain?
- A: 1
- B: 2
- C: 4
- D: 8
View Answer
A
Q305: What value is stored in the media descriptor byte in the example BPB?
- A: 0xF8
- B: 0xF0
- C: 0xE0
- D: 0xD0
View Answer
A
Q306: What is the purpose of the mov ah, 0x4A instruction in the multitasking TSR caller program?
- A: Resize memory
- B: Load a program
- C: Free memory
- D: Allocate memory
View Answer
A
Q307: In the file comparison program, what does the int 0x21 instruction with AH=3E do?
- A: Open a file
- B: Close a file
- C: Read from a file
- D: Write to a file
View Answer
B
Q308: What is the significance of the 0x80 value used in the mov cl, [0x80] instruction?
- A: Indicates command tail length
- B: Indicates file handle
- C: Indicates buffer size
- D: Indicates memory address
View Answer
A
Q309: In DOS, what does the error flag (CF) being set indicate when using memory-related interrupts?
- A: Successful operation
- B: An error occurred
- C: Program termination
- D: System reboot
View Answer
B
Q310: Which segment register is typically used with the int 0x21 service to point to the program name?
- A: DS
- B: ES
- C: SS
- D: CS
View Answer
A