Bird
0
0

Which characteristic of C# collections like List<T> provides more flexibility compared to arrays?

easy🧠 Conceptual Q2 of 15
C Sharp (C#) - Collections
Which characteristic of C# collections like List<T> provides more flexibility compared to arrays?
AFaster element access by index
BFixed memory allocation
CAbility to change size during runtime
DImmutable contents after initialization
Step-by-Step Solution
Solution:
  1. Step 1: Analyze arrays

    Arrays have fixed size and cannot be resized after creation.
  2. Step 2: Analyze collections

    Collections like List<T> can grow or shrink dynamically during runtime.
  3. Final Answer:

    Ability to change size during runtime -> Option C
  4. Quick Check:

    Flexibility means dynamic sizing [OK]
Quick Trick: Collections resize dynamically; arrays do not [OK]
Common Mistakes:
MISTAKES
  • Thinking arrays can resize
  • Confusing access speed with flexibility

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More C Sharp (C#) Quizzes