1-Dimensional Array - IGCSE Computer Science Definition

Reviewed by: James Woodhouse

Last updated

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.

IGCSE Computer Science Revision Resources

Sign up for articles sent directly to your inbox

Receive news, articles and guides directly from our team of experts.

Share this article

James Woodhouse

Reviewer: James Woodhouse

Expertise: Computer Science

James graduated from the University of Sunderland with a degree in ICT and Computing education. He has over 14 years of experience both teaching and leading in Computer Science, specialising in teaching GCSE and A-level. James has held various leadership roles, including Head of Computer Science and coordinator positions for Key Stage 3 and Key Stage 4. James has a keen interest in networking security and technologies aimed at preventing security breaches.

The examiner written revision resources that improve your grades 2x.

Join now