🎴 Flashcard Mode
PowerShell Scripting and Administration
Card1 / 20
Mastered0
Review0
QuestionClick to flip
In Windows PowerShell, operators are evaluated in the following precedence: () {}, @ $, !, [ ], ., &, ++ --, Unary + -, * / %, Binary + -, Comparison Operators, -and –or, |, > >>, =
AnswerClick to flip back
A
True
💡 Explanation:
PowerShell evaluates operators in the following precedence: parentheses and braces first, then subexpression operators (@ $), then logical not (!), then indexing and property access ([] .), then call operator (&), then increment/decrement (++ --), then unary operators, then multiplication/division/modulo, then addition/subtraction, then comparison operators, then logical -and -or, then pipelines (|), then redirection (> >>), then assignment (=). This matches standard operator precedence rules.