How can we describe an array in the best possible way?

2023

How can we describe an array in the best possible way?

  1. A.

    Arrays are immutable

  2. B.

    Container that stores the elements of similar types

  3. C.

    The array is not a data structure

  4. D.

    More than one of the above

  5. E.

    None of the above

Attempted by 1498 students.

Show answer & explanation

Correct answer: B

An array is a data structure that stores elements of the same data type in a contiguous block of memory. It allows random access to elements using indices, making it efficient for retrieval. Arrays are widely used in programming for organizing and managing collections of data.

Explore the full course: Up Lt Grade Assistant Teacher 2025