An IT technician is preparing maintenance scripts for various operating system environments across an enterprise network. Which of the following statements correctly match a scripting language file extension with its native environment or execution engine? (Select TWO.)
- `.sh` scripts utilize shell commands and are natively executed within Linux and Unix terminal environments.Answer
- `.vbs` scripts use VBScript syntax and are processed natively by the Windows Script Host engine.Answer
- C`.bat` scripts rely on PowerShell cmdlets and require the .NET Framework runtime to execute.
- D`.ps1` scripts are Unix shell scripts that use `%VARIABLE%` syntax to reference environment variables.
Answer
The correct statements are that `.sh` scripts utilize shell commands in Linux/Unix environments, and `.vbs` scripts use VBScript syntax processed by the Windows Script Host engine.
The options stating that `.sh` scripts run natively in Linux/Unix terminal environments and that `.vbs` scripts are processed by the Windows Script Host engine are both correct. `.sh` scripts are executed by Unix shells like Bash, while `.vbs` scripts are executed by Windows Script Host (`cscript.exe` or `wscript.exe`).
Step-by-Step Solution
Key Concept
Scripting Languages, File Extensions, and Runtime Environments
Estimated Time:1m 0s