Bird
0
0

Which PowerShell operator checks if two values are equal?

easy📝 Conceptual Q11 of 15
PowerShell - Operators
Which PowerShell operator checks if two values are equal?
A-eq
B-ne
C-gt
D-lt
Step-by-Step Solution
Solution:
  1. Step 1: Understand the meaning of each operator

    -eq means equals, -ne means not equals, -gt means greater than, -lt means less than.
  2. Step 2: Identify the operator for equality

    The operator that checks if two values are equal is -eq.
  3. Final Answer:

    -eq -> Option A
  4. Quick Check:

    Equals operator = -eq [OK]
Quick Trick: Remember: eq means equal, ne means not equal [OK]
Common Mistakes:
  • Confusing -eq with -ne
  • Mixing -gt and -lt
  • Using == instead of -eq

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes