A Level Computer Science OCR Practice Exam

Question: 1 / 400

Which statement best describes a one-dimensional array?

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.

Get further explanation with Examzify DeepDiveBeta

A structure that allows multiple data types

A visual representation of data

A method of recursion

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy