11.2.10 Practice Questions

¡Supera tus tareas y exámenes ahora con Quizwiz!

Which of the following extensions identifies a program packaged for use by Windows Installer? .msi .dll .bat .exe .pkg

.msi EXPLANATION The .msi extension identifies installation packages formatted for use by the Windows Installer. The .exe extension indicates a program file. The .bat extension indicates a batch file. The .dll extension indicates a dynamic link library system file.

Which option, used with the copy command, makes sure that all copied files are written correctly after they have been copied? /y /a /v /n

/v EXPLANATION The copy /v command verifies files after they are copied. The 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.

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? /o /v /y /a

/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.

You have a file which you would like other users to see, but not modify. Which file attribute should you use? A S R H

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 whether 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.

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? attrib add r remove h attrib /add r /remove /h attrib +r -h attrib +ro -h

attrib +r -h EXPLANATION Use attrib +r -h to add the Read-only attribute and remove the Hidden attribute.

Which command would you use to change the current directory to the immediate parent directory? cd cd .. dir pdir

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.

Which Windows command displays a list of files and subdirectories in a directory? list cd md attrib ls dir

dir EXPLANATION Use the dir command to display a list of files and subdirectories in a directory on a Windows system. Use the cd command to work with the current directory. Use the md (and mkdir) command to create a directory. Use the attrib command to change or view the attributes of one or more files. The ls command is used on Linux systems. List is not a command line command.

While troubleshooting a Windows computer, you open a command prompt to explore the folders (directories) on the hard drive. You notice that one of the folders required for your project is missing. Which of the following Microsoft command line tools would allow you to QUICKLY create the missing folder? del sfc cd rd md

md EXPLANATION The md command (Make Directory) creates a directory/folder or subdirectory/subfolder. The rd command removes a directory. The cd command changes which directory you are working in. The del command (delete) deletes files and directories. The sfc command scans the integrity of all protected system files and replaces incorrect versions with correct Microsoft versions.

Which commands can you use to create a new directory? (Select TWO). cd mkdir newdir md rd

mkdir md EXPLANATION Use md or mkdir to create a directory. Use cd to show the current directory. Use rd to delete a directory.

Which command lets you delete subdirectories in addition to files in the current directory? rd /a rd /f rd /q rd /s

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.

Which of the following file extension types can be run from the command prompt? (Select THREE). .dll .bat .sys .exe .com

.bat .exe .com EXPLANATION .exe, .bat, and .com files can all run stand-alone from the command prompt, while .dll and .sys files work in conjunction with other programs.

Which of the following file extensions indicates a Windows system file? (Select TWO). .com .msi .dll .vxd .rtf

.dll .vxd EXPLANATION Windows system file 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). Windows installer files use the .msi extension.

Which file attribute identifies the file as having been modified since the last backup? Hidden Archive Encrypted Read-only

Archive EXPLANATION The Archive (A) attribute identifies whether 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 (R) 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.

Which command is used to copy entire folder structures between volumes or across a network while maintaining all NTFS file permissions and attributes? xcopy copy copy /robust robocopy

robocopy EXPLANATION The robocopy command (short for Robust File Copy) is used to copy entire folder structures between volumes or across a network. The benefit of using robocopy is that all NTFS file permissions and attributes are maintained and interrupted transfers can be resumed. The copy command copies files from one location to another. The xcopy command copies files and directory trees, but does not maintain all NTFS file permissions and attributes.

Which command would you use to copy all files and subdirectories in a directory, including empty subdirectories? copy /v xcopy /s copy /n xcopy /e

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.


Conjuntos de estudio relacionados

Health and Life Insurance: Chapter 2

View Set

Health Assessment: Assessing Skin, Hair, and Nails Chapter 13

View Set

MGMT 346 Chapter 14 Lean Supply Chains

View Set

MKT 3295: Quiz 5 The Stage-Gate Idea-to-Launch System

View Set

Vocab: A Very Old Man with Enormous Wings

View Set

Econ 2000--Exam 3 Practice Questions (Final)

View Set

175Qw/exp (most part) CC Midterm- CONTAINS HEMODYN&RESPventilation

View Set

Topic 1 (Commercial Banking Chapter 1, 3 & 14)

View Set

Chapter 13: Psychological Disorders

View Set