Bird
0
0

Identify the error in this comment-based help block:

medium📝 Debug Q6 of 15
PowerShell - Functions
Identify the error in this comment-based help block:
<#
.SYNOPSIS
Shows system info
.PARAMETER
Specifies the info type
#>
ANo error, block is correct
BIncorrect .SYNOPSIS syntax
CComment block not closed properly
DMissing parameter name after .PARAMETER
Step-by-Step Solution
Solution:
  1. Step 1: Check .PARAMETER syntax

    .PARAMETER must be followed by the parameter name.
  2. Step 2: Identify missing parameter name

    Here, .PARAMETER is alone without a name, causing an error.
  3. Final Answer:

    Missing parameter name after .PARAMETER -> Option D
  4. Quick Check:

    .PARAMETER requires a name [OK]
Quick Trick: .PARAMETER must always have a parameter name after it [OK]
Common Mistakes:
  • Leaving out parameter name
  • Assuming .PARAMETER alone is valid
  • Ignoring syntax rules for help sections

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes