Prepare for the A Level Computer Science OCR Exam with engaging quizzes, detailed explanations, and effective study tips. Maximize your readiness and boost your confidence for exam day!

Practice this question and more.


Which statement best describes a one-dimensional array?

  1. A data structure used to store multiple items of the same type

  2. A structure that allows multiple data types

  3. A visual representation of data

  4. A method of recursion

The correct answer is: A data structure used to store multiple items of the same type

A one-dimensional array is indeed best described as a data structure used to store multiple items of the same type. This characteristic of arrays allows them to hold a fixed number of elements, all of which must be of the same data type (such as integers, floats, or strings). This uniformity makes it easier to manage and access the elements since they are organized in a linear fashion, enabling efficient indexing. The other options do not accurately capture the essence of a one-dimensional array. A structure that allows multiple data types refers more closely to data structures like lists or tuples, which can accommodate elements of varying types. A visual representation of data could describe diagrams or graphs but does not accurately define what an array is at a structural level. Lastly, recursion pertains to a strategy in programming where a function calls itself, which is unrelated to the definition or function of arrays.