An IT administrator is reviewing automation scripts used for workstation maintenance and system audits. The administrator needs to verify syntax rules, variable handling, and execution environments across different scripting languages. Which of the following statements correctly describe basic scripting constructs and language properties? (Select TWO.)
- Python (.py) dynamically assigns data types such as integers and strings without requiring explicit variable type declarations.Answer
- Windows PowerShell (.ps1) accesses system environment variables using the $env: provider prefix followed by the variable name.Answer
- CWindows Batch (.bat) scripts encapsulate environment variable names using dollar signs () when referencing system values.
- DVBScript (.vbs) files execute natively inside the standard Linux Bash shell without needing additional runtime engines.
Answer
The correct statements are that Python (.py) dynamically assigns data types without requiring explicit type declarations, and Windows PowerShell (.ps1) accesses environment variables using the $env: prefix.
Python uses dynamic typing to assign variable types automatically during assignment without explicit declaration. Windows PowerShell accesses environment variables through the $env: prefix syntax, making both of these statements correct.
Step-by-Step Solution
Key Concept
Basic Scripting Languages and Constructs