PowerShell (Coding) Quiz
PowerShell scripting and cmdlets — the automation language behind 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?
- XML documents only
- JSON only
- Objects (not text)
- Plain text streams
- Null-terminated bytes
How do you declare a variable in PowerShell?
- declare name="value"
- let name = "value"
- var name = "value"
- set name "value"
- $name = "value"
Which scope modifier makes a variable available to the entire session?
- $script:var
- $local:var
- $session:var
- $global:var
- $private:var
Which scope is limited to the current script file?
- $script:var
- $global:var
- $module:var
- $file:var
- $local:var
Which cmdlet filters objects in the pipeline by a condition?
- ForEach-Object
- Where-Object
- Group-Object
- Select-Object
- Sort-Object
Related categories
Python (Coding)
Python syntax, standard-library usage, and the language idioms that come up in day-to-day scripting and application work.
JavaScript (Coding)
Core JavaScript language behavior, async patterns, and the quirks that trip up both beginners and experienced developers.
Linux
Linux command-line usage, file permissions, process management, and the everyday admin tasks every sysadmin and developer needs.
Security
General information security concepts — threats, defenses, and the fundamentals every IT professional should know.
Hardware
Computer hardware components, how they interact, and the troubleshooting knowledge behind keeping systems running.