Vidyalelo
Computer Science · Q41

Disk Operating System (DOS)

Engineering and GATE · Computer Science · question 41

Q41

DEL command is used to

A.
Delete files
Answer
B.
Delete directory
C.
Delete labels
D.
Delete contents of file

Answer: Option A

Solution

Answer: Option A
Solution:
In Disk Operating System (DOS), the DEL command is used to delete files. When you enter "del filename" at the command prompt in DOS, it deletes the specified file from the current directory.

Option B, "Delete directory," is not done with the DEL command in DOS. To delete a directory, the command is typically "rmdir" or "rd" in DOS.
Option C, "Delete labels," is not a function of the DEL command in DOS.
Option D, "Delete contents of file," is not the primary purpose of the DEL command, which deletes entire files rather than just their contents.

Therefore, the correct answer is Option A: Delete files.