PowerShell Scripting Basics

By Devin Park · Updated May 25, 2026

Questions23
Passing Score70%
Format65% Multiple Choice
Sessions Logged2,398
Your progressLog in / Register to track times taken, best score, questions mastered, and coverage on this quiz.
Rating
Community rating 4.1 out of 5 from 23 ratings.
4.1 (23)

Topics covered

This quiz

Uncategorized23 (100%)

Uncategorized23 questions

Question catalog for this preview

Catalog listing of the 5 preview questions for this quiz.

Question 1

PowerShell cmdlets pass objects through the pipeline, unlike traditional shells that pass plain text strings.

Answer choices

  • A. True

  • B. False

Question 2

Which PowerShell operator is used for string interpolation within double-quoted strings?

Answer choices

  • A. + (concatenation)

  • B. $ followed by a variable name directly within the string

  • C. & (ampersand operator)

  • D. % (format operator)

Question 3

In PowerShell, `try { } [[blank1]] { } [[blank2]] { }` is the error handling structure where the middle block catches exceptions and the last block always executes regardless of whether an error occurred.

Question 4

The `$PSVersionTable` variable in PowerShell contains information about the current PowerShell version and can be used to write version-compatible scripts.

Answer choices

  • A. True

  • B. False

Question 5

The PowerShell cmdlet [[blank1]] converts output to HTML format, while [[blank2]] converts to CSV format, enabling easy export of data for reports and data sharing.