Bird
0
0

What will be the output of this PowerShell command?

medium📝 Command Output Q4 of 15
PowerShell - System Administration
What will be the output of this PowerShell command?
Get-Process | Where-Object { $_.CPU -gt 100 }
AShows an error due to syntax
BLists all processes regardless of CPU usage
CLists processes using more than 100 CPU seconds
DLists processes using less than 100 CPU seconds
Step-by-Step Solution
Solution:
  1. Step 1: Understand the command

    Get-Process gets all processes; Where-Object filters those with CPU > 100 seconds.
  2. Step 2: Analyze output possibilities

    Lists processes using more than 100 CPU seconds matches the filter condition; B and D are incorrect; A is wrong as syntax is valid.
  3. Final Answer:

    Lists processes using more than 100 CPU seconds -> Option C
  4. Quick Check:

    Where-Object filters by CPU > 100 [OK]
Quick Trick: Where-Object filters output by condition [OK]
Common Mistakes:
  • Confusing filter condition
  • Assuming syntax error
  • Misreading CPU usage comparison

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes