Bird
0
0

Which of the following correctly starts a single-quoted here-string in PowerShell?

easy📝 Conceptual Q2 of 15
PowerShell - String Operations
Which of the following correctly starts a single-quoted here-string in PowerShell?
A@"
B@'
C"@
D'@
Step-by-Step Solution
Solution:
  1. Step 1: Recall here-string delimiters

    Single-quoted here-strings start with @' and end with '@.
  2. Step 2: Identify the correct starting delimiter

    @' shows the correct starting delimiter @'. Others are incorrect or reversed.
  3. Final Answer:

    @' -> Option B
  4. Quick Check:

    Single-quoted here-string start = @' [OK]
Quick Trick: Single-quoted here-strings start with @' and end with '@ [OK]
Common Mistakes:
  • Using double quotes to start single-quoted here-strings
  • Reversing the order of @ and quotes
  • Confusing start and end delimiters

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes