Bird
0
0

Which command will correctly display the text Hello PowerShell in the console?

easy📝 Conceptual Q2 of 15
PowerShell - Basics and Environment
Which command will correctly display the text Hello PowerShell in the console?
ADisplay-Message "Hello PowerShell"
BShow-Text "Hello PowerShell"
CPrint "Hello PowerShell"
DWrite-Output "Hello PowerShell"
Step-by-Step Solution
Solution:
  1. Step 1: Identify valid PowerShell commands for output

    Only Write-Output is a valid PowerShell command to display text.
  2. Step 2: Verify syntax correctness

    Write-Output "Hello PowerShell" uses correct syntax with quotes and command name.
  3. Final Answer:

    Write-Output "Hello PowerShell" -> Option D
  4. Quick Check:

    Write-Output displays text correctly [OK]
Quick Trick: Use Write-Output to send text to console [OK]
Common Mistakes:
  • Using non-existent commands like Show-Text
  • Missing quotes around text

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes