PowerShell (Coding) Quiz
PowerShell scripting and cmdlets, the automation backbone of modern Windows and cross-platform admin.
This category currently has 60 questions in the SERVBG quiz bank. Below are a few sample questions: the full interactive quiz shuffles through the whole set with instant scoring.
Sample questions
In PowerShell, what does the pipeline pass between cmdlets?
- JSON only
- Objects (not text)
- Null-terminated bytes
- XML documents only
- Plain text streams
How do you declare a variable in PowerShell?
- $name = "value"
- set name "value"
- let name = "value"
- declare name="value"
- var name = "value"
Which scope modifier makes a variable available to the entire session?
- $local:var
- $global:var
- $session:var
- $script:var
- $private:var
Which scope is limited to the current script file?
- $script:var
- $global:var
- $local:var
- $file:var
- $module:var
Which cmdlet filters objects in the pipeline by a condition?
- ForEach-Object
- Select-Object
- Sort-Object
- Group-Object
- Where-Object
Continue the PowerShell (Coding) track
PowerShell (Coding) trains for the Terminal Academy’s The Object Shell (2006) era.
Related categories
Python (Coding)
Python syntax and standard-library usage, from quick scripts to full applications.
JavaScript (Coding)
Core JavaScript behavior and async patterns, including the quirks that trip up beginners and veterans alike.
Linux
Linux command-line usage, file permissions, process management. The daily admin tasks.
Security
General information security concepts: common threats and standard defenses.
Hardware
Hardware components, how they interact, and basic troubleshooting to keep systems running.