Multiple choice technology

Which among the following is not a valid Logical Operator in PowerShell?

  1. -and

    • notlike
  2. -!

  3. -or

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

PowerShell's logical operators are -and, -or, -not, -xor (also -and, -or, -!, -not as alternatives). The -notlike operator is a comparison operator used for pattern matching, not a logical operator. The question asks which is NOT a logical operator, making -notlike the correct answer.