Bird
0
0

Which statement about Select-String behavior is TRUE?

hard📝 Conceptual Q10 of 15
PowerShell - String Operations
Which statement about Select-String behavior is TRUE?
AIt only works with plain text files, not binary files
BIt modifies the original files when matches are found
CIt returns objects containing match details, not just text lines
DIt is case-sensitive by default
Step-by-Step Solution
Solution:
  1. Step 1: Understand output type

    Select-String returns objects with properties like Line, LineNumber, Filename, and Matches.
  2. Step 2: Evaluate other statements

    It does not modify files, can work with any readable file, and is case-insensitive by default.
  3. Final Answer:

    It returns objects containing match details, not just text lines -> Option C
  4. Quick Check:

    Select-String outputs objects with match info [OK]
Quick Trick: Select-String outputs rich objects, not plain text [OK]
Common Mistakes:
  • Thinking it edits files
  • Assuming it only reads text files
  • Believing it is case-sensitive by default

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes