Data Structures (OCR A-Level Computer Science): Flashcards

📚Flashcards
Arrays
Sign up to keep revising.Create a free account to study more flashcards and track your progress.

Practise the cards

12 cards from this deck

Show

What is an array?

Collection of elements of same data type stored in contiguous memory

What does zero-indexed mean?

First element is accessed with index 0

Array size characteristic

Fixed size, determined when array is created

What is a one-dimensional array?

Single row of elements

What is a two-dimensional array?

Array with rows and columns, like a table or grid

What is a three-dimensional array?

Multiple layers of 2D grids

Why are arrays efficient?

Fast access to elements using index

When to use arrays?

When you have a collection of similar data

Arrays for tabular data

Data structured in rows and columns

What is index out of bounds error?

Accessing an index that doesn't exist in the array

Array dimensions for A-Level

Up to 3 dimensions

Array vs list difference

Arrays are fixed size, lists are flexible (in many languages)

Explore OCR A-Level Computer Science Revision Notes by Topics

Explore OCR A-Level Computer Science Model Answers by Topics

Explore OCR A-Level Computer Science Quizzes by Topics

Explore OCR A-Level Computer Science Exam Questions by Topics

Join 100,000+ A-Level students studying Flashcards with us.

Select your subjects, and get access to A+ resources today.