An IT technician is organizing administrative automation scripts used across Windows and Linux workstations. Match each scripting language environment on the left with its corresponding syntax characteristic or execution feature on the right.
- PowerShell Script (.ps1)Uses $env:VAR syntax for environment variables and natively supports cmdlets for system object management.
- Windows Batch Script (.bat)Uses %VAR% syntax for environment variables and REM or :: for line comments.
- VBScript (.vbs)Leverages WScript.Echo for output and is executed via Windows Script Host (CScript or WScript).
- Bash Shell Script (.sh)Starts with a shebang line (#!/bin/bash) and uses standard Unix environment variable references like $VAR.
Cevap
PowerShell (.ps1) matches VAR syntax.
Each scripting language and file extension featured in CompTIA A+ Core 2 has distinct variable naming conventions, runtime interpreters, and comment structures that differentiate them during administrative automation.
Adım Adım Çözüm
Anahtar Kavram
Basic Scripting Languages, File Extensions, Syntax, and Runtime Environments