Bird
0
0

Identify the error in this PowerShell function name that violates the Verb-Noun naming convention:

medium📝 Debug Q14 of 15
PowerShell - Cmdlets and Pipeline
Identify the error in this PowerShell function name that violates the Verb-Noun naming convention:
function Process-Data { Write-Output "Processing" }
AVerb should be a standard approved verb
BNoun should come before verb
CMissing dash between verb and noun
DVerb is not approved
Step-by-Step Solution
Solution:
  1. Step 1: Check the function name structure

    The name 'Process-Data' uses a dash and has verb-noun order, so structure is correct.
  2. Step 2: Verify the verb against approved verbs

    'Process' is not an approved PowerShell verb, so it violates the naming convention.
  3. Final Answer:

    Verb should be a standard approved verb -> Option A
  4. Quick Check:

    Approved verbs required = Verb should be a standard approved verb [OK]
Quick Trick: Use only approved verbs in function names [OK]
Common Mistakes:
  • Thinking noun comes before verb
  • Ignoring approved verb list
  • Assuming dash is missing

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes