CompTIA A+ Core 2 (220-1002) — Question 60
Which of the following file types should be opened when executing a PowerShell script?
Answer options
- A. .bat
- B. .vbs
- C. .sh
- D. .ps1
- E. .psd
Correct answer: D
Explanation
The correct answer is D, .ps1, which is the file extension specifically used for PowerShell scripts. The other options, .bat, .vbs, .sh, and .psd, correspond to batch files, Visual Basic scripts, shell scripts, and Photoshop documents respectively, and are not used to execute PowerShell scripts.