Question 76Asked in BPSC TRE 1.0 (2023) Computer Science Class 11-12

Which of the following is the advantage of the array data structure?

  1. AElements of mixed data types can be stored
  2. BEasier to access the elements in an array
  3. CIndex of the first element starts from 1
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (B) Easier to access the elements in an array

Explanation

Array elements are stored next to each other, so any element can be reached directly by its index in O(1) time. Arrays hold only one data type, and indexing starts at 0.

From BPSC TRE 1.0 (2023) Computer Science Class 11-12 — Previous Year Paper

This is question 76 of BPSC TRE 1.0 (2023) Computer Science Class 11-12 — Previous Year Paper. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.