nerdexam
CompTIA

220-802 · Question #82

When running Windows XP, which of the following would give a list of switches for the CHKDSK command?

The correct answer is C. chkdsk /? In Windows command-line environments, the /? switch is the standard syntax for displaying help and available switches for any command, including CHKDSK.

Hardware and network troubleshooting

Question

When running Windows XP, which of the following would give a list of switches for the CHKDSK command?

Options

  • Achkdsk ~?
  • Bchkdsk :?
  • Cchkdsk /?
  • Dchkdsk ?

How the community answered

(24 responses)
  • B
    8% (2)
  • C
    88% (21)
  • D
    4% (1)

Why each option

In Windows command-line environments, the /? switch is the standard syntax for displaying help and available switches for any command, including CHKDSK.

Achkdsk ~?

The tilde (~) character is not a valid Windows command switch delimiter and produces an error.

Bchkdsk :?

The colon (:) is used to designate drive letters (e.g., C:) in Windows commands, not to request help output.

Cchkdsk /?Correct

The forward-slash followed by a question mark (/?) is the universally recognized Windows command-line help switch. Running 'chkdsk /?' prints all available parameters and their descriptions to the console. This syntax applies to virtually every built-in Windows command.

Dchkdsk \?

The backslash (\) is a path separator in Windows and is not a valid switch prefix for command-line utilities.

Concept tested: Windows command-line help syntax

Source: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/chkdsk

Topics

#CHKDSK#command switches#Windows CLI#command syntax

Community Discussion

No community discussion yet for this question.

Full 220-802 Practice