Which of the following symbols is used to write a text description per line within a PowerShell script?
Correct Answer: 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 indicates that everything following it on the same line is a comment and not part of the script commands or expressions. For example:
This is a comment in PowerShell
Write-Host "Hello World" # This command prints Hello World to the console References: CompTIA Server+ Certification Exam Objectives, Domain 6.0: Troubleshooting, Objective 6.3:
Given a scenario, troubleshoot scripting errors using PowerShell commands.