TestOut Flashcards - 11.2 File Attributes

24 July 2022
4.7 (114 reviews)
20 test answers

Unlock all answers in this set

Unlock answers (16)
question
Which of the following extensions identifies a program packaged for use by Windows Installer? A. .pkg B. .msi C. .exe C. .bat
answer
B. .msi Explanation: The .msi extension identities installation packages formatted for use by the Windows Installer. The .exe extension indicates a program file. The extension .bat indicates a batch file. The extension .dll indicates a dynamic link library system file.
question
Which of the following file extensions indicates a Windows system file? (Select two.) A. .rtf B. .vxd C. .dll D. .com
answer
B. .vxd & C. .dll Explanation: Windows system tile extensions include .dll (dynamic link library), .drv (device driver), and .vxd (virtual device driver). Program file extensions include .exe and .com. Document file extensions include .rtf (rich text).
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
D. rd /s Explanation Use rd /s to remove subdirectories in addition to files in the current directory. Use rd /q to remove directories without prompting.
question
Which option used with the copy command makes sure that all copied files are written correctly after they have been copied? A. /v B. /n C. /a D. /y
answer
A. /v Explanation: The copy command verifies files after they are copied. copy /a specifies that the file is an ASCII text file. The copy /n command copies files using short filenames. The copy /y command will not prompt you before each overwrite operation.
question
Which commands can you use to create a new directory? (Select two.) A. md B. newdir C. rd D. mkdir E. cd
answer
A. md & D. mkdir Explanation: Use md or mkdir to create a directory. Use cd to show the current directory. Use rd to delete a directory.
question
How can you see a list of valid switches for the cd command? A. Type cd list B. Type cd /? C. Type cd | more D. Type cd help
answer
B. Type cd /? Explanation: To see detailed information about a specific command, type the command followed by a /?. Sometimes you can also use help followed by the command to get information about the command. The | more command is used to see command output one page at a time.
question
How do you set file attributes? (Select two.) A. Use the assign command. B. Use the attrib command. C. Right-click the file, then select Properties. D. Use the set command. E. Right-click the file, then select Attributes.
answer
B. Use the attrib command. & C. Right-click the file, then select Properties. Explanation: To set file attributes, edit the file properties, or use the attrib command from the command prompt.
question
What does the following command do? attrib +s +r -a myfile.dll A. Adds the System file attribute, removes the Read-only attribute, and removes the Archive attribute to the file myfile.dll. B. Adds the System file attribute, adds the Write-only attribute, and removes the Archive attribute to the file myfile.dll. C. Removes the System file attribute, removes the Read-only attribute, and adds the Archive attribute to the file myfile.dll. D. Adds the System file attribute, adds the Read-only attribute, and removes the Archive attribute to the file myfile.dll.
answer
D. Adds the System file attribute, adds the Read-only attribute, and removes the Archive attribute to the file myfile.dll. Explanation: The attrib +s +r -a mytile.dll command adds the System tile attribute, adds the Read-only attribute, and removes the Archive attribute to the file myfile.dll.
question
You want to set the encryption attribute far 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: attrib +e c:payroll.xls C. At a command prompt, type: encrypt c:xpayroll.xls D. Edit the properties of the file in Windows Explorer.
answer
D. Edit the properties of the file in Windows Explorer. Explanation: Encryption is assigned to a tile by editing the properties of the file in Windows Explorer. You can encrypt a file using the cipher command: but not the attrib command.
question
What does the /q switch with the rd command do? A. Reverses a drive deletion. B. Runs a query. C. Will not prompt you to confirm deletions. D. Removes subdirectories in addition to files in the current directory.
answer
C. Will not prompt you to confirm deletions. Explanation: The /q switch with the rd command will not prompt you before deletions. The switch removes subdirectories in addition to files in the current directory.
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. copy /n C. xcopy /s D. xcopy /e
answer
D. xcopy /e Explanation: Use xcopy /e to copy directories and subdirectories, including empty ones. xcopy /s copies directories and subdirectories, but not empty ones. Use copy /n to copy a single directory with the short filenames. Use copy /v to verify the files after the copy.
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. /o C. /y D. /v
answer
C. /y Explanation: The copy /y command will not prompt you before each overwrite operation. The copy /v command verifies files after they are copied. The copy /a command specifies that the file is an ASCII text file.
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 /add r /remove / h B. attrib + r -h C. attrib + ro -h D. attrib add r remove h
answer
B. attrib + r -h Explanation: Use attrib +r -h to add the Read-only attribute and remove the Hidden attribute.
question
Which command would you use to change the Current directory to the immediate parent directory? A. dir B. pdir C. cd .. D. cd
answer
C. cd .. Explanation: Use cd.. to change the current directory to the immediate parent directory. The cd command by itself shows the current directory. Use dir to display a list of files and subdirectories in a directory.
question
What does the /a switch used with the copy command indicate? A. That symbolic links should be copied along with the file B. That the file is a binary file C. That the file can be decrypted before copying D. That the file is an ASCII text file
answer
D. That the file is an ASCII text file Explanation: The copy /a command specifies that the file is an ASCII text tile. The copy /b command specifies that the file is a binary file. The copy /l command copies symbolic links with the file. The copy /d command allows the file to be decrypted.
question
Which file attribute identifies the file as having been modified since the last backup? A. Read only B. Archive C. Hidden D. Encrypted
answer
B. Archive Explanation: The Archive (A) attribute identifies it a file has been modified since the last backup. A file attribute is metadata that gives certain qualities to a file after the attribute has been assigned. The Read only (F) attribute marks a file as read-only meaning that the file cannot be altered by subsequent users The encrypted attribute encrypts a file. The Hidden (H) attribute hides a file within the file system so it cannot be viewed or accessed by users that do not have access to its specific filename.
question
Which of the following file extensions indicate a program file type? (Select two.) A. .jpg B. .vxd C. .mp3 D. .com E. .exe
answer
D. .com & E. .exe Explanation: Program file extensions include .exe and .com. Windows system file extensions include .dll (dynamic link library), .drv (device driver), and .vxd (virtual device driver). Document file extensions include .rtf (rich text). Graphic file extensions include . jpg (compressed graphic). Audio file extensions include .mp3 (mpeg audio).
question
You have a file which you would like Other users to see, but not modify. Which file attribute should you use? A. S B. R C. H D. A
answer
B. R Explanation: The Read only (R) attribute marks a file as read-only meaning that the file cannot be altered by subsequent users. A file attribute is metadata that gives certain qualities to a file after the attribute has been assigned. The Archive (A) attribute identifies if a file has been modified since the last backup. The System (S) attribute identifies a file as a system file that cannot be deleted. The Hidden (H) attribute hides a file within the file system so it cannot be viewed or accessed by users that do not have access to its specific filename.
question
A user needs to copy a file from an NTFS partition to a FAT32 partition. The file has NTFS permissions and the following attributes: Read only (R) and Encryption. When the folder is copied, which of the following is true? A. None of the NTFS permissions or attributes are retained on the file. B. The R and encryption attribute are retained on the file. C. Only the NTFS permissions are retained an the file. D. The attributes and NTFS permissions are retained on the file. E. The R attribute is retained on the file.
answer
E. The R attribute is retained on the file. Explanation: Only the Read only (R) attribute is retained, and not the encryption attribute, nor the NTFS permissions. The FAT32 file system only supports the following attributes: R, H, S, and A. When you copy files from an NTFS partition to a FAT32 partition, attributes not available under FAT32 do not remain with the file. Moving NTFS files to a non-NTFS partition removes the permissions.
question
Which of the following file extension types can be run from the command prompt? (Select three.) A. .bat B. .com C. .exe D. .sys E. .dll
answer
A. .bat, B. .com, C. .exe Explanation: .Exe, .bat. and .com tiles can all be run from the command prompt. .dll and .sys files work in conjunction with other programs.