Bird
0
0

Which of these is the correct way to end a double-quoted here-string in PowerShell?

easy📝 Syntax Q3 of 15
PowerShell - String Operations
Which of these is the correct way to end a double-quoted here-string in PowerShell?
A"@
B@"
C'@
D@'
Step-by-Step Solution
Solution:
  1. Step 1: Recall double-quoted here-string delimiters

    Double-quoted here-strings start with @" and end with "@.
  2. Step 2: Identify the correct ending delimiter

    "@ shows the correct ending delimiter "@. Others are incorrect or belong to single-quoted here-strings.
  3. Final Answer:

    "@ -> Option A
  4. Quick Check:

    Double-quoted here-string end = "@ [OK]
Quick Trick: Double-quoted here-strings end with "@ [OK]
Common Mistakes:
  • Mixing single and double quote delimiters
  • Using @" as an ending delimiter
  • Confusing start and end delimiters

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes