1-Dimensional Array: IGCSE Computer Science Definition
Written by: James Woodhouse
Reviewed by: Robert Hampton
Last updated
Contents
What is a 1-dimensional array?
In IGCSE Computer Science, a 1-dimensional (1D) array is a structured data type that stores multiple elements of the same data type in a single linear structure. Each element is accessed using an index, starting from 0 in most programming languages.
How is a 1D array used?
1D arrays are commonly used for storing lists of values, such as student scores or sensor readings. They allow efficient data retrieval and modification.
Example in Python:
scores = [12, 10, 5, 2, 8]
print(scores[2]) # Output: 5
Revision resources to ace your exams
Explore 1D arrays in more detail and master other key related terms such as 2D arrays in our revision note pages here:
Arrays (CIE IGCSE Computer Science)
Challenge yourself with our expertly crafted topic questions and strengthen your understanding with our engaging flashcards.
Sign up for articles sent directly to your inbox
Receive news, articles and guides directly from our team of experts.
Share this article