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.Cevap
- `.vbs` scripts use VBScript syntax and are processed natively by the Windows Script Host engine.Cevap
- 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.
Cevap
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`).
Adım Adım Çözüm
Anahtar Kavram
Scripting Languages, File Extensions, and Runtime Environments
Tahmini Süre:1m 0s