CompTIA A+ Core 2 (220-1102) — Question 371
Which of the following file extensions should a technician use for a PowerShell script?
Answer options
- A. .ps1
- B. .py
- C. .sh
- D. .bat
- E. .cmd
Correct answer: A
Explanation
.ps1 is the designated file extension for PowerShell scripts, making it the correct choice. The other options (.py, .sh, .bat, .cmd) are used for different scripting languages or batch files, and therefore do not apply to PowerShell.