Soru

Zorluk: KolayBasic Scripting Languages and Constructs

A desktop support technician needs to automate routine maintenance tasks on Windows 11 workstations using built-in operating system tools. The scripts must execute natively without requiring the installation of any third-party interpreters or runtime environments. Which of the following file extensions represent script types that can run natively in a standard Windows environment? (Select TWO.)

  1. .ps1Cevap
  2. .batCevap
  3. C
    .sh
  4. D
    .py

Cevap

The script extensions that run natively in Windows are .ps1 and .bat.
The .ps1 (PowerShell script) and .bat (Batch file) extensions represent script formats that execute natively in standard Windows operating system installations using built-in engines (PowerShell host and cmd.exe).

Adım Adım Çözüm

1
Identify native Windows scripting engines
Windows includes PowerShell and Command Prompt by default.
Both Windows PowerShell (.ps1) and Command Prompt Batch (.bat) execution environments are pre-installed in Windows.
2
Evaluate non-native scripting languages
.sh and .py require external runtimes on standard Windows installations.
Bash shell scripts (.sh) target Unix/Linux shells, and Python (.py) requires downloading and installing the Python execution environment.

Anahtar Kavram

Identifying native Windows scripting environments and file extensions
Bu soruyu puanla