Bird
0
0

What is the main advantage of using an object array in PowerShell?

easy📝 Conceptual Q1 of 15
PowerShell - Working with Objects
What is the main advantage of using an object array in PowerShell?
AIt can store multiple types of data in one collection
BIt only stores strings
CIt automatically sorts the data
DIt can only hold numbers
Step-by-Step Solution
Solution:
  1. Step 1: Understand object arrays

    Object arrays in PowerShell can hold any type of object, not limited to one data type.
  2. Step 2: Compare options

    Only It can store multiple types of data in one collection correctly states that object arrays can store multiple data types.
  3. Final Answer:

    It can store multiple types of data in one collection -> Option A
  4. Quick Check:

    Object arrays store mixed data types = C [OK]
Quick Trick: Object arrays hold any data type together [OK]
Common Mistakes:
  • Thinking object arrays only hold strings
  • Assuming object arrays auto-sort
  • Believing object arrays hold only numbers

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes