DOS Test Questions
See answers at the end.
-
To view the files in the current directory the command would be
a. DIR
b. DEL
c. CD
d. SHOW -
The command used to change to a sub-directory is
a. DIR
b. CD
c. CHDIR
d. Both b and c above -
To go to root directory from any directory you would use
a. CD ..
b. DIR \
c. CD \
d. CD -
The command CD with no parameters would show
a. The root directory
b. The contents of the current directory
c. The current DOS path
d. None of the above -
To go to the parent directory from the current you would use the command
a. CD ..
b. CD \
c. DIR ..\
d. DIR .. -
To see the directory listing of the root directory you would use
a. DIR ..
b. DIR \
c. DIR ..\
d. CD \ -
To see the directory listing of the parent directory you would use
a. DIR \
b. DIR ..
c. DIR ..\
d. both b and c -
Path name given as “...." is called as
a. Absolute path
b. Relative path
c. Alternate path
d. None of the above -
Path name given as “\DOS” or “C:\DOS” is called
a. Alternate path
b. Relative path
c. Absolute path
d. All of the above -
DEL . deletes all files in
a. The current directory
b. In the current directory and all its sub-directories
c. In the root directory
d. All files irrespective of where they are located -
DIR is
a. An external command
b. An internal command
c. Both of the above
d. None of the above -
Internal commands are interpreted by
a. COMMAND.COM
b. AUTOEXEC.BAT
c. CONFIG.SYS
d. None of the above -
To automatically execute a program when the computer starts it must be loaded in
a. AUTOEXEC.BAT
b. COMMAND.COM
c. FORMAT.COM
d. CONFIG.SYS -
Executable code files have the extension
a. COM
b. EXE
c. BAT
d. Both a and b -
Batch files have the extension
a. BAT
b. EXE
c. COM
d. None of the above -
Batch files contain
a. Machine code
b. Simple Text (ASCII text)
c. Program
d. Both b and c -
Batch files are interpreted by
a. AUTOEXEC.BAT
b. COMMAND.COM
c. CONFIG.SYS
d. None of the above -
A file name has
a. Eight characters followed by three character extension
b. Eleven characters followed by three character extension
c. Eight characters
d. Three characters -
To list all files having the extension EXE you will use
a. DIR .
b. DIR EXE
c. DIR *.EXE
d. CD *.EXE -
The characters used for wildcards are
a. *
b. x
c. ?
d. Both a and c above
Answers
1a 2d 3c 4c 5a 6b 7d 8b 9c 10a 11b 12a 13a 14d 15a 16d 17b 18a 19c 20d