Name: 
 

cpt106DOSch07



Multiple Choice
Identify the letter of the choice that best completes the statement or answers the question.
 

1. 

A batch file is a(n) __________ file that contains one or more commands for performing an operation or a set of operations.
a.
binary
b.
ANSI
c.
ASCII
d.
Unicode
 

2. 

In order for Windows 2000 to recognize a batch program as a program file, you must add the __________ extension to the filename for the batch program when you create it.
a.
bat
b.
cmd
c.
exe
d.
Either A or B
 

3. 

Under Windows 98 and Windows 95, you must add the __________ extension to the filename for the batch program when you create it.
a.
bat
b.
cmd
c.
exe
d.
Either A or B
 

4. 

The __________ switch with the Directory parameter (/ad) lists all directories.
a.
All
b.
Attribute
c.
Full
d.
Index
 

5. 

__________ is a utility for creating batch programs that was first introduced in MS-DOS 5.0 and is available in subsequent versions of MS-DOS, as well as in Windows 95, Windows 98, and Windows 2000.
a.
Notepad
b.
MS-DOS Editor
c.
DOSKEY
d.
None of the above
 

6. 

If you want to create a directory for your batch programss, type __________, press the Spacebar, type the name you want to use for your batch program directory, and then press Enter.
a.
DIR
b.
CD
c.
RD
d.
MD
 

7. 

You use the __________ command to change directories.
a.
DIR
b.
MD
c.
RD
d.
CD
 

8. 

You can use the __________ key to access the MS-DOS Editor Help.
a.
Esc
b.
F1
c.
F5
d.
Ctrl
 

9. 

The __________ switch assigns a volume label or electronic label to a disk at the end of the formatting process.
a.
Volume
b.
Label
c.
Name
d.
ID
 

10. 

If you activate the menu bar in the MS-DOS Editor and then change your mind and want to return to the document window, press the __________ key.
a.
Ctrl
b.
Esc
c.
F1
d.
Alt
 

11. 

You can use the __________ command to remind you of the contents of a batch program file before you use it.
a.
DIR
b.
REM
c.
TYPE
d.
ECHO
 

12. 

Which of the following shows program file extensions in the correct search path order?
a.
com, exe, bat, cmd
b.
bat, cmd, com, exe
c.
bat, exe, cmd, com
d.
All of the above
 

13. 

The PATH environment variable in the Windows environment lists a sequence of directories, each of which is separated from the previous directory by a(n)
a.
semicolon.
b.
ampersand.
c.
colon.
d.
asterisk.
 

14. 

The command interpreter has the capacity to __________, or display, a command stored in the batch program next to the command prompt.
a.
recall
b.
echo
c.
channel
d.
repeat
 

15. 

You can press __________ to cancel a program.
a.
Ctrl+X
b.
Alt+X
c.
Ctrl+C
d.
Alt+C
 

16. 

It is a good idea to specify a(n) __________ path and include the drive name with each directory path so that Windows knows the exact location of each directory.
a.
absolute
b.
relative
c.
full
d.
referential
 

17. 

Windows 2000 stores the full path to your Windows 2000 directory in the __________ environment variable when your computer boots.
a.
Windows
b.
SystemRoot
c.
System32
d.
SystemDir
 

18. 

If you add __________ to the beginning of a batch program file, then the command interpreter does not display any commands that come after this command.
a.
REM
b.
ECHO ON
c.
ECHO OFF
d.
CLS
 

19. 

You can use the __________ command to display messages that remind you to perform certain operations during batch program execution.
a.
CLS
b.
REM
c.
ECHO
d.
SET
 

20. 

When used to display a message, the general syntax for the ECHO command is __________.
a.
ECHO OFF
b.
ECHO ON
c.
ECHO.
d.
ECHO [message]
 

21. 

If you type ECHO followed immediately by a(n) __________, the batch program produces a blank line on the monitor when it executes the ECHO command.
a.
ampersand
b.
period
c.
comma
d.
semicolon
 

22. 

You can use the __________ command to temporarily stop execution of a batch program.
a.
STOP
b.
HALT
c.
PAUSE
d.
EXIT
 

23. 

When a batch program executes, it ignores any lines that start with the __________ command and any text or comments that follow the command.
a.
COM
b.
REM
c.
DOC
d.
LINE
 

True/False
Indicate whether the sentence or statement is true or false.
 

24. 

Batch programs require that a user be a programmer in order to benefit from their use.
 

25. 

If you already have batch programs in your batch program directory, it is good practice to check the names of your existing batch files so you do not create a new batch program file with the name of an existing one, thereby accidentally overwriting it.
 



 
Check Your Work     Reset Help