Bird
0
0

Given this PowerShell script opened in VS Code:

medium📝 Command Output Q13 of 15
PowerShell - Basics and Environment
Given this PowerShell script opened in VS Code:
Write-Host "Hello, VS Code!"

What will be the output when you run it in the integrated terminal?
AWrite-Host "Hello, VS Code!"
BHello, VS Code!
CError: Command not found
DNo output
Step-by-Step Solution
Solution:
  1. Step 1: Understand Write-Host command

    Write-Host prints the text string directly to the console output.
  2. Step 2: Predict output of the script

    The script prints exactly: Hello, VS Code! to the terminal.
  3. Final Answer:

    Hello, VS Code! -> Option B
  4. Quick Check:

    Write-Host outputs text = Hello, VS Code! [OK]
Quick Trick: Write-Host prints text exactly to terminal [OK]
Common Mistakes:
  • Thinking it prints the command itself
  • Expecting an error for a valid command
  • Assuming no output is shown

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes