CompTIA 220-1202 (CompTIA A+ Certification Exam: Core 2) Practice Test 8

Question 70

A secondary non-system disk must be prepared with a new filesystem after its data has been copied elsewhere. Which command explicitly creates the filesystem?

  1. format
  2. md
  3. chkdsk
  4. sfc /scannow

Explanation

Correct Answer

A:

Format initializes a filesystem on a selected volume and can destroy access to previous data. Verify the exact target before execution.

Incorrect Answers

B:

Md creates the specified directory path in the Windows shell; using this would prioritize creating a destination directory instead of creating a filesystem on the approved secondary volume.

C:

Chkdsk inspects filesystem metadata and can fix supported errors with the appropriate switches; the evidence favors format for creating a filesystem on the approved secondary volume, rather than applying chkdsk to check and repair logical filesystem errors.

D:

System File Checker checks protected Windows files and repairs applicable corruption using system sources; using this would prioritize verifying and repair protected Windows system files instead of creating a filesystem on the approved secondary volume.

Question 71

A technician must script creating and selecting partitions on a newly installed data disk. Which Windows command-line tool provides disk object management?

  1. gpupdate /force
  2. format
  3. diskpart
  4. cd

Explanation

Correct Answer

C:

Diskpart manages disks, volumes, and partitions through commands. Selecting the wrong disk can cause destructive changes, so identify it carefully.

Incorrect Answers

A:

Gpupdate refreshes applicable Group Policy settings, with some changes requiring logoff or restart; the requirement is to manage disk partitions from a command shell; this alternative is primarily used to refresh applied Group Policy on a Windows client.

B:

Format initializes a filesystem on a selected volume and can destroy access to previous data; that is useful for creating a filesystem on the approved secondary volume; the reported task instead calls for managing disk partitions from a command shell.

D:

The cd command changes the current working directory in the command shell; this technique can help to change the shell's current folder, but it does not directly manage disk partitions from a command shell.

Question 72

A script needs to create a nested project folder before copying output into it. Which command makes a directory?

  1. cd
  2. md
  3. format
  4. dir

Explanation

Correct Answer

B:

Md creates the specified directory path in the Windows shell. It is not a file copy or folder enumeration operation.

Incorrect Answers

A:

The cd command changes the current working directory in the command shell; to create a destination directory, the relevant control is md; this option addresses changing the shell's current folder.

C:

Format initializes a filesystem on a selected volume and can destroy access to previous data; this technique can help to create a filesystem on the approved secondary volume, but it does not directly create a destination directory.

D:

The dir command enumerates directory contents and can show file sizes and timestamps; that could address listing the contents of a Windows directory, but it would leave the need to create a destination directory unresolved.

Question 73

An empty temporary folder should be removed from the command prompt after an installation. Which command does this?

  1. rmdir
  2. cd
  3. md
  4. pathping

Explanation

Correct Answer

A:

Rmdir removes directories, with flags required for recursively deleting nonempty trees. Its destructive options need care.

Incorrect Answers

B:

The cd command changes the current working directory in the command shell; that could address changing the shell's current folder, but it would leave the need to remove a no-longer-needed directory unresolved.

C:

Md creates the specified directory path in the Windows shell; using this would prioritize creating a destination directory instead of removing a no-longer-needed directory.

D:

Pathping combines path discovery with packet-loss measurements for responding hops; these are separate tasks: estimating packet loss along a network route is not the same as removing a no-longer-needed directory.

Question 74

A technician must copy a large folder tree with restartable transfer behavior and preserve selected metadata. Which utility suits the job?

  1. md
  2. cd
  3. robocopy
  4. rmdir

Explanation

Correct Answer

C:

Robocopy is built for robust directory copying and mirroring, with restart and metadata options. Mirroring can delete destination-only files, so switches must be reviewed.

Incorrect Answers

A:

Md creates the specified directory path in the Windows shell; these are separate tasks: creating a destination directory is not the same as copying a large directory tree with controllable retry behavior.

B:

The cd command changes the current working directory in the command shell; for copying a large directory tree with controllable retry behavior, robocopy addresses the stated need; cd instead targets changing the shell's current folder.

D:

Rmdir removes directories, with flags required for recursively deleting nonempty trees; that could address removing a no-longer-needed directory, but it would leave the need to copy a large directory tree with controllable retry behavior unresolved.

Question 75

An administrator wants to display the currently signed-in Windows account and its domain context from a terminal. Which command is most direct?

  1. cd
  2. netstat -ano
  3. gpupdate /force
  4. whoami

Explanation

Correct Answer

D:

Whoami identifies the current security principal and can show associated groups or privileges. It does not enumerate every user in the directory.

Incorrect Answers

A:

The cd command changes the current working directory in the command shell; this option serves changing the shell's current folder rather than identifying the security context of a command session.

B:

Netstat can list active connections and listening ports, including numeric addresses and process IDs; this technique can help to identify listening ports and associated process IDs, but it does not directly identify the security context of a command session.

C:

