Bird
0
0

In PowerShell, what does placing a $ before a word like $variable signify?

easy📝 Conceptual Q1 of 15
PowerShell - Variables and Data Types
In PowerShell, what does placing a $ before a word like $variable signify?
AIt denotes a variable holding a value
BIt comments out the line
CIt starts a loop
DIt defines a function
Step-by-Step Solution
Solution:
  1. Step 1: Recognize the symbol

    The $ symbol in PowerShell is used to declare or reference variables.
  2. Step 2: Understand its purpose

    When placed before a word, it tells PowerShell to treat the word as a variable name.
  3. Final Answer:

    It denotes a variable holding a value -> Option A
  4. Quick Check:

    Variables always start with $ in PowerShell [OK]
Quick Trick: Variables start with $ in PowerShell [OK]
Common Mistakes:
  • Confusing $ with comment symbol
  • Thinking $ starts a loop or function

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes