Recall & Review
beginner
What is the Verb-Noun naming convention in PowerShell?
It is a way to name commands where the name starts with a verb followed by a noun, like
Get-Process. This makes commands easy to understand and consistent.Click to reveal answer
beginner
Why use the Verb-Noun naming convention in PowerShell scripts?
It helps keep scripts clear and predictable. When you see a command like
Set-Item, you know it changes something. This makes scripts easier to read and maintain.Click to reveal answer
beginner
Give an example of a correct Verb-Noun command name in PowerShell.
An example is
Remove-User. Remove is the action (verb), and User is the object (noun).Click to reveal answer
intermediate
What is a common mistake when naming PowerShell commands?
Using names without a clear verb or noun, like
ProcessData or just Data. This makes it hard to know what the command does.Click to reveal answer
beginner
Name three approved verbs commonly used in PowerShell command names.
Common approved verbs include
Get, Set, and Remove. These verbs clearly describe actions.Click to reveal answer
Which of these is a correct Verb-Noun PowerShell command name?
✗ Incorrect
PowerShell commands use a verb followed by a noun, like
Start-Service. The others do not follow this pattern.What does the verb in a Verb-Noun command name represent?
✗ Incorrect
The verb shows the action the command will perform, like
Get or Set.Why is it important to use approved verbs in PowerShell command names?
✗ Incorrect
Approved verbs keep command names consistent and easy to understand.
Which of these is NOT an approved verb in PowerShell naming?
✗ Incorrect
Fetch is not an approved verb; Get should be used instead.What is the noun part in the command
New-Item?✗ Incorrect
The noun is the object the command works on, here it is
Item.Explain the Verb-Noun naming convention and why it is useful in PowerShell scripting.
Think about how commands like Get-Process or Set-Item are named.
You got /5 concepts.
List three approved verbs you can use in PowerShell command names and give an example command for each.
Approved verbs describe common actions in PowerShell.
You got /4 concepts.