Gpupdate refreshes applicable Group Policy settings, with some changes requiring logoff or restart; that is useful for refreshing applied Group Policy on a Windows client; the reported task instead calls for identifying the security context of a command session.

Question 76

Policy settings should be refreshed on a domain-joined PC after an administrator changes a Group Policy Object. Which command requests a refresh?

  1. gpupdate /force
  2. diskpart
  3. cd
  4. netstat -ano

Explanation

Correct Answer

A:

Gpupdate refreshes applicable Group Policy settings, with some changes requiring logoff or restart. It does not modify the central GPO itself.

Incorrect Answers

B:

Diskpart manages disks, volumes, and partitions through commands; using this would prioritize managing disk partitions from a command shell instead of refreshing applied Group Policy on a Windows client.

C:

The cd command changes the current working directory in the command shell; that could address changing the shell's current folder, but it would leave the need to refresh applied Group Policy on a Windows client unresolved.

D:

Netstat can list active connections and listening ports, including numeric addresses and process IDs; netstat -ano is used to identify listening ports and associated process IDs, whereas the case calls for refreshing applied Group Policy on a Windows client.

Question 77

Windows reports altered protected system files, and the technician wants a built-in integrity scan. Which command is suitable?

  1. pathping
  2. whoami
  3. chkdsk
  4. sfc /scannow

Explanation

Correct Answer

D:

System File Checker checks protected Windows files and repairs applicable corruption using system sources. It is distinct from disk partitioning or network diagnostics.

Incorrect Answers

A:

Pathping combines path discovery with packet-loss measurements for responding hops; for verifying and repair protected Windows system files, sfc /scannow addresses the stated need; pathping instead targets estimating packet loss along a network route.

B:

Whoami identifies the current security principal and can show associated groups or privileges; that could address identifying the security context of a command session, but it would leave the need to verify and repair protected Windows system files unresolved.

C:

Chkdsk inspects filesystem metadata and can fix supported errors with the appropriate switches; using this would prioritize checking and repair logical filesystem errors instead of verifying and repair protected Windows system files.

Question 78

A Windows laptop is moved between office subnets but still has the previous DHCP lease. Support wants to discard the old leased IPv4 settings and request a fresh lease from the new network. Which TWO commands perform those steps in order? Choose TWO.

  1. ipconfig /release
  2. netstat -ano
  3. ipconfig /renew
  4. nslookup
  5. tracert

Explanation

Correct Answers

A:

ipconfig /release releases the current IPv4 DHCP lease and discards those leased addressing settings on the selected adapter. It is the first step before requesting a new DHCP configuration.

C:

ipconfig /renew instructs the DHCP client to request or renew IPv4 addressing information from a reachable DHCP service. Run it after releasing the stale lease and verify the newly assigned settings.

Incorrect Answers

B:

netstat -ano displays active connections, listening endpoints and associated process identifiers. It cannot relinquish or obtain a DHCP lease, so it does not perform either requested action.

D:

nslookup queries DNS servers to resolve hostnames or inspect records. DNS diagnostics do not release an old DHCP address or request a new IPv4 lease.

E:

tracert shows intermediate network hops toward a destination. It can help identify a routing problem after connectivity is established but cannot control DHCP lease negotiation.

Question 79

A laptop should prioritize maximum battery endurance rather than peak performance while traveling. Which Windows control is relevant?

  1. Show hidden items
  2. Power plan settings
  3. Display scale settings
  4. Lid-close power action

Explanation

Correct Answer

B:

Windows power plans coordinate settings that influence energy use and performance. The appropriate plan can improve runtime without changing user accounts.

Incorrect Answers

A:

File Explorer can display hidden files and folders when the relevant view option is enabled; to adjust performance and battery-life tradeoffs, the relevant control is Power plan settings; this option addresses displaying hidden profile files in Explorer.

C:

Display configuration adjusts scaling and resolution for connected screens; the case demands adjusting performance and battery-life tradeoffs, not enlarging user interface elements for readability.

D:

Power Options determines what happens when the lid closes for supported power states; the requirement is to adjust performance and battery-life tradeoffs; this alternative is primarily used to keep the laptop active when its lid closes.

Question 80

An employee closes a laptop lid and wants it to remain running while connected to a desk monitor. Which setting controls the behavior?

  1. Lid-close power action
  2. Hibernate
  3. Show hidden items
  4. Windows Update settings

Explanation

Correct Answer

A:

Power Options determines what happens when the lid closes for supported power states. It must be configured deliberately to avoid unwanted sleep.

Incorrect Answers

B:

Hibernation saves the session to disk and powers down, unlike sleep which retains volatile state; this technique can help to save the session across a full power-off, but it does not directly keep the laptop active when its lid closes.

C:

File Explorer can display hidden files and folders when the relevant view option is enabled; using this would prioritize displaying hidden profile files in Explorer instead of keeping the laptop active when its lid closes.

D:

Windows Update manages available system patches and update policies within the edition's capabilities; these are separate tasks: applying supported OS security patches is not the same as keeping the laptop active when its lid closes.

CompTIA A+ Certification Exam: Core 2 (220-1202) Practice Tests