SK0-005 · Question #311
Which of the following script types uses commands that start with Set-?
The correct answer is C. PowerShell. PowerShell uses a Verb-Noun cmdlet naming convention, where common verbs include Get-, Set-, New-, Remove-, Start-, and Stop-. The 'Set-' prefix is a standard PowerShell verb used to modify or configure resources (e.g., Set-Item, Set-Content, Set-Service, Set-ExecutionPolicy)…
Question
Which of the following script types uses commands that start with Set-?
Options
- ABatch
- BBash
- CPowerShell
- DJavaScript
How the community answered
(35 responses)- B6% (2)
- C91% (32)
- D3% (1)
Explanation
PowerShell uses a Verb-Noun cmdlet naming convention, where common verbs include Get-, Set-, New-, Remove-, Start-, and Stop-. The 'Set-' prefix is a standard PowerShell verb used to modify or configure resources (e.g., Set-Item, Set-Content, Set-Service, Set-ExecutionPolicy). Batch scripts (A) use commands like ECHO, SET (without a hyphen), and CALL. Bash scripts (B) use Unix commands like echo, export, and chmod. JavaScript (D) uses function calls and methods without a Verb-Noun command structure. The hyphenated Verb-Noun format is unique to PowerShell.
Topics
Community Discussion
No community discussion yet for this question.