Multiple choice technology

Using which option in PowerShell, you can come out of the loop statements implemented using ForEach, For, While, Do While or Switch Statements.

  1. Exit

  2. Break

  3. Return

  4. Jump

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

The Break statement is used in PowerShell to exit loop constructs like ForEach, For, While, Do-While, and Switch statements. Exit terminates the entire script or console session. Return exits a function or script block. Jump is not a valid PowerShell keyword for loop control.