SK0-005 · Question #402
Which of the following symbols is used to write a text description per line within a PowerShell script?
The correct answer is D. #. The # symbol is used to write a text description per line within a PowerShell script. A text description is also known as a comment, which is a line of code that is ignored by the PowerShell interpreter and serves as documentation or explanation for human readers. The # symbol…
Question
Which of the following symbols is used to write a text description per line within a PowerShell script?
Options
- A%
- B@
- C&
- D
How the community answered
(68 responses)- A6% (4)
- B1% (1)
- C3% (2)
- D90% (61)
Explanation
The # symbol is used to write a text description per line within a PowerShell script. A text description is also known as a comment, which is a line of code that is ignored by the PowerShell interpreter and serves as documentation or explanation for human readers. The # symbol indicates that everything following it on the same line is a comment and not part of the script commands or expressions.
Topics
Community Discussion
No community discussion yet for this question.