nerdexam
CompTIA

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)…

Server administration

Question

Which of the following script types uses commands that start with Set-?

Options

  • ABatch
  • BBash
  • CPowerShell
  • DJavaScript

How the community answered

(35 responses)
  • B
    6% (2)
  • C
    91% (32)
  • D
    3% (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

#PowerShell#Scripting#Command syntax#Cmdlets

Community Discussion

No community discussion yet for this question.

Full SK0-005 Practice