Multiple choice technology architecture

Arrays are best data structures

  1. for relatively permanent collections of data

  2. for the size of the structure and the data in the structure are constantly changing

  3. for both of above situation

  4. for none of above situation

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Arrays have a fixed size determined at creation, making them ideal for relatively permanent collections where the number of elements doesn't change frequently. Their contiguous memory allocation provides efficient random access, but resizing requires copying all elements to a new array.