Challenge - 5 Problems
PowerShell Verb-Noun Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate1:30remaining
What is the output of this PowerShell function name check?
Given the function name
Get-UserData, what does it follow according to the Verb-Noun naming convention in PowerShell?Attempts:
2 left
💡 Hint
Think about the order of words in the function name.
✗ Incorrect
PowerShell functions should be named with a verb first, then a noun. 'Get-UserData' correctly uses 'Get' as the verb and 'UserData' as the noun.
📝 Syntax
intermediate1:30remaining
Which function name is correctly following the Verb-Noun convention?
Select the function name that correctly follows the PowerShell Verb-Noun naming convention.
Attempts:
2 left
💡 Hint
Remember the verb should come first, separated by a dash from the noun.
✗ Incorrect
'Set-FilePermission' correctly uses a verb 'Set' followed by a noun 'FilePermission' separated by a dash, following the convention.
🔧 Debug
advanced2:00remaining
Identify the error in this function name violating Verb-Noun convention
Which option shows a function name that violates the Verb-Noun naming convention in PowerShell?
Attempts:
2 left
💡 Hint
Check the order of verb and noun in the function name.
✗ Incorrect
'Item-Remove' is incorrect because the noun comes before the verb, violating the Verb-Noun convention.
🚀 Application
advanced2:00remaining
Choose the best function name for a script that lists all running services
You want to write a PowerShell function that lists all running services. Which function name best follows the Verb-Noun naming convention?
Attempts:
2 left
💡 Hint
The verb should be a standard PowerShell verb and come first.
✗ Incorrect
'Get-RunningServices' uses the standard verb 'Get' followed by the noun 'RunningServices', correctly following the convention.
🧠 Conceptual
expert2:30remaining
Why is using approved verbs important in Verb-Noun naming convention?
Why should PowerShell function names use approved verbs in the Verb-Noun naming convention?
Attempts:
2 left
💡 Hint
Think about readability and standardization in scripting.
✗ Incorrect
Using approved verbs helps keep function names consistent, making scripts easier to read, understand, and maintain across different users and teams.