DOS II: DISK OPERATING SYSTEM FINAL EXAM| 2026/2027 COMPLETE
QUESTIONS AND CORRECT ANSWERS LATEST VERSION (PASS
GUARANTEE)
1. Which DOS command is used to display the contents of a text file on the
screen?
A. DIR
B. TYPE
C. COPY
D. SHOW
ANSWER : B
Explanation: TYPE command displays the contents of a text file. DIR lists
directory contents, COPY copies files, and SHOW is not a valid DOS command.
2. What does the DOS command 'DIR /P' do?
A. Displays files in alphabetical order
B. Displays files one page at a time
C. Displays files with full path
D. Displays hidden files only
ANSWER : B
Explanation: The /P switch pauses after each screenful of information. /O sorts
alphabetically, /S shows full paths, and there is no switch that shows only hidden
files in this way.
3. Which command is used to clear the screen in DOS?
A. ERASE
B. DELETE
C. CLS
D. CLEAR
ANSWER : C
Page 1 of 55
,Explanation: CLS (Clear Screen) clears the display. ERASE and DELETE
remove files, and CLEAR is not a valid DOS command.
4. What is the correct syntax for renaming a file in DOS?
A. RENAME oldname newname
B. REN oldname.ext newname.ext
C. MOVE oldname newname
D. CHANGE oldname newname
ANSWER : B
Explanation: REN (or RENAME) requires the old filename with extension
followed by the new filename with extension. MOVE changes location, not name.
CHANGE is not a valid command.
5. Which DOS command creates a new directory?
A. NEWDIR
B. CREATE
C. MD or MKDIR
D. MK
ANSWER : C
Explanation: MD (Make Directory) or MKDIR creates a new folder. NEWDIR,
CREATE, and MK are not valid DOS commands.
6. What does the wildcard character '*' represent in DOS?
A. A single character
B. Any number of characters including none
C. Only numeric characters
D. Only alphabetic characters
ANSWER : B
Explanation: The asterisk (*) is a wildcard representing any number of characters
(including zero). The '?' wildcard represents a single character.
7. Which command removes a directory in DOS?
A. DEL
B. ERASE
Page 2 of 55
, C. RD or RMDIR
D. REMOVE
ANSWER : C
Explanation: RD (Remove Directory) or RMDIR deletes an empty directory. DEL
and ERASE delete files, not directories. REMOVE is not a valid DOS command.
8. What is the purpose of the PATH command in DOS?
A. Creates a shortcut to a file
B. Sets the search path for executable files
C. Displays the current directory
D. Changes the current drive
ANSWER : B
Explanation: PATH sets the directories DOS searches when looking for
executable files. It enables running programs from any directory without
specifying full paths.
9. Which DOS command copies an entire directory including subdirectories?
A. COPY /S
B. XCOPY /S
C. COPYTREE
D. MIRROR
ANSWER : B
Explanation: XCOPY with the /S switch copies directories and subdirectories.
Regular COPY only copies individual files. COPYTREE and MIRROR are not
standard DOS commands.
10. What does 'ATTRIB +R filename' do in DOS?
A. Removes the read-only attribute
B. Sets the file as read-only
C. Renames the file
D. Repairs a corrupted file
ANSWER : B
Explanation: +R sets the read-only attribute, preventing accidental modification. -
R removes the attribute. ATTRIB does not rename or repair files.
Page 3 of 55
, 11. Which command displays the DOS version currently running?
A. VERSION
B. VER
C. DOSVER
D. SYSINFO
ANSWER : B
Explanation: VER displays the current DOS version number. VERSION,
DOSVER, and SYSINFO are not valid standard DOS commands.
12. What is the function of the PROMPT command in DOS?
A. Displays a help message
B. Changes the command prompt appearance
C. Prompts the user to insert a disk
D. Restarts the computer
ANSWER : B
Explanation: PROMPT customizes the appearance of the command prompt. For
example, PROMPT $P$G shows the current path followed by '>'.
13. Which switch with the DIR command shows hidden and system files?
A. /H
B. /A
C. /S
D. /F
ANSWER : B
Explanation: /A (attributes) switch shows all files including hidden and system
files. /S searches subdirectories, /P pauses output, and /F is not a standard DIR
switch.
14. What does the DISKCOPY command do in DOS?
A. Copies selected files to another disk
B. Makes an exact duplicate of a floppy disk
C. Compresses disk contents
D. Formats and copies files simultaneously
ANSWER : B
Page 4 of 55
QUESTIONS AND CORRECT ANSWERS LATEST VERSION (PASS
GUARANTEE)
1. Which DOS command is used to display the contents of a text file on the
screen?
A. DIR
B. TYPE
C. COPY
D. SHOW
ANSWER : B
Explanation: TYPE command displays the contents of a text file. DIR lists
directory contents, COPY copies files, and SHOW is not a valid DOS command.
2. What does the DOS command 'DIR /P' do?
A. Displays files in alphabetical order
B. Displays files one page at a time
C. Displays files with full path
D. Displays hidden files only
ANSWER : B
Explanation: The /P switch pauses after each screenful of information. /O sorts
alphabetically, /S shows full paths, and there is no switch that shows only hidden
files in this way.
3. Which command is used to clear the screen in DOS?
A. ERASE
B. DELETE
C. CLS
D. CLEAR
ANSWER : C
Page 1 of 55
,Explanation: CLS (Clear Screen) clears the display. ERASE and DELETE
remove files, and CLEAR is not a valid DOS command.
4. What is the correct syntax for renaming a file in DOS?
A. RENAME oldname newname
B. REN oldname.ext newname.ext
C. MOVE oldname newname
D. CHANGE oldname newname
ANSWER : B
Explanation: REN (or RENAME) requires the old filename with extension
followed by the new filename with extension. MOVE changes location, not name.
CHANGE is not a valid command.
5. Which DOS command creates a new directory?
A. NEWDIR
B. CREATE
C. MD or MKDIR
D. MK
ANSWER : C
Explanation: MD (Make Directory) or MKDIR creates a new folder. NEWDIR,
CREATE, and MK are not valid DOS commands.
6. What does the wildcard character '*' represent in DOS?
A. A single character
B. Any number of characters including none
C. Only numeric characters
D. Only alphabetic characters
ANSWER : B
Explanation: The asterisk (*) is a wildcard representing any number of characters
(including zero). The '?' wildcard represents a single character.
7. Which command removes a directory in DOS?
A. DEL
B. ERASE
Page 2 of 55
, C. RD or RMDIR
D. REMOVE
ANSWER : C
Explanation: RD (Remove Directory) or RMDIR deletes an empty directory. DEL
and ERASE delete files, not directories. REMOVE is not a valid DOS command.
8. What is the purpose of the PATH command in DOS?
A. Creates a shortcut to a file
B. Sets the search path for executable files
C. Displays the current directory
D. Changes the current drive
ANSWER : B
Explanation: PATH sets the directories DOS searches when looking for
executable files. It enables running programs from any directory without
specifying full paths.
9. Which DOS command copies an entire directory including subdirectories?
A. COPY /S
B. XCOPY /S
C. COPYTREE
D. MIRROR
ANSWER : B
Explanation: XCOPY with the /S switch copies directories and subdirectories.
Regular COPY only copies individual files. COPYTREE and MIRROR are not
standard DOS commands.
10. What does 'ATTRIB +R filename' do in DOS?
A. Removes the read-only attribute
B. Sets the file as read-only
C. Renames the file
D. Repairs a corrupted file
ANSWER : B
Explanation: +R sets the read-only attribute, preventing accidental modification. -
R removes the attribute. ATTRIB does not rename or repair files.
Page 3 of 55
, 11. Which command displays the DOS version currently running?
A. VERSION
B. VER
C. DOSVER
D. SYSINFO
ANSWER : B
Explanation: VER displays the current DOS version number. VERSION,
DOSVER, and SYSINFO are not valid standard DOS commands.
12. What is the function of the PROMPT command in DOS?
A. Displays a help message
B. Changes the command prompt appearance
C. Prompts the user to insert a disk
D. Restarts the computer
ANSWER : B
Explanation: PROMPT customizes the appearance of the command prompt. For
example, PROMPT $P$G shows the current path followed by '>'.
13. Which switch with the DIR command shows hidden and system files?
A. /H
B. /A
C. /S
D. /F
ANSWER : B
Explanation: /A (attributes) switch shows all files including hidden and system
files. /S searches subdirectories, /P pauses output, and /F is not a standard DIR
switch.
14. What does the DISKCOPY command do in DOS?
A. Copies selected files to another disk
B. Makes an exact duplicate of a floppy disk
C. Compresses disk contents
D. Formats and copies files simultaneously
ANSWER : B
Page 4 of 55