Bird
0
0

Which feature of PowerShell objects allows you to call commands like '.ToUpper()' on strings?

easy📝 Conceptual Q2 of 15
PowerShell - Working with Objects
Which feature of PowerShell objects allows you to call commands like '.ToUpper()' on strings?
AMethods
BProperties
CVariables
DAliases
Step-by-Step Solution
Solution:
  1. Step 1: Identify object features

    Objects have properties (data) and methods (actions/functions).
  2. Step 2: Match method to action

    Calling '.ToUpper()' is using a method to change string case.
  3. Final Answer:

    Methods -> Option A
  4. Quick Check:

    Methods = B [OK]
Quick Trick: Methods perform actions on objects, properties hold data [OK]
Common Mistakes:
  • Confusing properties with methods
  • Thinking variables are methods
  • Mixing aliases with object features

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes