Section 11.2 Managing Files

25 July 2022
4.7 (114 reviews)
20 test answers

Unlock all answers in this set

Unlock answers (16)
question
Which commands can you use to create a new directory? a. md b. newdir c. cd d. rd e. mkdir
answer
md mkdir
question
You are working at the command line and want to add the read-only attribute to a file and remove the hidden attribute. which command would you use? a. attrib +ro -h b. attrib add r remove h c. attrib +r -h d. attrib /add r /remove /h
answer
attrib +r -h
question
What does attrib +s +r -a myfile.dll do? a. Adds the system file attribute, adds the write-only attribute, and removes the archive attribute to the file b. Removes the System file attribute, removes the read-only attribute, and adds the archive attribute to the file c. Adds the system file attribute, removes the read-only attribute, and removes the archive attribute to the file d. Adds the system file attribute, adds the read-only attribute, and removes the archive attribute to the file
answer
Adds the system file attribute, adds the read-only attribute, and removes the archive attribute to the file
question
What file attribute identifies the file as having been modified since the last backup? a. Encrypted b. Read only c. Hidden d. Archive
answer
Archive
question
Which option used with the copy command makes sure that all copied files are written correctly after thy have been copied? a. /y b. /a c. /n d. /v
answer
/v
question
What does the /a switch used the copy command indicate? a. That the file can be decrypted before copying b. That symbolic links should be copied along with the file c. That the file is an ASCII text file d. That the file is a binary file
answer
That the file is an ASCII text file
question
How can you see a list of valid switched for the cd command? a. Type cd | more b. Type cd help c. Type cd /? d. Type cd list
answer
Type cd /?
question
You have a file which you would like others users to see, but not modify. which file attribute should you use? a. R b. A c. H d. S
answer
R
question
You want to set the encryption attribute for the C:payroll.xls file. What should you do? a. At a command prompt, type: attrib c:payroll.xls +e b. At a command prompt, type: encrypt c:payroll.xls c. Edit the properties of the file in Windows Explorer d. At a command prompt, type: attrib +e c:payroll.xls
answer
Edit the properties of the file in Windows Explorer
question
You need to copy several hundred files from one directory to another. Most of the files exist in the target directory, but you want to overwrite the existing files with the ones you will copy. You want the file copy to proceed automatically without prompting you to overwrite existing files. Which copy command switch should you use? a. /a b. /v c. /o d. /y
answer
/y
question
A user needs to copy a file from an NTFS partition o a FAT32 partition. The file has NTFS permissions and the following attributes: Read only (R) and encryption. When the folder is copied, is true? a. The R attribute is retained on the file. b. Only the NTFS permissions are retained on the file. c. The R and encryption attribute are retained on the file. d. None of the NTFS permissions or attributes are retained on the file. e. The attributes and NTFS permissions are retained on the file.
answer
The R attribute is retained on the file.
question
Which command lets you delete subdirectories in addition to files in the current directory? a. rd /q b. rd /f c. rd /a d. rd /s
answer
rd /s
question
Which of the following extensions identifies a program packaged for use by Windows Installer? a. .bat b. .msi c. .exe d. .dll e. .pkg
answer
.msi
question
How do you set file attributes? (Select Two) a. Use the attrib command. b. Use the set command. c. Right-click the file, then select Attributes. d. Right-click the file, then select properties. e. Use the assign command.
answer
Use the attrib command. Right-click the file, then select properties.
question
Which command would you use to change the current directory to the immediate parent directory? a. cd b. dir c. pdir d. cd ..
answer
cd ..
question
Which command would you use to copy all files in a directory, including all subdirectories (as well as empty ones)? a. copy /v b. xcopy /e c. copy /n d. xcopy /s
answer
xcopy /e
question
What does the /q switch the rd command do? a. Runs a query. b. Will not prompt you to confirm deletions. c. Reverses a drive deletion d. Removes sub directories in addition to files in the current directory.
answer
Will not prompt you to confirm deletions.
question
Which file extensions indicate a program file type? (2) a. .jpg b. .mp3 c. .vxd d. .com e. .exe
answer
.com .exe
question
Which file extensions indicates a Windows system file? (2) a. .vxd b. .dll c. .rtf d. .com
answer
.vxd .dll
question
Which extension types can be run from the command prompt? (3) a. .com b. .exe c. .sys d. .dll e. .bat
answer
.com .exe .bat