220-1102 exam dumps

220-1102 practice question 101 of 828

A+ Core 2. Associate level, CompTIA. Free question with the correct answer and a full explanation.

220-1102 Question 101

Single answercd

A technician is connected to a Windows 10 PC through Command Prompt to troubleshoot a script stored in C:\Support\Scripts. The technician runs the command prompt and sees the current location is C:\Users\Tech. Which command should the technician use to switch directly to the Scripts folder on the C: drive before running the script?

  1. A

    cd C:\Support\Scripts

  2. B

    cd /d C:\Support\Scripts

  3. C

    chdir /s C:\Support\Scripts

  4. D

    cd.. C:\Support\Scripts

Show answer and explanation

Correct answer: B

Explanation

The Windows Command Prompt command cd, also available as chdir, is used to change the current working directory. In practical support scenarios, technicians often need to move directly to a known path before launching tools or scripts. The /d switch is important because it changes both the drive and directory at the same time, making the command more reliable than plain cd when working across locations. Microsoft command documentation for cd/chdir notes that the /d parameter changes the current drive in addition to the current directory. Using cd /d C:\Support\Scripts is therefore the best answer for a real-world troubleshooting workflow.

  • A. Incorrect.

    This is a common mistake. In Windows Command Prompt, using cd with a full path changes directories only within the current drive context. If the technician is already on C:, this command would work, but the scenario asks for the command that switches directly to the target folder before running the script. The more correct and reliable command for changing both drive and directory is cd /d C:\Support\Scripts.

  • B. Correct.

    Correct. In Windows Command Prompt, cd /d changes both the current drive and the current directory in one command. This is the best choice when a technician needs to move directly to a folder and ensure the prompt is in the correct location, even if the target path could be on a different drive. It is valid for C: as well and reflects best practice for scripts and remote support work.

  • C. Incorrect.

    This is incorrect. chdir is an alias for cd in Command Prompt, but /s is not a valid switch for changing directories. A technician unfamiliar with the proper syntax might guess this option because some commands use switches for recursive or system operations, but cd/chdir does not use /s for this purpose.

  • D. Incorrect.

    This is incorrect. cd.. moves up one directory level from the current folder and does not accept a destination path in this format. Someone might choose this option if they confuse moving to a parent directory with navigating to a specific absolute path.

Timed practice exam

Take a 220-1102 practice test under exam conditions

90 questions in 90 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam