Which of the following is an internal command of MS-DOS?
- A.FORMAT
- B.CHKDSK
- C.DIR
- D.XCOPY
Show answer
Explanation
The correct answer is C, DIR. An internal command is written into the command interpreter COMMAND.COM and is loaded into memory along with the operating system, so it can be used even when no separate program file is present on the disk. DIR, which lists the files and sub-directories of a directory, belongs to this group along with CD, MD, RD, COPY, DEL, REN, TYPE, CLS, DATE, TIME, VER, VOL, PATH and PROMPT. Option A is wrong because FORMAT, which prepares a disk by creating tracks and sectors and writing the file allocation table, exists as its own executable file and is therefore external. Option B is wrong because CHKDSK, which checks a disk for errors and reports free space, is also a separate executable. Option D is wrong because XCOPY, the extended copy command that can copy whole directory trees, is likewise an external command. Papers usually ask this question by listing three external commands and one internal one.