0
0
PowerShellscripting~20 mins

Verb-Noun naming convention in PowerShell - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
PowerShell Verb-Noun Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
1: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?
AIt follows the convention because it uses a verb followed by a noun.
BIt does not follow because the verb should be at the end.
CIt does not follow because nouns should be plural.
DIt follows because the noun comes before the verb.
Attempts:
2 left
💡 Hint
Think about the order of words in the function name.
📝 Syntax
intermediate
1:30remaining
Which function name is correctly following the Verb-Noun convention?
Select the function name that correctly follows the PowerShell Verb-Noun naming convention.
AFilePermission-Set
BSet-FilePermission
CPermissionSetFile
DGetFilePermission
Attempts:
2 left
💡 Hint
Remember the verb should come first, separated by a dash from the noun.
🔧 Debug
advanced
2: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?
AGet-Process
BStart-Service
CItem-Remove
DRemove-Item
Attempts:
2 left
💡 Hint
Check the order of verb and noun in the function name.
🚀 Application
advanced
2: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?
AGet-RunningServices
BServices-GetRunning
CListServicesRunning
DRunningServicesGet
Attempts:
2 left
💡 Hint
The verb should be a standard PowerShell verb and come first.
🧠 Conceptual
expert
2: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?
ABecause any verb can be used as long as it is followed by a noun.
BBecause approved verbs make the function names shorter.
CBecause verbs are optional in function names if nouns are descriptive enough.
DBecause approved verbs ensure consistency and make scripts easier to understand and maintain.
Attempts:
2 left
💡 Hint
Think about readability and standardization in scripting.