Disk Operating System (DOS) Question:
Download Questions PDF

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

Answer:

d. Dir *.ext
Explanation:
First two options are obviously wrong since specifying filename will list for that filename only. Since we need to list only with .ext extension fourth option is correct. Third option displays all files with sys extension.

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

Previous QuestionNext Question
Which command displays comma for thousand separating on file size while listing?

a. Dir/w
b. Dir/s
c. Dir/b
d. Dir/c
Which command is used to delete the directory that is empty?

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