CAOFINALQUIZ Flashcards
Which interrupt service is used to create a subdirectory?
a) INT 21H / 3CH
b) INT 21H / 39H
c) INT 21H / 3AH
d) INT 21H / 56H
INT 21H / 39H
Which of the following is a requirement for deleting a subdirectory using INT 21H / 3AH?
a) The subdirectory must not contain any files.
b) The subdirectory must be hidden.
c) The subdirectory must be read-only.
d) The subdirectory must have a volume label.
he subdirectory must not contain any files.
What is the purpose of INT 21H / 56H?
a) To rename files or directories.
b) To create a new file.
c) To open a file.
d) To delete a file.
To rename files or directories.
Which file attribute indicates a file is a “hidden file”?
a) 0
b) 1
c) 3
d) 5
1
What does the CX register represent when using the INT 21H / 3CH service?
a) File handle
b) File attribute
c) Error status
d) Directory path
File attribute
Which attribute is represented by bit 4 in a file attribute?
a) Archive file
b) Read-only file
c) Subdirectory
d) Volume label
Subdirectory
Which interrupt service is used to change a file’s attributes?
a) INT 21H / 43H
b) INT 21H / 3DH
c) INT 21H / 41H
d) INT 21H / 39H
INT 21H / 43H
What access mode value allows both reading and writing to a file?
a) 0
b) 1
c) 2
d) 3
2
Which interrupt service opens a file?
a) INT 21H / 3DH
b) INT 21H / 3EH
c) INT 21H / 5BH
d) INT 21H / 41H
INT 21H / 3DH
What is required to close a file using INT 21H / 3EH?
a) File path
b) File attribute
c) File handle
d) Directory path
File handle
Which directive is used to define the beginning of a procedure in assembly language?
a) PROC
b) ENDP
c) CALL
d) LOOP
PROC
What is the purpose of the CALL instruction in assembly language?
a) To end a procedure
b) To define a loop
c) To execute a procedure
d) To define a stack
To execute a procedure
What register is decremented in a loop instruction?
a) AX
b) CX
c) DX
d) BX
CX
Which stack instruction places data onto the stack segment?
a) POP
b) PUSH
c) LOOP
d) CALL
PUSH
Which stack instruction retrieves data from the stack?
a) POP
b) PUSH
c) LOOP
d) CALL
POP
How many times does the loop execute if CX = 10?
a) 0
b) 10
c) 11
d) Unlimited
10
What happens to CX when the LOOP instruction executes?
a) It is incremented.
b) It is reset to 0.
c) It is decremented.
d) It remains unchanged.
It is decremented.
In the sample program, what is the value pushed onto the stack using the instruction PUSH AX?
a) The value of the AX register.
b) The value of the BX register.
c) The value of the CX register.
d) The value of the DX register.
he value of the AX register.
What is the purpose of the RET instruction in a procedure?
a) To return control to the calling program.
b) To define the end of the program.
c) To increment the CX register.
d) To loop back to the start of a procedure.
To return control to the calling program.
Which register is used to point to a string in memory for INT 21H services?
a) BX
b) CX
c) DX
d) AX
DX
What is the purpose of INT 21H / 39H?
a) To create a file in the current directory
b) To create a subdirectory
c) To delete a file from a directory
d) To rename a file or directory
To create a subdirectory
What does the INT 21H / 3AH service do?
a) Renames a directory
b) Deletes a subdirectory
c) Retrieves file attributes
d) Changes the current directory
Deletes a subdirectory