Bird
0
0

Why might a non-terminating error be preferred over a terminating error in a PowerShell script?

hard📝 Conceptual Q10 of 15
PowerShell - Error Handling
Why might a non-terminating error be preferred over a terminating error in a PowerShell script?
ATo allow the script to continue processing despite errors
BBecause terminating errors are harder to debug
CNon-terminating errors produce more detailed logs
DTerminating errors cannot be caught by try-catch
Step-by-Step Solution
Solution:
  1. Step 1: Consider script flow needs

    Non-terminating errors allow script to keep running after an error.
  2. Step 2: Compare with terminating errors

    Terminating errors stop script immediately, which may not be desired.
  3. Final Answer:

    To allow the script to continue processing despite errors -> Option A
  4. Quick Check:

    Non-terminating errors = Continue script despite errors [OK]
Quick Trick: Use non-terminating errors to keep scripts running [OK]
Common Mistakes:
  • Thinking terminating errors are always better
  • Confusing catch behavior

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes