CompTIA Server+ (SK0-005) — Question 214
Which of the following symbols is used to write a text description per line within a PowerShell script?
Answer options
- A. %
- B. @
- C. &
- D. #
Correct answer: D
Explanation
The correct answer is D, as the '#' symbol is specifically used to denote comments in PowerShell scripts. Options A, B, and C do not serve this purpose; '%' is used for formatting, '@' is for array creation, and '&' is for executing commands.