Disk Operating System (DOS) Question:
Download Questions PDF

Which command is used to delete the directory that is empty?

a. Del *.*
b. RD
c. Erase
d. MD

Answer:

b. RD
Explanation:
RD command or RMDIR commands can be used to remove a directory if it is empty. Del command and Erase commands are used to delete files not directories. MD creates a new directory and can't remove directory.

Download DOS (Disk Operating System) Interview Questions And Answers PDF

Previous QuestionNext Question
Which command is used to display all the files having the (.exe) extension but different filename?

a. Dir filename.*
b. Dir filename.ext
c. Dir *.sys
d. Dir *.ext
Which command creates a directory or subdirectory?

a. Dir
b. Mkdir
c. Md
d. Both b and c